We're sorry GroupDocsCloud doesn't work properply without JavaScript enabled.

Free Support Forum - groupdocs.cloud

Java Converter Excel to Pptx auto width

Using Converter
It converts from xlsx to pptx
The xlsx content is truncated and converted.
Is there a way to convert xlsx contents because they are not cut?

[Refer to the JAVA sources]
Converter converter = new Converter(rsltFile.getPath());
PresentationConvertOptions options = new PresentationConvertOptions();
options.setFormat(PresentationFileType.Pptx);
converter.convert(qcReportPptxFile.toString(), options);

[Refer to the image]
[xlsx]
image.png (99.5 KB)
[pptx]
image.png (48.1 KB)

@trew44

I am afraid I could not find Converter Object in GroupDocs.Conversion Cloud SDK for Java. Can you please confirm which converter you are referring in your code?

However, if you are using GroupDocs.Conversion Cloud SDK for Java then you need to set setOnePagePerSheet proerty of SpreadSheetLoadoptions to true as following to resolve the content truncation issue.

....
....
// Prepare convert settings
ConvertSettings settings = new ConvertSettings();
settings.setFilePath("Spreadsheet/sample.xlsx");
settings.setFormat("pptx");
 
SpreadsheetLoadOptions loadOptions = new SpreadsheetLoadOptions();
loadOptions.setHideComments(true);
loadOptions.setOnePagePerSheet(true);
 
settings.setLoadOptions(loadOptions);
settings.setOutputPath("converted");
.....
.....

@tilal.ahmad

You used groupdocs-conversion-22.3.jar. (com.groupdocs.conversion.Converter)
I’ve used setOnePagePerSheet(true)
It is not cut like the image below, but it is converted into one sheet.

image.png (15.1 KB)

This topic has been moved to the related forum: https://forum.groupdocs.com/t/java-converter-excel-to-pptx-auto-width/11293