I want to include different kinds of PDFs. For one kind (a normal page just generated outside of LaTeX) I want the margins added by the crop package. But others are full size photos for which I want full paper size (no white borders around) because that is the point in the first place – not to add tiny white borders if the cutting is done a fraction of a millimeter larger than A4 (tiny bit smaller does not matter, losing one pixel cannot be recognized, adding one white dot to a dark photo definatelly will). So I think I need to be able to include logical pages that are set as such and pages that are not realy logical as they have the printing press' paper size as dimensions allready (and I know that 3mm of the picture will be cut off).
\documentclass[a4paper, twoside]{book}
\usepackage[pass]{geometry}
\usepackage[frame, width=216mm,height=303mm,center]{crop}
gives me the correct document for everything generated in LaTeX and also everything that is just A4 PDFs included without being sensitive to the fraction off a millimeter (not printing over the border into the margins to be cut). But including a PDF (that I allready made 216mm x 303mm in the generating software)
\includepdf[pages={1},pagecommand={
\addcontentsline{toc}{subsection}{Referenz: Gal Gadot} \label{img:2018050601}\glsadd{motivational:GadotGal} \thispagestyle{empty}
}]{img/GalGadot_Schulterblick.pdf}
puts it just as it would A4 and surrounds it with the 3mm white margin completely defeating the whole process.
Is crop even the correct package and either way – how do I include PDFs (or any graphics for that matter) not scaled just keeping it printing paper size in order to have the guy in the print job cut it guaranteing there will not be any white borders for the "full page graphics" included?
edit: maybee it gets more clear this way: I need to have a document for croping at the print job, therefore the paper in the generated PDF needs to be 216×303 instead of 210×297 (A4) but some PDFs included are already oversize 216×303 and must not be put into the centered A4 space. They are meant to be cut to avoid white borders after cutting the sheets at the print shop. Those must not be resized and centered as the crop package does with the code above.
Best Answer
Typically you would do this by ensuring that the PDF boxes (/MediaBox, /BleedBox, and /TrimBox) are correctly set.
There isn't really a good automatic way of doing this in LaTeX.
So you need to set them up using the
\pdfpageattr
macro inpdflatex
. The technique is slightly different forlualatex
andxelatex
if you use them.In the following MWE, I also adjusted the trim marks to be more to my liking. Your printer may no need these marks at all. In which case you can just set your
/BleedBox
to be the same as your/MediaBox
(216mm by 303mm).In the picture below, the
/BleedBox
is blue and the/TrimBox
is green.MWE