Page 1 of 1
PDF Export makes huge pdf on Linux
Posted: Tue Mar 04, 2008 12:45 am
by cbhargava
Hi All,
I have three installations of OO Calc. Two are on linux (oo 2.3 and oo 2.0.2) and one on Windows XP (oo 2.3). PDF export of a test document yields different sized pdf documents on Linux and windows. On linux the size is around 250k while on windows it is 53K. Are there any other tweaks that I'm missing?
On linux (both versions of oo). if I print the document to ps and then convert ps to pdf using ps2pdf the pdf size is small.
Any clues would be appreciated.
Thanks.
Re: PDF Export makes huge pdf on Linux
Posted: Tue Mar 04, 2008 12:47 am
by Bhikkhu Pesala
The difference is probably caused by embedded fonts. Check the fonts tab in a PDF viewer.
Re: PDF Export makes huge pdf on Linux
Posted: Tue Mar 04, 2008 12:51 am
by hol.sten
cbhargava wrote:linux
Linux what?
cbhargava wrote:On linux the size is around 250k while on windows it is 53K. Are there any other tweaks that I'm missing?
I had once on a Debian 3.x Linux an OOo version, which created uncompressed PDF files. They where much bigger than the PDF files I could create with Windows XP, although both embedded exactly the same fonts and font subsets. Where did you got your OOo version from and how did you install it? Does the size of the PDF file shrink by putting it into a ZIP archive?
Re: PDF Export makes huge pdf on Linux
Posted: Tue Mar 04, 2008 1:01 am
by cbhargava
My Linux is Ubuntu 6.06LTS (oo 2.0) and Xubuntu 7.10 (oo 2.3)
I don't have access to my windows machine at this moment so I did a test using Ubuntu 6.06LTS / oo2.0
Case1: Export a selection of cells from oo-calc to pdf. The pdf size is 146.6K. Embeded fonts are;
NimbusSansL-Regu
Type1
Embedded
NimbusSansL-Bold
Type1
Embedded
Case2: Print the same selection to postscript file. Converted the ps file to pdf. The pdf size is 7.1K. Embeded fonts are;
NimbusSansL-Regu
Type1C
Embedded Subset
NimbusSansL-Bold
Type1C
Embedded Subset
Re: PDF Export makes huge pdf on Linux
Posted: Tue Mar 04, 2008 1:05 am
by cbhargava
Code: Select all
$ pdffonts test-exp.pdf
name type emb sub uni object ID
------------------------------------ ------------ --- --- --- ---------
NimbusSanL-Regu Type 1 yes no yes 11 0
NimbusSanL-Bold Type 1 yes no yes 16 0
$ pdffonts test-prt.pdf
name type emb sub uni object ID
------------------------------------ ------------ --- --- --- ---------
NCCSIH+NimbusSanL-Regu Type 1C yes yes no 8 0
IKMXUO+NimbusSanL-Bold Type 1C yes yes no 10 0
Re: PDF Export makes huge pdf on Linux
Posted: Tue Mar 04, 2008 4:07 am
by cbhargava
I found out that it has been reported has a bug on launchpad
https://bugs.launchpad.net/openoffice/+bug/23573
But so far no resolution and no options to tweak.

Re: PDF Export makes huge pdf on Linux
Posted: Tue Mar 04, 2008 10:14 pm
by hol.sten
cbhargava wrote:Code: Select all
$ pdffonts test-exp.pdf
name type emb sub uni object ID
------------------------------------ ------------ --- --- --- ---------
NimbusSanL-Regu Type 1 yes no yes 11 0
NimbusSanL-Bold Type 1 yes no yes 16 0
$ pdffonts test-prt.pdf
name type emb sub uni object ID
------------------------------------ ------------ --- --- --- ---------
NCCSIH+NimbusSanL-Regu Type 1C yes yes no 8 0
IKMXUO+NimbusSanL-Bold Type 1C yes yes no 10 0
The difference in the size of these pdf files results from embedding font subset and from not embedding font subsets. Font subsets are much smaller than the complete font. The example pdffonts test-exp.pdf contains the complete fonts (sub = no). The example pdffonts test-prt.pdf contains a font subset (sub = yes).