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

Free Support Forum - aspose.com

Aspose PDF.NET to PPT Conversion with PPT Data Grouping in .NET

Hi,



How to group the PPT Data generated out of Aspose PDF.NET .



Currently the pdf table comes in ppt as a selectable text without any grouping.



Thanks





Please find my code



Aspose.Pdf.PptxSaveOptions pptx_save = new Aspose.Pdf.PptxSaveOptions();

Aspose.Pdf.Document OutPutDocument = null;

MemoryStream pdfMemoryStream = new MemoryStream();

MemoryStream inputStream = new MemoryStream(outfileStream.ToArray(), true);

MemoryStream intputMemStream = new MemoryStream();

inputStream.CopyTo(intputMemStream);

OutPutDocument = new Aspose.Pdf.Document(intputMemStream);



// Save resulting PPT document.

OutPutDocument.Save(pdfMemoryStream, pptx_save);

pdfMemoryStream.Position = 0;



this pdfMemoryStream only we are saving as ppt



Refer the attached ppt where each pdf page table data is exported as images with text



but we need to insert each pdf page as separate images 1 per slide into ppt generated.



how this can be done via C#.NET Coding for Aspose PDF

Hi There,


Thanks for using our API’s.

I will appreciate if you please share your sample PDF document along with the sample code. It will help us to understand your requirement exactly and address it accordingly.

We are sorry for the inconvenience.

Best Regards,

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px ‘Helvetica Neue’; -webkit-text-stroke: #000000}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px ‘Helvetica Neue’; -webkit-text-stroke: #000000; min-height: 14.0px}
span.s1 {font-kerning: none}

Aspose.Pdf.PptxSaveOptions pptx_save = new Aspose.Pdf.PptxSaveOptions();
Aspose.Pdf.Document OutPutDocument = null;
MemoryStream pdfMemoryStream = new MemoryStream();
MemoryStream inputStream = new MemoryStream(outfileStream.ToArray(), true);
MemoryStream intputMemStream = new MemoryStream();
inputStream.CopyTo(intputMemStream);
OutPutDocument = new Aspose.Pdf.Document(intputMemStream);

                    // Save resulting PPT document.
                    OutPutDocument.Save(pdfMemoryStream, pptx_save);
                    pdfMemoryStream.Position = 0

am saving the pdfMemoryStream as ppt

Hi ,

Please find my code

Aspose.Pdf.PptxSaveOptions pptx_save = new Aspose.Pdf.PptxSaveOptions();
Aspose.Pdf.Document OutPutDocument = null;
MemoryStream pdfMemoryStream = new MemoryStream();
MemoryStream inputStream = new MemoryStream(outfileStream.ToArray(), true);
MemoryStream intputMemStream = new MemoryStream();
inputStream.CopyTo(intputMemStream);
OutPutDocument = new Aspose.Pdf.Document(intputMemStream);

                    // Save resulting PPT document.
                    OutPutDocument.Save(pdfMemoryStream, pptx_save);
                    pdfMemoryStream.Position = 0

this pdfMemoryStream only am saving as PPT

Hi There,


Thanks for sharing further details.

Aspose.Pdf does not support any grouping in PDF to PPTX conversion. However you may render your page to image, it will group all the contents of page as image and can render it to PPTX. You can refer to "How to Convert All Pages of a PDF to PPT where each pdf page comes as image forum thread for the sample code.

If there is any difference in my solution and your requirement then please share some more details.

We are sorry for the inconvenience.

Best Regards,
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco} span.s1 {text-decoration: underline}