betatim / notebook-as-pdf

Save Jupyter Notebooks as PDF
BSD 3-Clause "New" or "Revised" License
368 stars 72 forks source link

Improved position calculation #15

Closed betatim closed 4 years ago

betatim commented 4 years ago

I don't quite understand why the size in pixels of the requested PDF "size" isn't the size (in pixels) of the actually stored PDF. It seems like a ratio of 72/288 fixes it. I reckon the PDF is in 72DPI, but the rendering in chrome happens at 288 (so 2x144)?? 96 DPI instead of 72 gives wrong results.