janoliver / inkslides

A rewrite of the inkscapeslide script to create PDF presentations out of inkscape SVG files.
MIT License
27 stars 7 forks source link

PDF should be up to date. Quitting ... #7

Open ftharyanto opened 4 years ago

ftharyanto commented 4 years ago

I installed it using python3, and when I tried to use it, this is what I got: image

I was thinking that I have to install PyPDF2, so I installed it right away using pip3 install PyPDF2 but the issue still occurred. I have lxml installed btw.

This is my system specification:

anuyts commented 4 years ago

I had the same problem; after browsing the python code, I got the idea of using --flat, which solved the issue for me (also because I didn't need the section feature).

anuyts commented 4 years ago

Oh I get it, you normally get this message when you rerun inkslides but none of your slides has actually changed. If you happen to run the script on a file with 0 frames, then in no frame it notices a change (even if no prior version exists) and so your "old" pdf is assumed to be still up to date. I had a file with a flat structure (top-level layers were frames, no sublayers). By omitting --flat, the script interpreted top-level layers as sections and the non-existent sublayers as frames, i.e. I had 0 frames.