Installation
Add to yourCargo.toml:
rayon feature:
Feature flags
Level 1: Use PdfItDown as-is
To use the conversion features of PdfItDown, import thePdfItDownConverter struct and the Converter trait:
PdfItDownConverter instance, you can convert single or multiple files, as well as all files within a directory:
Vec<u8>) or writes directly to a file.
Level 2: Customize
Once you are comfortable with the basics, you may want more control within your application. PdfItDown offers the perfect solution: implement your ownConverter trait.
Instead of using the default PdfItDownConverter, which can convert almost any file format to PDF, you can provide your own logic by implementing the Converter trait, focusing on specific document types.
Here is an example of a custom converter: