1

When using includepdf and includegraphics to include a pdf or an image, the trimmed part is only hidden but not removed.

\documentclass{article}

\usepackage{pdfpages}

\begin{document}

\includepdf[trim={10mm 10mm 50mm 10mm}]{example-image.pdf}

\includepdf[trim={10mm 10mm 50mm 10mm},clip]{example-image.pdf}

\includepdf[clip,trim={10mm 10mm 50mm 10mm}]{example-image.pdf}

\end{document}

My questions are:

  1. Why is it done this way?
  2. Can I somehow remove the invisible parts?
  3. Should I remove the invisible parts?

I tried using the clip key but it does not seem to work.

user1
  • 2,196
  • 1
    @DavidCarlisle thanks for your reply. I already tried that. Updated the question. – user1 Oct 02 '23 at 11:58
  • related https://tex.stackexchange.com/questions/462372/included-pdf-image-has-invisible-but-selectable-text?noredirect=1&lq=1 – samcarter_is_at_topanswers.xyz Oct 02 '23 at 12:33
  • oh sorry I misread your question, hidden but not removed, yes by design (and not feasible to change) – David Carlisle Oct 02 '23 at 13:29
  • I suppose the question would be HOW do you want to clip it exactly? For jpg you could do losslessly, but true lossless clipping involves changing the clip size, and if lossy, how exactly. There is no such singular thing as a clipped image. Images can also be re-used in the same pdf (at different clippings). You could ask the same question about why images inserted are not saved in the pdf at a different size (without clipping) – Aubrey Blumsohn Oct 02 '23 at 15:12

0 Answers0