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

Free Support Forum - aspose.com

Problem regarding extraction of Aspose.Pdf

Hello ,

I have one problem regarding extraction of Aspose.Pdf.

I have extractred a pdf file into pages by using PdfFileEditor.SplitToPages(pdf as memoryStream)

this will extract into no. of pages contains into that Pdf.

But can you tell me how do i Iterate through each of the extracted pdf document Pages.

I want MemoryStream of each pdf document.

How do I do that plz give me solution regarding this,here is my code for that

'Iterate through all memory stream one by one

Dim pdfEditor As PdfFileEditor = New PdfFileEditor()

Dim outBuffer() As MemoryStream = pdfEditor.SplitToPages(pdf)

'Declare a temporary memory stream

Dim aStream As MemoryStream

For Each aStream In outBuffer

If iSlideCount = iInnerIndex Then

objSlideInfo.SlideData = aStream.GetBuffer() 'This always return whole pdf document buffer

iInnerIndex = iInnerIndex + 1

End If


Thanks In Advance


Hi Kishan,

Sorry for replying to you late.

I tested you code but I can't find any problem. The aStream.GetBuffer() works well in my test. If it still won't work for you, can you please provide a runable project that can reproduce this error?