pdf_add_crosshairs() adds crosshairs to the corners 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, ch_width, ch_grob
Passed to
piecepackr::grid.crosshair().ch_grobdefaults topiecepackr::squaresCrosshairGrob().
Examples
if (requireNamespace("piecepackr", quietly = TRUE) &&
utils::packageVersion("piecepackr") >= "1.14.0-5") {
input <- pdf_create_blank(length = 2L, orientation = "landscape")
output <- pdf_add_crosshairs(input, pages = "odd", dpi = 75,
layout = "button_shy_cards")
unlink(input)
unlink(output)
}