I've searched the forums and have concluded that saving a PDF to a stream is possible but I'm missing how to do so.
Since SaveDocument() takes a BSTR/String as the file name, I cannot use that. That leads me to believe that I must use DoVerb and ... and do what exactly?
As a follow-on question, how can I extract out pages 1, 2, and 5 into a Stream?
Thanks for any advise/solutions.
Save PDF to a Stream
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- User
- Posts: 664
- Joined: Tue Nov 14, 2006 12:23 pm
Re: Save PDF to a Stream
Hello DSSavant,
Can you please see "SaveDocumentToStream" sample which comes with Viwer ActiveX SDK?
Can you please see "SaveDocumentToStream" sample which comes with Viwer ActiveX SDK?
-
- User
- Posts: 216
- Joined: Thu Jul 08, 2004 7:29 pm
Re: Save PDF to a Stream
That was too easy especially since I was looking at all the examples all day yesterday!
Thanks.
Thanks.
-
- Site Admin
- Posts: 5223
- Joined: Tue Jun 29, 2004 10:34 am
Re: Save PDF to a Stream

Pleased you got there.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.
Best regards
Tracker Support
http://www.tracker-software.com
Best regards
Tracker Support
http://www.tracker-software.com
-
- User
- Posts: 923
- Joined: Wed Sep 30, 2009 6:53 pm
Re: Save PDF to a Stream
If I save a document to a stream as outlined in your "SaveDocumentToStream" example, is there any way I can open that stream using the PXCV and XCPRO DLL Libraries without having to write to file first?
-
- Site Admin
- Posts: 5223
- Joined: Tue Jun 29, 2004 10:34 am
Re: Save PDF to a Stream
I am afraid our Viewer project team are on their Christmas break for the next couple of days (in Ukraine) - ad this is going to be one for them ..
Will ensure they respond as soon as they are back, apologies and thanks for your patience.
Will ensure they respond as soon as they are back, apologies and thanks for your patience.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.
Best regards
Tracker Support
http://www.tracker-software.com
Best regards
Tracker Support
http://www.tracker-software.com
-
- Site Admin
- Posts: 677
- Joined: Thu Jun 28, 2007 8:42 am
Re: Save PDF to a Stream
Answer is NO for xcpro and YES for PXCV. Please see documentation for PXCV_ReadDocumentFromIStream function.
HTH.
HTH.
Victor
Tracker Software
Project manager
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Tracker Software
Project manager
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.