Sometimes PDF doesn't generate, no errors are shown? #10
Closed
opened 2 years ago by decentral1se
·
9 comments
Loading…
Reference in new issue
There is no content yet.
Delete Branch '%!s(MISSING)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
I don't know quite what is happening but when I load say, http://localhost:5001/newsletter/pdf/, the page loads & does do something but then there is no PDF inside the iframe when I scroll around. There are no logs reported on the terminal. Unsure if something went wrong or it is a browser thing? I am using Firefox now with octomode.
Small video to show it:
Hmm, not sure what happens there.
Did you add the mini templates to the "pad" (in markdown) and "stylesheet" (in css)?
Octomode needs this in order to render a pdf.
I wrote some documentation on Rosa about these templates, this was a good incentive to move it to the README here :) --> https://git.vvvvvvaria.org/varia/octomode/src/branch/master/README.md
Yeah the weird thing is that this is the newsletter pad that generates SomeTimes (http://localhost:5001/newsletter/pdf/). But I am loading it from my locally hosted ocotomode to look at it ;) It's strange because it was working and then suddenly not! I suspect this will be a hard bug to find :(
Lovely!
Does the console of your browser say anything?
Nope 🤔 Can try to reproduce the bug with you the next time we meet 😆
O C T O
M O D E
G H O S T
B U G
lol, oke yes let's do that :---)
I was working on a small publication in Octomode today (online on octomode.varia.org) for about an hour when paged.js seemed to stop working and I had the same as @decentral1se - no PDF viewable on the page where it usually is rendered by paged.js polyfill. On inspection, some errors were caught in the console (see screenshot)
Hmm - I removed something from the CSS and voila, it works again.
This is what I removed from the @page declaration:
counter-increment: section;
sick debugging skills @simoon it is indeed back! will close this off 📪
one idea i had from all this is that it would be nice to able to pin a "version" of a .md + .css pad which outputs a pdf. this could be connected with a revision of both pads, so you can freeze a "version" which you know works. then hacking can continue as usual and at some point, you can make the new release, pick the latest revision of the pads.