Twinside / Rasterific

A drawing engine in Haskell
BSD 3-Clause "New" or "Revised" License
140 stars 11 forks source link

sort XRef table by object id #50

Closed robx closed 5 years ago

robx commented 5 years ago

Fixes #49 (compare https://github.com/mozilla/pdf.js/issues/10326#issuecomment-444076445).

This sorts the xref table by object id instead of offset. I'm not sure to what extent this relies on object ids being distributed sequentially starting with 1.

I have verified that this fixes the generated PDF to work with Mozilla's PDF.js, though, and Preview.app is still happy.

Twinside commented 5 years ago

Thanks for the debugging & fix!