Arrsoya / jmupdf

Automatically exported from code.google.com/p/jmupdf
1 stars 0 forks source link

Critical slowdown and a lot of log output for certain PDFs #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
(Using 0.4.1, tested WinXP/7 and Linux)

Trying to render the following PDF: 
http://www3.telus.net/public/aramir/TestCase-Flyer.pdf (sorry for not attaching 
- file size limit of 10Mb), jMuPDF generates _a lot_ of errors in form of:

  error: expected string or endbfchar
  error: syntaxerror in cmap bfchar
  error: cannot parse cmap stream (72 0 R)
  error: cannot load cid font (71 0 R)
  warning: cannot set font
  warning: cannot draw text since font and size not set
  error: expected string or endbfchar
  error: syntaxerror in cmap bfchar

up to 10000-20000 lines (!!) like those in the logs.
the test system seems to come to _extreme_ slowdown during this test, and then 
to a complete stop.

It seems that renderer tries to proceed, even when encountering critical 
errors. Is it possible to make it abort after the first critical error? I'd 
rather have an error message than a DOS-type slowdown. 

Also: is it possible to supress those errors/warnings in the log (or at least 
supress the consecutive ones)?

(We see more and more of this type of PDFs around - I think those are generated 
by the Adobe Photoshop)

Thank you.

Original issue reported on code.google.com by aramir.g...@gmail.com on 24 Sep 2012 at 9:05

GoogleCodeExporter commented 9 years ago
Aramir,

Sorry for the delay. I will be looking into this issue. Also I see about better 
managing log errors and critical errors.

Thanks,

Pedo

Original comment by pedro.ri...@gmail.com on 12 Feb 2013 at 6:17

GoogleCodeExporter commented 9 years ago
This should now be fixed.

Original comment by pedro.ri...@gmail.com on 6 Apr 2014 at 8:40