Save to Stream/Read from 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

jeffp
User
Posts: 923
Joined: Wed Sep 30, 2009 6:53 pm

Save to Stream/Read from Stream

Post by jeffp »

I'm looking to transfer a PDF document I have loaded in the ViewerAx to the Viewer DLL object. Currently, I just write it out to file and then have the Viewer DLL read it from file. I'm looking to speed up the process.

Is there a faster way to do this via an IStream. That is, can I save the document into a stream using the ViewerAx and then read that stream with PXCV_ReadDocumentFromIStream in the Viewer DLL?

If this is possible, would you mind helping me out with a simple code snippet in Delphi?

Thanks.
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2448
Joined: Thu Jun 30, 2005 4:11 pm

Re: Save to Stream/Read from Stream

Post by Vasyl - PDF-XChange »

Hi, jeffp.

Sure. Look to ViewerAx SaveDocumentToStream example and to Viewer DLL corresponding example (unfortunately there is no example with IStream in Delphi, so have a look at the examples in the other programming languages available).

HTH.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.