pdf_add_cropmarks() adds crop marks to the edges of components of a print-and-play layout.
Arguments
- input
Input pdf filename.
- output
Output pdf filename.
NULLdefaults to atempfile()with a___pnpmisc.pdffile extension.- ...
Passed to
pdf_add_overlay().- layout
Either a layout preset name in
layout_names()or a data frame with layout data (as returned bylayout_grid()). A preset name is centered on the paper size of the input pdf's (selected) pages as inferred bypdf_paper(); it is an error if those pages don't all share a supported paper size.- gp, cm_width, cm_length
Passed to
piecepackr::grid.cropmark().
Examples
if (requireNamespace("piecepackr", quietly = TRUE)) {
input <- pdf_create_blank(length = 2L, orientation = "landscape")
output <- pdf_add_cropmarks(input, pages = "odd", dpi = 75,
layout = "button_shy_cards")
unlink(input)
unlink(output)
}