Hi Team, we are facing issue while converting ppt file into pdf using aspose.
Issue : table on page 10 of the PDF preview has grey lines that are not visible in the original PowerPoint file and the PDF generated by Acrobat.
We are using version : <aspose.slides.version>24.7</aspose.slides.version>
aspose-slides.zip (7.1 MB)
@forasposeissues
It sounds like you’re experiencing an issue with grey lines appearing in a PDF table after converting a PowerPoint file using Aspose.Slides. This can occur due to the way the table is rendered during the conversion process.
Cause: The grey lines may be a result of hidden borders or styles in the PowerPoint file, or they could be related to the rendering settings used during the PDF conversion.
Solution: Here are several steps to troubleshoot and resolve the issue:
-
Update Aspose.Slides: Ensure you are using the latest version of Aspose.Slides, as newer releases often fix known issues.
-
Check Table Formatting: Review the table formatting in your PowerPoint file. Look for any hidden borders or styles that might not be visible in PowerPoint but could affect the PDF output.
-
Adjust PDF Options: Customize the PdfOptions
when saving the presentation to PDF. Setting the SaveMetafilesAsPng
option to true can help with rendering issues related to vector graphics. Here’s a sample code snippet:
using (Presentation presentation = new Presentation("input.pptx"))
{
PdfOptions pdfOptions = new PdfOptions();
pdfOptions.SetSaveMetafilesAsPng(true);
presentation.Save("output.pdf", SaveFormat.Pdf, pdfOptions);
}
-
Test with Different Content: Convert a simplified version of your PowerPoint file that contains just the problematic table. This will help determine if the issue is with the specific content or the conversion process itself.
-
Contact Support: If the issue persists, reach out to Aspose support with your specific PowerPoint file and details about the problem for more targeted assistance.
Next Steps: Please try the above steps and let me know if they resolve the issue or if you require further assistance. I’m here to help!
@forasposeissues,
Thank you for reporting the issue. I have reproduced the problem of grey lines appearing in the table when converting the PowerPoint presentation to a PDF document.
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): SLIDESJAVA-39698
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.
Please note that you can disable the rasterization of vector images when converting the presentation to a PDF document, as shown below:
String fileName = "as71971_20250711_142809_PULSEMonitor2025-07-11 1.pptx";
PdfOptions pdfOptions = new PdfOptions();
pdfOptions.setSaveMetafilesAsPng(false);
Presentation presentation = new Presentation(fileName);
presentation.save("output.pdf", SaveFormat.Pdf, pdfOptions);
presentation.dispose();
If you use this approach, the issue disappears, and the resulting PDF file is smaller.
Please let us know if this suits you.
More examples:
Convert PPT and PPTX to PDF in Java [Advanced Features Included]|Aspose.Slides Documentation