Hello,
We are looking into upgrade of current Aspose.Slides library, but encountered an issue with conversion of PPT presentation containing an EMF image to PDF.
Below is the sample code:
final String targetPdfFile = [PATH] + "PPT_testSample_aspose_23_02.pdf";
final String sourcePptxFile = [PATH] + "PPT_testSample.pptx";
IPresentation pptx = new Presentation(sourcePptxFile);
PdfOptions saveOptions = new PdfOptions();
saveOptions.setBestImagesCompressionRatio(false);
saveOptions.setJpegQuality((byte)95);
pptx.save(targetPdfFile, SaveFormat.Pdf, saveOptions);
Note that when opened generated PDF output, it shows a border on the right and bottom of the chart image.
Attached is zipped source PPTX sample document, and screenshot illustrating the issue.
This issue is reproducible on both Linux 7.4 and Windows 10 platform with java full version “1.8.0_351-b10”.
Thank you in advance,
Yan.
pptToPDF_extraBorderLines.png (28.7 KB)
PPT_testSample.7z (35.7 KB)
@oraspose
Thank you for contacting support. Let me check your problem.
@oraspose
Try to use this option when converting to PDF to avoid EMF image borders:
saveOptions.setSaveMetafilesAsPng(false);
Hi Stanislav.
Thank you for the quick response.
I tried the option you suggested setSaveMetafilesAsPng(false) and the borders are no longer added, However, now the numbers in the image are no longer shown.
Attached is the zip file containing the input PPT with slide containing EMF image, and the output PDF illustrating the problem.
Please take a look and let me know what am I missing?
Thanks,
Yan
pptToPdf_saveMetafilesAsPngFalse.7z (37.5 KB)
@oraspose
I logged the issue with ID SLIDESJAVA-39198 in our tracking system for investigation.
Hello Stanislav.
Any update on this issue?
Thank you,
Yan
@oraspose,
The issue is still open. Unfortunately, I don’t have any additional information yet.
Hello team.
Just want to follow up - are there updates on this issue?
Thank you.
@oraspose,
The issue remains open, and I don’t have any new updates at this time. We apologize for any inconvenience caused.
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.