Skip to main content

extract

Function extract 

Source
pub fn extract(pdf: &[u8]) -> Result<Embedded, Error>
Expand description

The embedded invoice XML of a Factur-X, ZUGFeRD or Order-X PDF, with its file specification and the document’s XMP metadata, with the default Limits.

§Errors

Error::Pdf: a file that is not a PDF, is malformed, encrypted, uses a PDF feature outside the subset read, exceeds a limit, has no embedded file with an invoice name or several, or has XMP metadata that is not well-formed.