Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pdf rendering error, when cloning a pdf with pdfbox #5280

Closed
gremsak opened this issue Sep 8, 2014 · 3 comments · Fixed by #5281
Closed

pdf rendering error, when cloning a pdf with pdfbox #5280

gremsak opened this issue Sep 8, 2014 · 3 comments · Fixed by #5281

Comments

@gremsak
Copy link

gremsak commented Sep 8, 2014

I get a pdf rendering error, when I just clone an existing pdf with pdfbox. The source pdf works well and is rendered correctly. Unfortunately, I had no time to explore the behaviour in more detail. Any suggestions to avoid this behaviour would be very helpful.

source file:
http://cantat.com/pdfexamples/source.pdf
clone file:
http://cantat.com/pdfexamples/clone.pdf

And this is what I get in the console.log of firefox

"PDF 48498dd6ab7587a86856191d5fd67765 [1.4 - / -](PDF.js: 1.0.277)" viewer.js:3465
"Beim Darstellen der Seite trat ein Fehler auf.
PDF.js Version 1.0.277 (build: 250d394)
Nachricht: params.get is not a function
Aufrufliste: PredictorStream@resource://pdf.js/build/pdf.worker.js:35655:9
Parser_makeFilter@resource://pdf.js/build/pdf.worker.js:34301:1
Parser_filter@resource://pdf.js/build/pdf.worker.js:34287:11
Parser_makeStream@resource://pdf.js/build/pdf.worker.js:34262:7
Parser_getObj@resource://pdf.js/build/pdf.worker.js:34054:1
XRef_fetchUncompressed@resource://pdf.js/build/pdf.worker.js:4724:9
XRef_fetch@resource://pdf.js/build/pdf.worker.js:4674:9
XRef_fetchIfRef@resource://pdf.js/build/pdf.worker.js:4655:7
Dict_get@resource://pdf.js/build/pdf.worker.js:3603:9
Dict_getAll@resource://pdf.js/build/pdf.worker.js:3649:9
PartialEvaluator_hasBlendModes@resource://pdf.js/build/pdf.worker.js:15326:9
Page_getOperatorList/pageListPromise<@resource://pdf.js/build/pdf.worker.js:3182:11
" viewer.js:3226
pdfViewError() viewer.js:3226
pageViewDrawCallback() viewer.js:4536
pdfPageRenderError()

@yurydelendik
Copy link
Contributor

I think the patch shall be similar to 07a4837, but for https://github.com/mozilla/pdf.js/blob/master/src/core/parser.js#L353

@yurydelendik
Copy link
Contributor

@gremsak did you create this pdf (clone.pdf) and can we use it in our test suite?

@gremsak
Copy link
Author

gremsak commented Sep 9, 2014

Yes, I created this pdf and of course you can use it in your test suite...

Am 08.09.2014 19:53, schrieb Yury Delendik:

@gremsak https://github.com/gremsak did you create this pdf
(clone.pdf) and can we use it in our test suite?


Reply to this email directly or view it on GitHub
#5280 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants