Quick start
Example: PDF to markdown extraction
In this example, we will walkthrough how you can use Trellis to perform PDF to markdown extraction.
โ Goal
We will be taking a public W2 form (filled out here). Weโll upload the form to Trellis, and use their advanced-markdown parse strategy to convert the PDF to markdown.
๐ Alright, letโs get started!
1. Set your API key
Create your account here [https://dashboard.runtrellis.com/sign-up]. Then, click settings
on the lower right or visit the setting page and copy your API key.
Python
2. Create a Project to put your data
Each project has a unique ID. You can use this ID to refer to the project in the data upload process.
Python
3. Upload the data to the project
In this example, we will use sample W2 form data.
Python
4. Start the PDF to markdown extraction
Python
5. Fetch the markdown results
Python
6. Print the markdown
Python