Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
Unable to set values in AcroFormFields |
Post Reply |
Author | |
Ludwig
Team Player Joined: 07 May 15 Location: India Status: Offline Points: 33 |
Post Options
Thanks(0)
Posted: 13 Feb 16 at 7:15AM |
Hi,
I am using Debenu QuickPdf to set values to Acro Form Fields. The function I use is: FlatAPI1115.DPLSetFormFieldValueA(instanceId, index, inputValue) This is working as expected. However for certain PDFs its resulting in a crash. These PDFs apparently are malformed in some way. This is because whenever I open them in "Adobe Acrobat Reader" It always asks me if I would Like to "Save the Modifications", even though I have just viewed it. If I click Yes and attempt to write using the library,It succeeds. However If I click No the "Fatal Exceptions" continue to occur. Debenu in one of its blog posts writes, "Sometime ago, Adobe made the decision to automatically repair these malformed PDF files in Adobe Reader and Adobe Acrobat when they encountered them in the wild. Usually, users don't even know that a PDF has been repaired. It happens silently in the background as the PDF is opened. Often, the only clue that the PDF has been repaired is that the Save button is enabled." FYI: When Adobe Acrobat Reader is asked to "SAVE" the document, the Size of The Document is reduced. My Problem is : That I am unable to detect whether a given PDF will result in a crash or not. I assume that the problematic pdfs must be malformed. Is there any way in which I can detect these "PROBLEMATIC" Pdfs. Interestingly I am able to do ther things like converting these Pdfs into images using QuickPdfs. Only when I use functions like SetFormFieldValue, or UpdateAppearanceStream does the application crash. please download a sample Pdf from the link: https://drive.google.com/file/d/0B_6Z82hoBteTMzAwY2U3ZE13QkU/view?usp=sharing Thanks, Ludwig Edited by Ludwig - 13 Feb 16 at 7:22AM |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi Ludwig,
you should check it out if the malformed documents are the one made with Adobe's InDesign. The pdf forms not initially made with InDesign will work. I've previewed your document with my own solution and i tried it with Foxit. There wasn't any problem. Only Adobe-products telling you something about problems ;-) Adobe products check if the document was modified by a third party tool and throw these messages. Adobe wants to sell there own products. I've written about this in the past: http://pdfcomments.blogspot.de/2009/06/pdf-and-forms.html You can check this before if you read out the content of "creator". If there's "...InDesign..." then you've found a problemfile. |
|
Cheers,
Ingo |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store