Save PDF to a Stream

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

DSSavant
User
Posts: 216
Joined: Thu Jul 08, 2004 7:29 pm

Save PDF to a Stream

Post by DSSavant »

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.
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: Save PDF to a Stream

Post by Corwin - Tracker Sup »

Hello DSSavant,

Can you please see "SaveDocumentToStream" sample which comes with Viwer ActiveX SDK?
DSSavant
User
Posts: 216
Joined: Thu Jul 08, 2004 7:29 pm

Re: Save PDF to a Stream

Post by DSSavant »

That was too easy especially since I was looking at all the examples all day yesterday!

Thanks.
User avatar
John - Tracker Supp
Site Admin
Posts: 5223
Joined: Tue Jun 29, 2004 10:34 am

Re: Save PDF to a Stream

Post by John - Tracker Supp »

:)

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
jeffp
User
Posts: 923
Joined: Wed Sep 30, 2009 6:53 pm

Re: Save PDF to a Stream

Post by jeffp »

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?
User avatar
John - Tracker Supp
Site Admin
Posts: 5223
Joined: Tue Jun 29, 2004 10:34 am

Re: Save PDF to a Stream

Post by John - Tracker Supp »

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.
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
User avatar
Lzcat - Tracker Supp
Site Admin
Posts: 677
Joined: Thu Jun 28, 2007 8:42 am

Re: Save PDF to a Stream

Post by Lzcat - Tracker Supp »

Answer is NO for xcpro and YES for PXCV. Please see documentation for PXCV_ReadDocumentFromIStream function.
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.