Skip to contents

pdf_append_blank() appends blank pages to a pdf.

Usage

pdf_append_blank(input, output = NULL, ..., minimum = 1L, multiples_of = 1L)

Arguments

input

Input pdf filename.

output

Output pdf filename. NULL defaults to tempfile(fileext = ".pdf").

...

Ignored.

minimum

Final number of pages should be at least this integer.

multiples_of

Final number of pages should be a multiple of this integer.

Examples

f1 <- pdf_create_blank(length = 1L)
f2 <- pdf_append_blank(f1, multiples_of = 4L)
qpdf::pdf_length(f2)
#> [1] 4

# Clean up
unlink(f1)
unlink(f2)