mozilla :: #pdfjs

13 Sep 2017
07:58bencwhat need to be done to bring the svg backend to the level of the canvas backend?
07:59bencdoes it require months/years of work?
12:45yurybenc: only one not-entry-level contributor for few months to finish SVG
12:46yurytask is simple by itself, but patience is needed
12:47github_pdfjs[pdf.js] yurydelendik pushed 2 new commits to master: https://github.com/mozilla/pdf.js/compare/f2618eb2e4db...25c49de04863
12:47github_pdfjspdf.js/master cc654fd Tim van der Meij: Provide a stub for `setAttribute` in order to use the SVG back-end with...
12:47github_pdfjspdf.js/master 25c49de Yury Delendik: Merge pull request #8904 from timvandermeij/svg-setattribute-stub...
12:47soakbotPull 8904: Provide a stub for `setAttribute` in order to use the SVG back-end with Node.js. https://github.com/mozilla/pdf.js/pull/8904
12:58github_pdfjs[pdf.js] pdfjsbot force-pushed gh-pages from 22fca93 to ce3fc71: https://github.com/mozilla/pdf.js/commits/gh-pages
12:58github_pdfjspdf.js/gh-pages ce3fc71 pdfjsbot: gh-pages site created via gulpfile.js script...
17:10HaximusHey everyone, wondering if I could get some advice
17:13HaximusI am working on a webportal for a client, and I have been battling an issue all day where I need to display a PDF on a page, which my only options seem to be using an iframe, object, or embed. No matter what tag I use, the drop down menu is being hidden behind the PDF. This issue is only happening in Internet Explorer, I have tried adjusting positions and z-index, but nothing is working.
17:13HaximusThrough my research I found PDFJS. Does this project handle the issue that I am having?
17:37bencyury: https://github.com/mozilla/pdf.js/issues/8045
17:37bencthis is an example of svg missing feature I reported
17:38bencis it something I can work on? I don't know where to start
17:39bencHaximus: pdfjs render the a pdf page on html canvas element
17:39bencHaximus: so it's standard html and you can layout and position anyway you want
17:40bencHaximus: regarding your iframe/object issue, I suggest you create a simple example that demonstrates your issue and ask on stackoverflow or relevant irc channel
17:42bencHaximus: you can see live examples here: http://mozilla.github.io/pdf.js/examples/index.html#interactive-examples
18:36yurybenc: you can take any issue marked with "4-svg" or try them all -- best way is too check what canvas is doing and try to move it to SVG
18:37yurybenc: you open PDF with #pdfBug=Stepper in viewer's url you will see all command
18:38yurywith your PDF I see "RadialAxial", I think it will be non-complex task to implement it in PDF
20:13timvandermeijyury: Shall we try https://github.com/mozilla/botio-files-pdfjs/pull/19 ?
20:14timvandermeijThe idea is that it will save time on the bots because Babel takes a long time especially on Windows.
20:15yurytimvandermeij: yeah, I'll try to find time for it. If I'll not do that, can you kick me in two days
20:16timvandermeijSure, no problem.
20:16* yury can approve it, but needs time to deploy
20:18bencyury: thanks. I'll take a look
20:19bencpdf.js might be the most advanced open source and approachable pdf reader
20:19bencmupdf might have better performance but has problematic license
20:19yuryyes
20:19bencwith svg it will have super powers :)
20:20yurywe could easily recompile poppler and included in ff, but its license did not really allow to do that
20:20bencpoppler has hard issues
20:21bencfrom my experience in recent years, pdf.js gives better results
20:21bencand actually fix bugs
20:21yurynice to hear that
20:25github_pdfjs[pdf.js] timvandermeij pushed 2 new commits to master: https://github.com/mozilla/pdf.js/compare/25c49de04863...31a34335a04b
20:25github_pdfjspdf.js/master 1ebbdc2 Jonas Jenwald: Use the `SimpleLinkService` when running "annotations" reference tests...
20:25github_pdfjspdf.js/master 31a3433 Tim van der Meij: Merge pull request #8900 from Snuffleupagus/ref-test-SimpleLinkService...
20:25soakbotPull 8900: Use the `SimpleLinkService` when running "annotations" reference tests. https://github.com/mozilla/pdf.js/pull/8900
20:37github_pdfjs[pdf.js] pdfjsbot force-pushed gh-pages from ce3fc71 to d0ae6a7: https://github.com/mozilla/pdf.js/commits/gh-pages
20:37github_pdfjspdf.js/gh-pages d0ae6a7 pdfjsbot: gh-pages site created via gulpfile.js script...
21:08bencyury: I don't see debug messages with
21:08benchttps://mozilla.github.io/pdf.js/web/viewer.html#pdfBug=Stepper
21:10yurybenc: see https://github.com/mozilla/pdf.js/wiki/Debugging-PDF.js#enabling
21:10yury execute PDFViewerApplication.preferences.set('pdfBugEnabled', true); in the JavaScript console
21:11bencthanks
21:11yurybtw, it will be empty if SVG is on
21:11bencwhy empty with svg?
21:11yurySVG does not report to the debugger, I guess
21:12bencok
21:12yuryyou can fix this too :)
21:12benc:)
14 Sep 2017
No messages
   
Last message: 6 days and 18 hours ago