Graphics, Figures & TablesThat includegraphics / trim / clip bug

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Q94DKHcq
Posts: 2
Joined: Sat Jun 18, 2022 4:32 pm

That includegraphics / trim / clip bug

Post by Q94DKHcq »

When we use includegraphics together with trim and clip, the images don't actually get changed, but it simply hides parts of the images, so the PDF files become very large, and the files are less compatible (e.g. can't be opened with Libre Office).

Any solutions? Can we somehow make includegraphics work? Are there tools to post-process the PDF files and fix the images?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

That includegraphics / trim / clip bug

Post by kaiserkarl13 »

You might try Heiko Oberdiek's PDFcrop tool (https://ctan.org/pkg/pdfcrop), which ships with TeXLIVE on my distribution. Its main feature is to automatically remove whitespace from the edges, but it also allows you to set margins and clip much like graphicx does.
Post Reply