Skip to contents

Convert PDF to images by mutool

Usage

mutool_convert(
  infile,
  outfile = NULL,
  format = c("png", "svg"),
  page = NULL,
  dpi = 300,
  white = FALSE
)

Arguments

infile

String. Path to input PDF file.

outfile

String Output file path. Defaults to NULL, and is inferred from infile.

format

String. Output format. Ignored when outfile is given.

page

Integer vector. The pages (starting with 1) to extract from the PDF file, defaults to NULL, in which every page is converted to an image.

dpi

Integer. "Dots Per Inch" for PNG outputs.