When attempting to add an SVG image to a slide in PPTX format, it displays perfectly. However, when exporting the PPTX to PDF or thumbnails, the image becomes very blurry. This issue only occurs with SVG images.
OS: Ubuntu
Library: Aspose slides - Python via .Net
PDF Export:
pdfOptions = slides.export.PdfOptions()
# Sets the Jpeg quality
pdfOptions.jpeg_quality = 100
# Sets the behavior for metafiles
pdfOptions.save_metafiles_as_png = True
pdfOptions.sufficient_resolution = 100
# Sets the text compression level
pdfOptions.text_compression = slides.export.PdfTextCompression.NONE
# Defines the PDF standard
pdfOptions.compliance = slides.export.PdfCompliance.PDF15
presentation.save(
test.pptx,
slides.export.SaveFormat.PDF,
pdfOptions,
)
Thumbnail export:
with open(file_name, 'wb') as file:
# setting svg export params
svgOptions = slides.export.SVGOptions()
svgOptions.vectorize_text = True
svgOptions.jpeg_quality = 100
svgOptions.pictures_compression = 3
slide.write_as_svg(file, svgOptions)
PFA
Files.zip (269.1 KB)