mozilla :: #pdfjs

12 Sep 2017
01:58LanceHello, does PDF.js unload the divs with a class of page when theyre out of view?
02:00yuryit should, you can check it by setting setInterval and print amount of canvas tags
02:00LanceWhen viewed in Safari on iOS/iPad? Im injecting some divs into this div after the textLayer div and they seem to dissapear
02:04yuryinject them again
02:07LanceI do. Most of them work except for the very top of the first page and the last on the last page. I can only get those to redraw if I give the scroll quite a big over scroll to get the bounce effect. Does that make sense for pagerendered event?
11:23github_pdfjs[pdf.js] Snuffleupagus pushed 2 new commits to master: https://github.com/mozilla/pdf.js/compare/ba219965760d...2916ed080dd7
11:23github_pdfjspdf.js/master 23cbe29 Tim van der Meij: Combine the common styles and overrides for the annotation layer...
11:23github_pdfjspdf.js/master 2916ed0 Jonas Jenwald: Merge pull request #8893 from timvandermeij/annotations-css-dedup...
11:23soakbotPull 8893: Combine the common styles and overrides for the annotation layer reference tests. https://github.com/mozilla/pdf.js/pull/8893
11:34github_pdfjs[pdf.js] pdfjsbot force-pushed gh-pages from bdeb2e6 to 1e59b95: https://github.com/mozilla/pdf.js/commits/gh-pages
11:34github_pdfjspdf.js/gh-pages 1e59b95 pdfjsbot: gh-pages site created via gulpfile.js script...
12:28github_pdfjs[pdf.js] Snuffleupagus pushed 2 new commits to master: https://github.com/mozilla/pdf.js/compare/2916ed080dd7...f2618eb2e4db
12:28github_pdfjspdf.js/master 8602039 Jani Pehkonen: Fix color of image masks inside uncolored patterns
12:28github_pdfjspdf.js/master f2618eb Jonas Jenwald: Merge pull request #8808 from janpe2/issue8741...
12:28soakbotPull 8808: Fix color of image masks inside uncolored patterns. https://github.com/mozilla/pdf.js/pull/8808
12:39github_pdfjs[pdf.js] pdfjsbot force-pushed gh-pages from 1e59b95 to 22fca93: https://github.com/mozilla/pdf.js/commits/gh-pages
12:39github_pdfjspdf.js/gh-pages 22fca93 pdfjsbot: gh-pages site created via gulpfile.js script...
13:02mib_ltkv3iHi, is it possible to run pdf.js without node.js?
13:03mib_ltkv3iI am trying to run it on V8 js engine, but it uses some node.js-specific functions like "require"
13:04mib_ltkv3iIf not, how is it the "built into version 19+ of Firefox"? Does Firefox run node.js?
13:05mib_ltkv3iThanks to anybody who can help
14:47bencpdf2svg.js is supposed to work?
14:47bencnode pdf2svg.js gives me an error
14:48bencwhat is the flag for the svg backend in the web viewer? #svg=true has no effect
14:51yurybenc: what type of error pdf2svg.js gives you?
14:51bencyury: testing again now
14:52yurybenc: you need to change the "renderer" preference, so viewer will use svg
14:52bencyury: how?
14:53yuryPDFViewerApplication.preferences.set('renderer', 'svg')
14:53yurygoing back is PDFViewerApplication.preferences.set('renderer', 'canvas')
14:53bencis it saved in local storage?
14:53yurysure
14:53benccouldn't find it in the docs. maybe missed it
14:54bencok. now I see svg in the web viewer
14:54bencchecking pdf2svg.js
14:55bencError: TypeError: svg.setAttribute is not a function
14:56benchttps://pastebin.com/KWjY3WCU
14:56yuryprobably a rengression from recient PR
14:56yurytake less recient master
14:56yuryand ping tim :)
14:59benc:)
15:05bencI see many not implemented warnings in the console with the svg backend
15:05bencI guess it isn't ready for production
13 Sep 2017
No messages
   
Last message: 9 days and 13 hours ago