Extract metadata from a file

extract_metadata(file, password = NULL, copy = FALSE)

Arguments

file

A character string specifying the path or URL to a PDF file.

password

Optionally, a character string containing a user password to access a secured PDF.

copy

Specifies whether the original local file(s) should be copied to tempdir() before processing. FALSE by default. The argument is ignored if file is URL.

Value

A list.

Details

This function extracts metadata from a PDF

See also

Author

Thomas J. Leeper <[email protected]>

Examples

# \donttest{ # simple demo file f <- system.file("examples", "data.pdf", package = "tabulizer") extract_metadata(f)
#> $pages #> [1] 3 #> #> $title #> NULL #> #> $author #> NULL #> #> $subject #> NULL #> #> $keywords #> NULL #> #> $creator #> [1] "TeX" #> #> $producer #> [1] "MiKTeX pdfTeX-1.40.16" #> #> $created #> [1] "Fri Apr 29 15:40:40 GMT 2016" #> #> $modified #> [1] "Fri Apr 29 15:40:40 GMT 2016" #> #> $trapped #> [1] "False" #>
# }