---
title: PDF
kind: note
description: file format
words: 29
readingMinutes: 1
created: '2024-06-12T18:20:49+02:00'
updated: '2026-06-29T20:34:03+02:00'
---
## Resources
### PDF generation libraries
#### [PHP](/notes/php)
- [dompdf](https://dompdf.github.io/)
- [mPDF](https://mpdf.github.io/)
- [Spatie Browsershot](https://spatie.be/docs/browsershot/v2/introduction)
### [Python](/notes/python)
- [WeasyPrint](https://weasyprint.org/)
### <span class="dead-link">C</span>
- [wkhtmltopdf](https://wkhtmltopdf.org/index.html)
## FAQ
### Extract JavaScript
1. Install `pdfinfo` (on [Ubuntu](/notes/ubuntu) it is in the package `poppler-utils`)
2. Run `pdfinfo -js FILENAME`
- [Source](https://stackoverflow.com/questions/29342542/how-can-i-extract-a-javascript-from-a-pdf-file-with-a-command-line-tool)