josmas / openwonderland

Automatically exported from code.google.com/p/openwonderland
GNU General Public License v2.0
3 stars 5 forks source link

PDF Viewer cannot render PDF with table of contents #323

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Drag and drop a PDF with a table of contents

What is the expected output? What do you see instead?

The PDF is black and in the error log we can see an exception with a message 
like "unable to read 'xref'" 

What version of the product are you using? On what operating system?
Compiled from code updated in Nov, 1 2013

Please provide any additional information below.
https://groups.google.com/d/msg/openwonderland/hLbQcbfNW6M/Xcm3B4uof1QJ

Original issue reported on code.google.com by crrami...@gmail.com on 3 Dec 2013 at 10:56

GoogleCodeExporter commented 9 years ago
To fix the problem I've upgraded the pdf library to icepdf which has a better 
PDF support and support PDF 1.5: 
http://www.icesoft.org/java/projects/ICEpdf/pdf-compliance.jsf

I am attaching the patch. The code is not clean yet but it works you can test 
with it.

Another thing by default it will render the PDF at 200%, so can be viewed well 
in best view or hud. But all the pdfs in your world will become bigger.

Original comment by crrami...@gmail.com on 3 Dec 2013 at 11:01

Attachments: