Extract metadata from a file
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 iffile
is URL.
Examples
# simple demo file
f <- system.file("examples", "mtcars.pdf", package = "tabulapdf")
extract_metadata(f)
#> $pages
#> [1] 3
#>
#> $title
#> NULL
#>
#> $author
#> NULL
#>
#> $subject
#> NULL
#>
#> $keywords
#> NULL
#>
#> $creator
#> [1] "LaTeX via pandoc"
#>
#> $producer
#> [1] "xdvipdfmx (20240407)"
#>
#> $created
#> [1] "Tue Apr 30 14:32:36 UTC 2024"
#>
#> $modified
#> NULL
#>
#> $trapped
#> NULL
#>