Re: Vektor-PDFs automatisch beschneiden

"Uwe Ziegenhagen" (via tex-d-l Mailing List) <[email protected]>
Newsgroups gmane.comp.tex.german
Message-ID <CAML7JCj-vi7TZbmwQ1WcGVRJ2k6YFpV8JAs6hva39OFsBgO5XA@mail.gmail.com>
Eventuell lässt sich das hier auch auf PDFs anwenden:

https://tex.stackexchange.com/questions/165961/how-to-crop-background-from-image-automatically

\section*{Automatic crop}
Note: compile with \verb|--shell-escape|\\
\newcommand\cropped[1]{%
    \immediate\write18{convert -trim #1.png #1cropped.png}%
    \includegraphics[width=\linewidth]{#1cropped.png}}
\fbox{\cropped{image}}




Am Fr., 23. Juni 2023 um 16:46 Uhr schrieb Wolfgang Hugemann <
[email protected]>:

> Liebe Liste,
>
> bislang lade ich externe Vektor-PDFs mittels \includegraphics. Dabei
> müssen meist weiße Ränder abgeschnitten werden, die externe Programme
> teilweise unweigerlich produzieren.
>
> Ich habe bislang mit AcrobatPro halbautomatisch zugeschnitten, aber das
> ist mühselig, speziell wenn man mit dem Layout einer Grafik
> experimentiert und sie mehrfach im externen Programm anpasst und das
> LaTeX-Dokument anschließend erneut kompiliert.
>
> Gibt es einen eleganteren Weg? Kann man das PDF ggf. beim Laden
> automatisch passend beschneiden (ohne die Werte angeben zu müssen)? Oder
> gibt es ein Kommandozeilenprogramm, dass weiße Ränder von PDFs
> automatisch abschneiden kann, etwa indem es das PDF auf die bounding box
> zuschneidet?
>
> Wolfgang Hugemann
>
> --
> FAQ: http://texfragen.de/
> Durchsuchbares Archiv: https://www.listserv.dfn.de/sympa/arc/tex-d-l
> Unsubscribe/Verwaltung: https://www.listserv.dfn.de/sympa/info/tex-d-l



-- 
Dr. Uwe Ziegenhagen
0179-7476050
<http://www.uweziegenhagen.de>

-- 
FAQ: http://texfragen.de/
Durchsuchbares Archiv: https://www.listserv.dfn.de/sympa/arc/tex-d-l 
Unsubscribe/Verwaltung: https://www.listserv.dfn.de/sympa/info/tex-d-l
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.