Print Page | Close Window

Strange pdf file

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=3013
Printed Date: 05 May 24 at 1:03PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Strange pdf file
Posted By: dkryaklin
Subject: Strange pdf file
Date Posted: 17 Nov 14 at 7:43AM
Hey

Problem with pdf file: in Foxit I see 3 form fields, but pdfLibrary.FormFieldCount() = 0!

File can be downloaded here: https://www.dropbox.com/s/kgydvgsewisfx3j/test.pdf?dl=0

Thanks,
Dmirty




Replies:
Posted By: Ingo
Date Posted: 18 Nov 14 at 10:25AM
Hi Dmirty,
 
my app (made with QP) shows 211 form fields and
if i look inside the pdf with Notepad this should be okay.
In Foxit and Adobe it looks like 3 separate form fields indeed there are many single fields
Perhaps you should post your code snippet how to determine the form fields?
 
Cheers and welcome here,
Ingo
 


-------------
Cheers,
Ingo



Posted By: dkryaklin
Date Posted: 19 Nov 14 at 2:31AM
Ingo, thanks for quick response

Yes, now I see these fields = 211. So that's my fault.

But this parent field (86 items), or it is hidden (page = 0). My application ignores these fields. And after the removal of parental fields I got a new pdf file.

File can be downloaded here: https://www.dropbox.com/s/vn9nnguu2v2p828/test2.pdf?dl=0

Now really qp.FormFieldCount() = 0
But I see two fields in all pdf viewers

Cheers,
Dmitry


Posted By: AndrewC
Date Posted: 19 Nov 14 at 10:26AM

Dmitry,

The file seems me be malformed and is modified / fixed by Acrobat before the file is displayed.  After closing the file 

You seem to have deleted all of the Form Fields from the AcroForm dictionary.  The fields you are seeing are stored as Annotations.

The original file looks like a mess internally with lots of empty and or missing objects.  You might be better off trying to find an earlier version of the file.

Andrew.


Posted By: dkryaklin
Date Posted: 20 Nov 14 at 2:06AM
Andrew,

"The fields you are seeing are stored as Annotations" - Now I understood. Thanks. But then the question is:
How do I find and correct the these fields at AcroForm using QP?

Original file here: https://www.dropbox.com/s/4txz0bsswwcj303/SPR%20CX%20SOW%20COP%20Templatev3.3.pdf?dl=0

See page 56

Dmitry



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