Open flomlo opened 3 years ago
I'm the author of this particular .pdf, maybe I accidentally fucked up some LuaLaTex stuff and made the resulting .pdf very weird. Feel free to request modified versions if it helps with the debugging.
Oh, for most of my ~300 other files on my remarkable it runs totally fine.
if I understand the comment above https://github.com/rschroll/rmrl/blob/89b5cc38ef45251b96bd3d1c3618429b6b46db92/rmrl/render.py#L442 correctly then we need to load CropBox
if existent, otherwise MediaBox
.
I would suggest the following fix:
bpage_box = list(map(float, basepage.inheritable.CropBox
or basepage.inheritable.MediaBox))
This seems to work fine on my ~300 files.
I'll generate a pull request if you think this is a valid replacement.
Hi,
the renderer crashes when used on the supplied buggy.zip (called via
python -m rmrl buggy.zip
) resulting in the following error:Apparently, in this particular case, neither
basepage.CropBox
, norbasepage.MediaBox
norbasepage.parent.CropBox
exist.I'm trying to debug it myself, but am not particularly confident right now. Could you provide me some hints?
Thank you very much :)