Adobe Distiller maybe? If not, then ghostscript.
Adobe Distiller maybe? If not, then ghostscript.
Since the PDF appears to be fairly simple (one image per page), then you might consider directly generating the PDF. I don't know the PDF spec, but it can't be too hard to do this for such a simple document.
Thanks wysota but Brandybuck (thanks too) has made me realized that maybe all what I need is just some libraries for the creation of PDF docs and for the attachment of images on them. The problem is that I don't know where to find them![]()
Another solution could be taking advantage of the fact that Qt is opensource and search for its sources where it compresses the images in the pdf docs. I'm nearly sure that it fixes a compression level. I would like to change it. That would do the trick, too. I've been reading QPrinter and QPainter but It's a little complex to find where it generates the PDF (again)
AFAIK Qt doesn't do any special compression, it just sticks images into the pdf. Optimisations are planned for future releases.
Dark_Tower (9th December 2006)
Hi again, finally seems that my suposition was true (which I'm happy) and Qt seems to fix the compression level in the file "qprintengine_pdf.cpp" line 519 with a value of 95. Reading a bit the method "addImage" seems a bit "dirty" because, for example, if we create a QImage from a JPEG image, then, internally, the image is compressed again to jpeg
So, why they don't create a method to include the original image, as I've said before? I hope that in the future would be possible... I also hope that this helps somebody else with this problem
![]()
Bookmarks