No api to save a pdf document into an IStream object

Discussions about PDF management.
Post Reply
pdftest
Posts: 7
Joined: Wed Apr 24, 2013 6:17 pm

No api to save a pdf document into an IStream object

Post by pdftest » Tue Nov 11, 2014 3:26 am

We see that there is a function (which is LoadFromIStream) to load a pdf document from IStream object into the CGdPicturePDF object. But there is no api to save the pdf document into an IStream object from the CGdPicturePDF object after loading the pdf document into the CGdPicturePDF object. We are wondering if you could give us a direction on how to save into IStream object from the CGdPicturePDF object.

pdftest
Posts: 7
Joined: Wed Apr 24, 2013 6:17 pm

Re: No api to save a pdf document into an IStream object

Post by pdftest » Thu Nov 20, 2014 1:49 am

We tried the following code to save into in-memory stream (which throws an error) from the CGdPicturePDF object:-

CComQIPtr spIStream;
HRESULT hRes = CreateStreamOnHGlobal(NULL, TRUE, &spIStream);
m_oGdPicturePDF.SaveToStream((LPDISPATCH)&spIStream);

is there any one who tried to save into an in-memory stream (an IStream ) to get the PDF document from the CGdPicturePDF object? Any help is appreciated.

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: No api to save a pdf document into an IStream object

Post by Loïc » Sat Nov 22, 2014 12:21 pm

Hi,

I can confirm that we do not provide such api yet. We will include it for the GdPicture version 11 that will be published on 1rst January 2015.

With best regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests