View previous topic :: View next topic |
Author |
Message |
mikegpitt Advocate
Joined: 22 May 2004 Posts: 3224
|
Posted: Tue Oct 04, 2005 4:28 am Post subject: create high quality pdf files |
|
|
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 |
|
|
andyjeffries Apprentice
Joined: 14 Apr 2004 Posts: 196 Location: Stevenage, Herts, UK
|
Posted: Tue Oct 04, 2005 7:37 am Post subject: |
|
|
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 |
|
|
karan Tux's lil' helper
Joined: 15 Feb 2003 Posts: 117 Location: New Zealand
|
Posted: Wed Oct 05, 2005 12:31 am Post subject: |
|
|
great tip, thank you _________________ :: Project Gotham |
|
Back to top |
|
|
NewBlackDak Guru
Joined: 02 Nov 2003 Posts: 512 Location: Utah County, UT
|
Posted: Wed Oct 05, 2005 6:55 pm Post subject: |
|
|
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 |
|
|
|
|
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
|
|