Preserving Shape Details in PDF to PPTX Conversion

Hi Aspose Team,

In our project, we need to do the following conversion steps:

  1. DOCX → PDF or PPTX → PDF
  2. Then, PDF → PPTX using com.aspose.pdf.Document#save(java.io.OutputStream, int)

We see that generated PDF stores shapes as vector paths on separate layers.
However, during the PDF → PPTX conversion, each shape is rasterized and inserted as a cropped image based on its bounding box.
This means you can’t edit the shape’s fill, stroke, or other properties in the final PPTX.

Is there any way to preserve the original shape details after conversion from PDF?

If not, would it be possible to improve this at your end by either:

  1. Retaining the original shape types during conversion to PPTX?
  2. Or at least converting vector paths in the PDF to editable freeform shapes in PPTX instead of raster images?

Example:

  1. PDF source:
    image.png (15.9 KB)
  2. PPTX result:
    image.png (36.6 KB)

@abykovsky

If possible, can you please share your sample PDF file and complete code sample for our reference? We need to investigate this feature. We will generate a ticket in our issue tracking system and share the ID with you.

Attaching the PDF for reference:
input.pdf (3.8 KB)

If there are limitations in fixing the issue completely, it would help to at least ensure that rasterized images aren’t being cropped — right now, it causes inconsistencies after the PDF → PPTX conversion.

@abykovsky

Can you please share the code sample as well that you are using? It can be simple but looks like your are using streams. If you can please share it, we can log it in the ticket and will investigate from this perspective. We are sorry for the inconvenience.