Hi guys, I was wondering how can I extract one page from a PDF file and save this page to a stream. I want to be able to strip down a multi-page PDF file to single paged PDF streams.
Is there a way of doing that efficiently??
Thanks
Hi guys, I was wondering how can I extract one page from a PDF file and save this page to a stream. I want to be able to strip down a multi-page PDF file to single paged PDF streams.
Is there a way of doing that efficiently??
Thanks
Hi,
this works with page selections.
You first select a page - can be done using the commands:
COMPDF_PageSelectionClear = 248; // Removes previous selection
COMPDF_PageSelectionAdd = 249; // Select one additional page
COMPDF_PageSelectionDel = 250; // Removes Selection from Page
COMPDF_PageSelectionInvert= 251; // Inverts Selection
or by click on page when the selection mode is enabled.
Then You can use SaveSelectionToFile.
All this requires the Demo or the PLUS version.
Julian
That does not answer his question.
He want to save to a STREAM, not a file (Exact what I also want...)
Hi,
currently the best approach would be to create a file and load the file into a stream when using .NET.
The Delphi VCL has a Plus.SaveSelectionToStream method, though.
Julian