
This seemed to mostly work. It opened every test pdf in the poppler test suite except the password protected one, and they seemed to render mostly fine (apart from known problems, like multiple pages and attachments).
A couple of quirks: every time I cancelled the import screen (on different files) it crashed. Also, when opening a pdf from the command line, I got no preview, though it was available when opening from a running instance of Inkscape.
Is there a solution for multi-page pdfs, even before considering multi-page svgs? Why not import each page into a separate layer labeled by page number?
JF
bulia byak wrote:
Like others I have been getting intermittent and unpredictable (though quite often) crashes when opening or importing pdf files. I found where it crashes but I have no idea why. So I just commented out one line, which seems to have fixed it for me - likely at the expense of a memory leak. Please test if this fixes the crashes for you.
This is the line 711 in src/extension/internal/pdfinput/pdf-input.cpp:
//delete pdf_doc;
I'm at a loss when it comes to such mysterious crashes - there's definitely no double delete here and nothing obviously fishy. So if anyone can discover the true reason please share it with us.