tools:ghostscript
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
| Beide Seiten, vorherige ÜberarbeitungVorherige ÜberarbeitungNächste Überarbeitung | Vorherige Überarbeitung | ||
| tools:ghostscript [2016/02/01 16:43] – Standardkonformität einer PDF überprüfen julius | tools:ghostscript [2017/07/21 02:09] (aktuell) – [PDFs verkleinern] Link ergänzt julius | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| ====== Ghostscript ====== | ====== Ghostscript ====== | ||
| - | Diese Seite erklärt, wie man beim Arbeiten mit Scribus | + | [[http:// |
| - | ===== PDFs aufteilen | + | Auf dieser Seite sollen einige Anwendungsfälle kurz beschrieben werden. |
| + | |||
| + | <note tip> | ||
| + | * //Unter Windows// müssen sie statt '' | ||
| + | * //Unter Linux und anderen unixoiden Systemen// müssen sie unbedingt die Groß- und Kleinschreibung beachten – unter Windows ist dies egal. | ||
| + | * befinden sich // | ||
| + | </ | ||
| + | |||
| + | <note important> | ||
| + | Ghostscript // | ||
| ===== Transparenzen entfernen / reduzieren ===== | ===== Transparenzen entfernen / reduzieren ===== | ||
| - | Beispielsweise verlangt die Druckerei | + | Beispielsweise verlangt die Druckerei |
| - | <code bash>gs -o output.pdf -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 | + | <code bash>gs -o Eingabe.pdf -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 |
| + | * '' | ||
| ===== PDFs verkleinern ===== | ===== PDFs verkleinern ===== | ||
| - | siehe [[http:// | + | * [[https:// |
| + | * [[https:// | ||
| ===== PDFs rastern ===== | ===== PDFs rastern ===== | ||
| - | z.B. Vorschaubilder | + | ==== Einfachster Fall: Einseitiges Dokument ==== |
| + | Um eine PDF-Datei mit Ghostscript in eine Bitmapgrafik umzuwandeln (beispielsweise um sie als Vorschaubilder zu benutzen), bedarf es folgendem Kommando: | ||
| + | <code bash>gs -o Ausgabe.png -sDEVICE=png16m -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -r300 Eingabe.pdf</ | ||
| + | Erläuterungen zu den Parametern: | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | <note tip>Sie müssen den Dateinamen an das Ausgabeformat anpassen: Beispielsweise '' | ||
| + | |||
| + | ==== Mehrseitige PDF ==== | ||
| + | <code bash>gs -o Ausgabe_Seite%d.png -sDEVICE=png16m -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -r300 -dFirstPage=2 -dLastPage=2 | ||
| + | * '' | ||
| + | * '' | ||
| ===== PDFs auf Standard-Konformität überprüfen ==== | ===== PDFs auf Standard-Konformität überprüfen ==== | ||
| - | Lässt man Ghostscript eine // | + | Lässt man Ghostscript eine // |
| + | |||
| + | < | ||
| + | GPL Ghostscript 9.10 (2013-08-30) | ||
| + | Copyright (C) 2013 Artifex Software, Inc. All rights reserved. | ||
| + | This software comes with NO WARRANTY: see the file PUBLIC for details. | ||
| + | **** Warning: stream Length incorrect. | ||
| + | **** Warning: | ||
| + | **** The file has been damaged. | ||
| + | **** by a problem while converting or transfering the file. | ||
| + | **** Ghostscript will attempt to recover the data. | ||
| + | **** Warning: | ||
| + | **** numbers. | ||
| + | **** Error: | ||
| + | No pages will be processed (FirstPage > LastPage). | ||
| + | |||
| + | **** This file had errors that were repaired or ignored. | ||
| + | **** Please notify the author of the software that produced this | ||
| + | **** file that it does not conform to Adobe' | ||
| + | **** specification. | ||
| + | </ | ||
| - | '' | + | ===== PDFs zusammenfügen ===== |
| - | Copyright (C) 2013 Artifex Software, Inc. All rights reserved.\\ | + | Beispielsweise praktisch, wenn sie ihr Projekt aus Gründen der Performance [[einfuehrung:faq_problemloesungen# |
| - | This software comes with NO WARRANTY: see the file PUBLIC for details.\\ | + | <code bash>gs -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=Zusammengefügt.pdf datei1.pdf datei2.pdf datei3.pdf</ |
| - | **** Warning: stream Length incorrect.\\ | + | * '' |
| - | **** Warning: | + | * '' |
| - | **** The file has been damaged. This may have been caused\\ | + | |
| - | **** by a problem while converting or transfering the file.\\ | + | |
| - | **** Ghostscript will attempt to recover the data.\\ | + | |
| - | **** Warning: | + | |
| - | **** numbers. The accuracy of the resulting image is unknown.\\ | + | |
| - | **** Error: | + | |
| - | No pages will be processed (FirstPage > LastPage).\\ | + | |
| - | \\ | + | |
| - | **** This file had errors that were repaired or ignored.\\ | + | |
| - | **** Please notify the author of the software that produced this\\ | + | |
| - | **** file that it does not conform to Adobe's published | + | |
| - | | + | |
| + | ===== PDF in einzelne Dokumente aufteilen ===== | ||
| + | Analog lässt sich natürlich ein Dokument in mehrere PDFs ('' | ||
| + | <code bash>gs -o Seite%d.pdf -sDEVICE=pdfwrite | ||
| + | Die aus dem [[#PDFs zusammenfügen|vorherigen Abschnitt]] bekannten Parameter zum Definieren eines Dokument-Ausschnitts lassen sich natürlich ebenfalls verwenden. | ||
tools/ghostscript.1454341434.txt.gz · Zuletzt geändert: (Externe Bearbeitung)
