Hello, lots of my images are huge 200x250mm. I reduce their size with: \externalfigure[cow][width=20mm, heigth=25mm] After generating the PDF, the pdf is very huge. 1. Can't Context put the reduced image into the PDF? 2. How can I generate one PDF version for printing (300dpi) and one for the screen (72dpi)? I am using Context mk-IV. Regards Jannis
Hello,
lots of my images are huge 200x250mm. I reduce their size with: \externalfigure[cow][width=20mm, heigth=25mm]
After generating the PDF, the pdf is very huge.
1. Can't Context put the reduced image into the PDF? 2. How can I generate one PDF version for printing (300dpi) and one for the screen (72dpi)?
I am using Context mk-IV. no, you need something like ghostscript. In this case (if you have not problems of space and time) it's better to transform the pdf in ps with
On Thu, Dec 29, 2011 at 12:16 PM, Jan Heinen
On 29-12-2011 13:45, luigi scarso wrote:
Hello,
lots of my images are huge 200x250mm. I reduce their size with: \externalfigure[cow][width=20mm, heigth=25mm]
After generating the PDF, the pdf is very huge.
1. Can't Context put the reduced image into the PDF? 2. How can I generate one PDF version for printing (300dpi) and one for the screen (72dpi)?
I am using Context mk-IV. no, you need something like ghostscript. In this case (if you have not problems of space and time) it's better to transform the pdf in ps with
On Thu, Dec 29, 2011 at 12:16 PM, Jan Heinen
wrote: pdftops yourfile.pdf and then apply ghostscript to the final ps (see the documentation about ghostscript)
ghostscript can do that directly with the pdf (no need to go through ps) (also see: http://article.gmane.org/gmane.comp.tex.context/71919/match=lowres) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 29-12-2011 13:45, luigi scarso wrote:
On Thu, Dec 29, 2011 at 12:16 PM, Jan Heinen
wrote: Hello,
lots of my images are huge 200x250mm. I reduce their size with: \externalfigure[cow][width=20mm, heigth=25mm]
After generating the PDF, the pdf is very huge.
1. Can't Context put the reduced image into the PDF? 2. How can I generate one PDF version for printing (300dpi) and one for the screen (72dpi)?
I am using Context mk-IV.
no, you need something like ghostscript. In this case (if you have not problems of space and time) it's better to transform the pdf in ps with pdftops yourfile.pdf and then apply ghostscript to the final ps (see the documentation about ghostscript)
ghostscript can do that directly with the pdf (no need to go through ps)
(also see: http://article.gmane.org/gmane.comp.tex.context/71919/match=lowres) yes, but latest ghostscript (ver. 9) sometimes fail when used
On Thu, Dec 29, 2011 at 2:19 PM, Hans Hagen
/ pdf -> pdftops ->ps ->ghostscript ->pdf />/ seems to be more robust and gives better results />/ -- />/ luigi / I will give it a try: Can you tell me the commands with all the parameters I need ?
I have tried the following: #!/bin/sh suffix="_opt.pdf" pdftops -paper match -level3 $1.pdf tmp.ps gs -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook -dColorConversionStrategy=/LeaveColorUnchanged -dBATCH -dNOPAUSE -sOutputFile=$1.pdf$suffix tmp.ps rm tmp.ps But in some cases the PDF-files got bigger instead of smaller. Regards Jannis
On Thu, Dec 29, 2011 at 5:34 PM, Jan Heinen
pdf -> pdftops ->ps ->ghostscript ->pdf seems to be more robust and gives better results -- luigi
I will give it a try: Can you tell me the commands with all the parameters I need ?
I have tried the following:
#!/bin/sh suffix="_opt.pdf" pdftops -paper match -level3 $1.pdf tmp.ps gs -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook -dColorConversionStrategy=/LeaveColorUnchanged -dBATCH -dNOPAUSE -sOutputFile=$1.pdf$suffix tmp.ps rm tmp.ps
But in some cases the PDF-files got bigger instead of smaller. Yes this also my experience. I suppose that gs acts only on images, not streams compression You can try qpdf http://qpdf.sourceforge.net see 3.4. Advanced Transformation Options http://qpdf.sourceforge.net/files/qpdf-manual.html#ref.advanced-transformati...
-- luigi
I found another way to compress PDFs: The ConText-command \pdfcompresslevel=9 qpdf and ghostwriter also helped. Thanx Jannis
On 29-12-2011 19:44, Jan Heinen wrote:
I found another way to compress PDFs: The ConText-command
\pdfcompresslevel=9
qpdf and ghostwriter also helped.
use \maximumpdfcompression instead if the low level \pdf* command ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Jan Heinen
-
luigi scarso