Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
create high quality pdf files
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3221

PostPosted: Tue Oct 04, 2005 4:28 am    Post subject: create high quality pdf files Reply with quote

I randomly ran across these options of google, but I thought other would find some use.

When creating a document with complex graphics in OpenOffice, their builtin "export to pdf" function often distorts the images. To create a high quality pdf do this:

1. In OpenOffice File->Print->Print to file, then save the .ps file.
2. Next use the ps2pdf command with extra options.
(If you use the default ps2pdf the image quality is better than OpenOffice's "export to pdf", but will still have distortion. The below options improve quality greatly.)
Code:
 ps2pdf -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode file.ps
Back to top
View user's profile Send private message
andyjeffries
Apprentice
Apprentice


Joined: 14 Apr 2004
Posts: 196
Location: Stevenage, Herts, UK

PostPosted: Tue Oct 04, 2005 7:37 am    Post subject: Reply with quote

Cool tip, thanks for this.

(duly bookmarked as I'll never remember when I come accross the quality problem).

Cheers,


AJ
_________________
Developer of gPHPEdit
A8N-SLI/AMD X2 4800+/2GB Dual Channel/GF 7900GT OC
Back to top
View user's profile Send private message
karan
Tux's lil' helper
Tux's lil' helper


Joined: 15 Feb 2003
Posts: 117
Location: New Zealand

PostPosted: Wed Oct 05, 2005 12:31 am    Post subject: Reply with quote

great tip, thank you :)
_________________
:: Project Gotham
Back to top
View user's profile Send private message
NewBlackDak
Guru
Guru


Joined: 02 Nov 2003
Posts: 512
Location: Utah County, UT

PostPosted: Wed Oct 05, 2005 6:55 pm    Post subject: Reply with quote

You can also use ps2pdf12, ps2pdf13, ps2pdf14 if you want a certain pdf version
I suggest looking at some ghostscript documentation, because there all kinds of things you can do when making the pdf.
Some very useful things

Setting the page size
-sPAPERSIZE=<papersize> - standard paper sizes
These have to be set in points
-g<Width>x<Height>
-dDEVICEWIDTH=<Width> -dDEVICE-HEIGHT=<Height>

-dFIXEDMEDIA - Only use if you've specified on of the above, but it causes pages to rotate/scale to fit that page definition

Resolution - Needed if you want something you can print instead of view on screen
-r<resolution>
-r<Xresolution>x<Yresolution>
-dDEVICEXRESOLUTION=number1 -dDEVICEYRESOLUTION=number2

Output colorspace
-dProcessColorModel=device_color_space - device_color_space may be /DeviceGray, /DeviceRGB, or /DeviceCMYK; the default value is /DeviceRGB. It converts pretty well back and forth.
_________________
Gentoo systems.
X2 4200+@2.6 - Athy
X2 3600+ - Myth
UltraSparc5 440 - sparcy
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum