I have a 18000x18000px PDF file I generate via matplotlib. Before printing I would like to preview it, at least at 20% zoom. Sadly nothing I have tried so far works:
- evince will only open it at a maximum zoom level of 1.3%. This is after I have increased the cache size (via the dconf editor) to ~500MB - further increases (I have tried up to 8 GB) do not improve the maximum zoom. I believe there is some other bottleneck that I am unaware of.
- mupdf fails with
malloc of array (153904 x 615616 bytes) failed (integer overflow)
- Inkscape just takes up all of my RAM (16 GB) and then freezes.
I have alternatively tried to export it as a SVG and open it with inkscape, but that too fills up my RAM and then freezes (but does so more slowly).
Also, I have tried to divide the file into complementary tiles, with the first iteration being:
pdfcrop --verbose --margins "10 10 10000 10000" --clip g.pdf out1.pdf
This has been taken a few hours now, and does not seem to make much progress, on the plus side, it is not eating up all my RAM.
Matplotlib also has the capacity to export PS - but given the larger size of PS, I suspect that would go even worse.
Can you help me find a way to preview my file under Linux?
In case you want to give the file a go you can find it here.
-dDownScaleFactor
and-r
may also be useful to get down memory usage.