Archiv für September, 2010
Poppler-utils 0.15 for Windows binary
Verfasst von mfn unter Development, Open Source, Student's life, Technik am 20.09.2010
I made a build of the poppler-utils-0.15 on Windows. I needed a newer version of pdftops, the one from the xpdf binaries was to old…
The build works on my machine, I hope it does on others as well. Feel free to try it.
PDFs mit OpenSource optimieren
Verfasst von mfn unter Development, Open Source, Student's life, Technik am 04.09.2010
Nicht jeder hat eine Adobe Acrobat Professional Lizenz und noch weniger hat man unbedingt ein Betriebssystem auf dem der Acrobat läuft. Deshalb habe ich nach einer Möglichkeit gesucht um mit Open Source Software PDFs zu optimieren, also die Dateigröße durch Neuberechnung von Bildern und Kompression zu verkleinern.
Und ich bin auch fündig geworden. Mit der Kombination xpdf und ghostscript lässt sich das bewerkstelligen.
Ich habe ein kleines Script für Windows zusammengebaut bei dem man nur die Pfade anpassen muss:
set xpdf="X:\Path\to\xpdf"
set ghostscript="X:\Path\to\ghostscript\bin"
set suffix="_opt.pdf"
%xpdf%\pdftops.exe -paper match -level3 hsq.pdf tmp.ps
%ghostscript%\gswin32c.exe -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook -dColorConversionStrategy=/LeaveColorUnchanged -dBATCH -dNOPAUSE -sOutputFile=hsq.pdf%suffix% tmp.ps
del tmp.ps
Das ganze geht natürlich auch unter Linux/Mac sofern xpdf und ghostscript installiert sind:
suffix="_opt.pdf"
pdftops -paper match -level3 hsq.pdf tmp.ps
gs -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook -dColorConversionStrategy=/LeaveColorUnchanged -dBATCH -dNOPAUSE -sOutputFile=hsq.pdf$suffix tmp.ps
rm tmp.ps
Je aktueller die jeweiligen Versionen sind um so besser sieht das Ergebnis aus. Ist zumindest meine Erfahrung.

Letzte Kommentare