Print Page | Close Window

Problem with Rendering V7.13

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=1126
Printed Date: 12 Apr 26 at 4:25AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Problem with Rendering V7.13
Posted By: Synova
Subject: Problem with Rendering V7.13
Date Posted: 29 Jun 09 at 12:47PM
Hi Folks,
 
I'm using v7.13, and when I flatten the Form fields before printing, I get bizarre results.
Some fields print , some are blank, some hidden buttons print (should not) and
check boxes have the # 4 in them instead of a checkmark.
 
This form prints fine in Adobe and PDF exchange.
 
Suggestions ?
 
Brian
 



Replies:
Posted By: Ingo
Date Posted: 29 Jun 09 at 4:45PM
Hi Brian!

You can't compare a 100-mb-installation like adobe with the small QuickPDF-lib.
If you want to print formfield-content you have to flatten them first - so you've done it the right way.
Does the described behavior happen with all pdf-forms or only one special?
Is the behavior the same with the new version QuickPDF 7.14?
BTW: It's always better to post the relevant code snippet.

Cheers, Ingo



Posted By: Rowan
Date Posted: 30 Jun 09 at 4:49AM
Also, make sure that you're using the FlattenFormField function in the correct way before printing.  http://www.quickpdflibrary.com/kb/index.php?action=artikel&cat=3&id=30&artlang=en - This knowledge base article provides useful tips on how to flatten form fields in a PDF using the FormFieldCount and FlattenFormField functions.

Something like this:

Dim FieldIndex As Integer
Dim FieldCount As Integer
Dim LoopNumber As Integer

FieldCount = QP.FormFieldCount()
FieldIndex = 1

For LoopNumber = 1 to FieldCount
  If QP.FlattenFormField(FieldIndex) = 0 Then
    FieldIndex = FieldIndex + 1
  End If
Next


Posted By: gkell
Date Posted: 28 Oct 09 at 6:30PM

I have the same issue generating pdfs. Data some how get mixed when flattening. Here is the code used to flatten:

For i = CLng(pdf1.FormFieldCount) To 1 Step -1
       If CStr(pdf1.GetFormFieldValue(i)) <> "" Then
            lret = pdf1.FlattenFormField(i)
       Else
            lret = pdf1.DeleteFormField(i)
       End If
Next

If I don't flatten data is fine, however, I have to flatten to merge all generated pdfs together.
 
This needs to be resolved. thanks.


Posted By: Ingo
Date Posted: 28 Oct 09 at 8:03PM
Hi!
Did you read this already?
http://www.quickpdflibrary.com/kb/index.php?action=artikel&cat=3&id=30&artlang=en - http://www.quickpdflibrary.com/kb/index.php?action=artikel&cat=3&id=30&artlang=en

Cheers, Ingo



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