as_docinfo() coerces objects into a docinfo() object.

as_docinfo(x, ...)

# S3 method for xmp
as_docinfo(x, ...)

Arguments

x

An object that can reasonably be coerced to a docinfo() object.

...

Further arguments passed to or from other methods.

Value

A docinfo() object.

Examples

 x <- xmp(`dc:Creator` = "John Doe", `dc:Title` = "A Title")
 as_docinfo(x)
#> Author: John Doe
#> CreationDate: NULL
#> Creator: NULL
#> Producer: NULL
#> Title: A Title
#> Subject: NULL
#> Keywords: 
#> ModDate: NULL