Skip navigation.

Simulation Sickness

By a concerned citizen

Posts tagged with "opdf"

opdf 0.3.2

,

So, ph030 released his new version of opdf (0.3 and 0.3.1). This in turn made me fire up my ... gedit :wink: ... and do some more coding on my side (based on 0.3, but merged in 0.3.1 changes afterwards). the result is 0.3.2 with three major changes:

1) fixed some really sh**y js bug (let's just say that I didn't really get how onerror worked :wink:)
2) the first page now loads automatically when it's rendered - I'm thinking about changing this a little: keep the loading-indicator until every page is loaded and then replace it with the first one if no other page was currently called (maybe tomorrow)
3) re-merged the js-files and added a global variable for the layout mode (can be useful anyway)
4) used pdf2svg's internal loop instead of our external one again

I have a known issue though (but I don't know if it's my own stupidity or opera's): Sometimes the first page yields a parsing error as pdf2svg seems to not fully have written the file to hd. This can be worked around by simply pressing reload. This won't stop the parsing, so don't worry :wink: I haven't currently figured out why opera is too stubborn to call the onerror function but simply displays an error page (or why pdf2svg writes half-finished files for that matter) though ... well, maybe tomorrow when I'm a little more awake :wink:

cheers
Immanuel aka. Serious

opdf_032.tar.gz

SVG for PDF rendering - more than a dream

, , , ...

A recent post in the wishlist by ph030 made me aware of the possibility to parse PDFs to SVG and thus use Opera for "plugin-free" PDF rendering. Ph030 also provided an example script based on the pdf2svg utility and since then I've spent some time on improving it.

Read more...