Flatten PDF, fix page separators, fix torch/transformers bugs
- Fix issues with transformers 4.46 and torch 2.5
- Improve page separators - they now appear that the start of the page, and show the page number
- Flatten form fields into the PDF before extracting markdown