| supports {xmpdf} | R Documentation |
Detect support for features
Description
supports_get_bookmarks(), supports_set_bookmarks(),
supports_get_docinfo(), supports_set_docinfo(),
supports_get_xmp(), supports_set_xmp(),
supports_cat_pages(), and supports_n_pages()
detects support for the functions
get_bookmarks(), set_bookmarks(),
get_docinfo(), set_docinfo(),
get_xmp(), set_xmp(),
cat_pages(), and n_pages() respectively.
supports_exiftool(), supports_gs() and supports_pdftk()
detects support for the command-line tools
exiftool, ghostscript and pdftk respectively as used by various lower-level functions.
Usage
supports_get_bookmarks()
supports_set_bookmarks()
supports_get_docinfo()
supports_set_docinfo()
supports_get_xmp()
supports_set_xmp()
supports_cat_pages()
supports_n_pages()
supports_exiftool()
supports_gs()
supports_pdftk()
Details
-
supports_exiftool()detects support for the command-line toolexiftoolwhich is required forget_docinfo_exiftool(),get_xmp_exiftool(),set_xmp_exiftool(), andn_pages_exiftool(). -
supports_gs()detects support for the command-line toolghostscriptwhich is required forset_docinfo_gs(),set_bookmarks_gs(),cat_pages_gs(), andn_pages_gs(). -
supports_pdftk()detects support for the command-line toolpdftkwhich is required forget_bookmarks_pdftk(),set_bookmarks_pdftk(),get_docinfo_pdftk(),set_docinfo_pdftk(),cat_pages_pdftk(), andn_pages_pdftk(). -
requireNamespace("pdftools", quietly = TRUE)detects support for the R packagespdftoolswhich is required forget_bookmarks_pdftools()andget_docinfo_pdftools(). -
requireNamespace("qpdf", quietly = TRUE)detects support for the R packagesqpdfwhich is required forcat_pages_qpdf()andn_pages_qpdf().
Examples
# Detect for higher-level features
supports_get_docinfo()
supports_set_docinfo()
supports_get_bookmarks()
supports_set_bookmarks()
supports_get_xmp()
supports_set_xmp()
supports_cat_pages()
supports_n_pages()
# Detect support for lower-level helper features
supports_exiftool()
supports_gs()
supports_pdftk()
print(requireNamespace("pdftools", quietly = TRUE))
print(requireNamespace("qpdf", quietly = TRUE))