Rotate pages in a pdf file
Arguments
- input
path or url to the input pdf file
- pages
a vector with page numbers to rotate
- angle
rotation angle in degrees (positive = clockwise)
- relative
if
TRUE
, pages are rotated relative to their current orientation. IfFALSE
, rotation is absolute (0 = portrait, 90 = landscape, rotated 90 degrees clockwise from portrait)- output
base path of the output file(s)
- password
string with password to open pdf file
Examples
pdf_file <- system.file("examples", "sufganiyot.pdf", package = "cpp11qpdf")
fout <- tempfile()
pdf_rotate_pages(pdf_file, 1, 90, FALSE, fout, "")
#> [1] "/tmp/RtmpOgvruH/file27fb4165bc58c.pdf"