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!
Form Field Flatten |
Post Reply |
Author | |
lambda
Beginner Joined: 19 Mar 13 Status: Offline Points: 9 |
Post Options
Thanks(0)
Posted: 19 Mar 13 at 3:37PM |
Hi all,
I use SetFormFieldValue to fill form from datadase in an web application. this works great but I need to make the document flat after this. so Use UpdateAndFlattenFormField. the problem is that the flatten text is offset downward: Before Flattening: After Flattening: Any idea why this would be happening? thanks Edited by lambda - 19 Mar 13 at 3:45PM |
|
Rowan
Moderator Group Joined: 10 Jan 09 Status: Offline Points: 398 |
Post Options
Thanks(0)
|
Hi lambda,
Thanks for your email. Can you please upload the PDF that you are testing with before and after it has been filled and flattened? Cheers, - Rowan.
|
|
lambda
Beginner Joined: 19 Mar 13 Status: Offline Points: 9 |
Post Options
Thanks(0)
|
Hi thanks for your reply,
I could not find a way to upload them so please find them as a share linked for dropbox https://www.dropbox.com/s/mnppt4di15g75mw/With%20normal%20fields.pdf https://www.dropbox.com/s/z3akv1k8uw7rtcj/With%20Flatten%20fields.pdf it looks like the flatten add some padding inside the field box. the app takes the blank form created in word with cenopdf. and fill the fields from database using the field id: if text length is bigger than 150 the font is set to 0 to fit shrink to fit. ( very nice feature by the way). For i As Integer = 0 To LoA.Count - 1 Dim Fid As Integer = 0 Fid = QP.FindFormFieldByTitle(LoA(i).PDFID) If Fid = 0 Then Throw New Exception("Field ID " & LoA(i).PDFID & " Not Found in " & BlankForm) If LoA(i).FieldType = "txt" Then If LoA(i).Ans.Length > 150 Then QP.SetFormFieldTextSize(Fid, 0) Else QP.SetFormFieldTextSize(Fid, 10) End If QP.SetFormFieldColor(Fid, 0, 0.4, 1) QP.SetFormFieldTextFlags(Fid, 1, 0, 0, 0, 1) If QP.SetFormFieldValue(Fid, LoA(i).Ans) < 1 Then Throw New Exception("Fail to fill in Field Value") End If Next 'While FieldCount > 0 ' QP.UpdateAndFlattenFormField(FieldCount) ' FieldCount -= 1 'End While |
|
AndrewC
Moderator Group Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
|
Which version of QPL are you using to flatten the formfields ?
|
|
lambda
Beginner Joined: 19 Mar 13 Status: Offline Points: 9 |
Post Options
Thanks(0)
|
DebenuPDFLibraryDLL0911,
Look like it is recent enough thanks |
|
lambda
Beginner Joined: 19 Mar 13 Status: Offline Points: 9 |
Post Options
Thanks(0)
|
Any idea why this is behaving in that way?
|
|
AndrewC
Moderator Group Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
|
I have made some changes to QPL 9.14 Beta 3 so that the appearance stream created by flattening will more closely match that of Acrobat for multi-line formfields. 9.14 beta 3 will be released sometime this week hopefully. Andrew.
|
|
lambda
Beginner Joined: 19 Mar 13 Status: Offline Points: 9 |
Post Options
Thanks(0)
|
Many thanks for your support
|
|
AndrewC
Moderator Group Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
|
DQPL 9.14 Beta 3 contains improvements to more closely match output from Acrobat.
It can be downloaded from here http://www.debenu.com/blog/debenu-quick-pdf-library-9-14-beta-3-released.html Andrew.
|
|
lambda
Beginner Joined: 19 Mar 13 Status: Offline Points: 9 |
Post Options
Thanks(0)
|
Yes that's definitely an improvement. It is also linked to the field height.
For one line fields, making the field narrow enough make for very good match between field and flattened text. many thanks. |
|
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