PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Marc van Cauwenberghe on February 07, 2010, 06:42:50 AM

Title: quickpdf and image library
Post by: Marc van Cauwenberghe on February 07, 2010, 06:42:50 AM
Hello,
I want to add an image from the image library to a pdf file created with quickpdf.
Now i use AddImageFromFile wich works but I do not want to ship my images with the exe
Other addimage functions in quickpdf are
QuoteAddImageFromFileOffset: Adds an image from a part of a file to the selected document.
AddImageFromStream: Adds an image from a TStream to the selected document.
AddImageFromString: Adds an image from memory to the selected document.
AddImageFromVariant: Adds an image from a variant byte array to the selected document.

I know these are Qpdf function but has anyone got a clue.

I could probable also save the image first from the image library and then use it and delete it.

Thanks for any answer.

Marc
Title: Re: quickpdf and image library
Post by: Pat Dooley on February 10, 2010, 09:43:18 AM
QuoteI could probable also save the image first from the image library ...
How would you do that? I can change the icon of a tab at runtime, for example. But get an image from the library and save it to a file? I'd be interested to know how that is done.
I use QuickPDF and like it. The activex version is even easier now to use with FF3.
Title: Re: quickpdf and image library
Post by: Marc van Cauwenberghe on February 10, 2010, 10:51:49 AM
Hello Pat,

QuoteHow would you do that?

Actually I do not know, but maybe that is the way to go.

Could you tell me how you get the icon, do you get it from file with:
ActiveX
Function QuickPDF0717.PDFLibrary::AddImageFromFile(FileName As String,
  Options As Long) As Long


The dll version is quit easy to, no need to go the ActiveX way.

Marc