PDF Export makes huge pdf on Linux

Discuss setup / installation issues - Add a spell checker, Language pack?
Post Reply
cbhargava
Posts: 4
Joined: Tue Mar 04, 2008 12:28 am

PDF Export makes huge pdf on Linux

Post 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.
User avatar
Bhikkhu Pesala
Posts: 1253
Joined: Mon Oct 08, 2007 1:27 am

Re: PDF Export makes huge pdf on Linux

Post by Bhikkhu Pesala »

The difference is probably caused by embedded fonts. Check the fonts tab in a PDF viewer.
Idiot Compassion
LibreOffice 6.0.4 on Windows 10
hol.sten
Volunteer
Posts: 495
Joined: Mon Oct 08, 2007 1:31 am
Location: Hamburg, Germany

Re: PDF Export makes huge pdf on Linux

Post 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?
OOo 3.2.0 on Ubuntu 10.04 • OOo 3.2.1 on Windows 7 64-bit and MS Windows XP
cbhargava
Posts: 4
Joined: Tue Mar 04, 2008 12:28 am

Re: PDF Export makes huge pdf on Linux

Post 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
cbhargava
Posts: 4
Joined: Tue Mar 04, 2008 12:28 am

Re: PDF Export makes huge pdf on Linux

Post 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

cbhargava
Posts: 4
Joined: Tue Mar 04, 2008 12:28 am

Re: PDF Export makes huge pdf on Linux

Post 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.

:(
hol.sten
Volunteer
Posts: 495
Joined: Mon Oct 08, 2007 1:31 am
Location: Hamburg, Germany

Re: PDF Export makes huge pdf on Linux

Post 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).
OOo 3.2.0 on Ubuntu 10.04 • OOo 3.2.1 on Windows 7 64-bit and MS Windows XP
Post Reply