Print Page | Close Window

problem with loading doc

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=469
Printed Date: 19 May 24 at 12:24AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: problem with loading doc
Posted By: ukobsa
Subject: problem with loading doc
Date Posted: 18 Jul 06 at 8:03AM
Hi,

i have a problem with loading a document containing form fields:

- I can load it the first time.
- Then I save it without any changes.
-> if I want to reload it, it doesn't have any pages

After some debugging it seems that it cannot find it's root object reference and therefore no pages.
Adobe Reader and GhostView can display it fine. When I uncompress the content with pdftk then I can load and render it with QuickPDf again.

Does someone have an idea what happens here?

thanks,
Ulrich



Replies:
Posted By: ukobsa
Date Posted: 19 Jul 06 at 3:57AM
update:

as far as I can tell now, it seems to be a problem with cross reference streams. They are ignored on saving the file and so the reference section gets wrongs.

Questions:
1) can QuickPDF work with cross reference streams?
2) what is the PDF version, QuickPDF is compatible with?


greetings,
Ulrich


Posted By: ukobsa
Date Posted: 20 Jul 06 at 4:52AM
second update:

ok, I think I found the problem with the document:

the original one contains a cross reference stream and is a hybrid-reference file (so it also contains normal XRef section).
Therefore the xref's trailer has an entry /XRefStm pointing to the XRefStream.
When the document is saved, the cross reference STREAM is removed and replaced by normal XRef. But the new xrefs trailer still contains the XRefStm tag which now points to nirvana!
When I delete the XRefStm manually, I can display the file again.

So: is it ok that the xref stream is replaced by normal xref? (if so the bug is that the xRefStm Reference is not deleted, otherwise the bug is in not saving the xref stream).

Can someone with more knowledge of PDF spec comment the above?

Thanks,
Ulrich



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk