Apache OpenOffice (AOO) Bugzilla – Issue 43362
PDF Export options to reduce file size
Last modified: 2013-08-07 14:38:26 UTC
PDF export is impressive but produces overly large files (about eight times the original for a small document). Please: 1. Add an option "Substitute device fonts" to avoid including fonts in the PDF file. This will make files smaller. 2. Add a third option for images, which retains the type of compression the original image had. Make this the default option. Images which are in a lossless format in the document would be saves as lossless in the PDF and lossey ones would be saved as JPEG. This would overcome the problem where a document contains both diagrams and photographs. Normally the diagrams would be stored in a lossless format and the images in JPEG. If converted to lossless the photographs will not be efficient, if converted to JPEG the diagrams will be blurry.
MRU->HI: pls evaluate.
i can confim that there are no such settings in OO 1.9.91.
HI->MMP: BTW. Maybe it would be sensible to move some or all possible settings to Tools - Options...area.
LZW compression of the pdf would be great addition as well and shouldn't be too difficult to add at this time. Although, if the feature set is frozen, then maybe you could implement this for the 2.1 version.
I can confirm that PDF size is an issue in OOo2.0. Almost any files I export become significantly larger in OOo1.99.x. For eyample I have a text file with a small image, which exports to 2.26 MB in OOo1.1.4, but to over 3 MB in OOo1.9.109. Obviously export is not as efficient, or, as suggested above, some export options are missing to make it more efficient. I strongly support the idea of differencing between looseless and lossy images. P.S: I'd like to have such setting where they are now, i.e. in a dialog that pops up during export. It happens often that I want to create different versions of the document with different quality/compression. Setting the compression options in the general preferences dialog would be too circumstancial for this. Matthias Basler
Just to chime in on the importance of this issue: here are the file sizes for a simple 3 page document which is comprised solely of a 4 column table of english text. There is one additional anchored frame which also contains text. 49664 bytes: original Microsoft Word Document 15974 bytes: same file opened by OO 2.0rc2 and save as in ODT 29282 bytes: PDF file produced from Word document using Acrobat distiller 467912 bytes: PDF file produced by OO 2.0rc2 The excessive bloat was enough to prevent me from using OO for this document - very unfortunate.
I suggest two improvements (done by ps2pdf under Linux[*]): 1. Use the Compact Font Format (CFF). 2. Include a subset of the font (particularly useful when most characters aren't used). [*] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=343356 which shows that a 115KB PDF file generated by OpenOffice 2.0.0 takes only 2KB after using pdftops and ps2pdf.
------- Additional comments from pl@openoffice.org Tue Mar 14 03:14:57 -0800 2006 ------- One thought on issue 43362: the jpeg issue is a non issue; if the original is jpeg it already gets put into the pdf in its original form; that means if uncompressed images is selected the behaviour is already as wanted. The substitution issue is not really an easy fix since this can only be done for western text, so one would have to make this decision on the fly when encoding the font subsets to be put into the PDF.
IMAGES: Sorry I was confused by the misleading label on the option "Lossless compression". I assumed you would get all the images converted to lossless format (ie PNG). Perhaps that line should be removed and the option underneath changed to a checkbox labeled "Convert to JPEG". Also as converting to JPEG is not a good idea, it would be useful if this option was moved to under "Reduce Image resolution". FONT SUBSTITUTION: This can only be done for western text, but PDF includes these fonts because they are so commonly used.
reassign
Reset assignee on issues not touched by assignee in more than 2000 days.