Honestly, I gave up on pure Python libs for this. Ended up using `pdfkit` with `wkhtmltopdf` under the hood.
Yeah, it’s heavier, but bulletproof for webp to pdf conversion.
```python
import pdfkit
pdfkit.from_file('image.webp', 'output.pdf')
```
Downside? You gotta install wkhtmltopdf separately. Worth it if you need reliability.
Yeah, it’s heavier, but bulletproof for webp to pdf conversion.
```python
import pdfkit
pdfkit.from_file('image.webp', 'output.pdf')
```
Downside? You gotta install wkhtmltopdf separately. Worth it if you need reliability.
