Generating PDF with images

Hi everybody.

I have been working trying to generate PDFs with a lot of images on it.

I am running with some issues.

The file generates all right, but it really takes a while to generate it, probably because I am using JPEG images. I had tried to use GIF images, although the new version was supposed to work with GIF and PNG, I was not able to make it work.

The other problem I am facing is with the file size of the generated PDF, probably, again, I am using JPEG images, the resultant PDF gets really big.

Any advice would be appreciated.

Thanks.


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

GIF & PNG are not currently

GIF & PNG are not currently supported, I'm currently implementing this ; already works with PNG but still soes not take well them into account when they have an alpha channel...
Could improve more rapidly if somebody would finance it a little bit...

The size of the resulting pdf will be al last the sum of the sizes of the jpg files, so you should optimize your images for size (do not load a very high definition jpg if you display it very small on the pdf...). Also, depending on your implementation, a given jpeg, if repeated multiple times in the pdf, can be present only once (good), or be repeated multiple times. The API to add the picture must be called only once for each image file, the image being reused through its id.


tamhas's picture

Define "big" ... especially

Define "big" ... especially in comparison to the total size of the images contained therein.