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!
![]() |
Formfield background color changing |
Post Reply ![]() |
Author | |
mg8933 ![]() Beginner ![]() Joined: 05 Feb 18 Location: Germany Status: Offline Points: 9 |
![]() ![]() ![]() ![]() ![]() Posted: 05 Feb 18 at 4:45PM |
Is there a function with which I can set the background color of the checkbox from formfield to another color than the default transparency?
Thnx Manfred |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi Manfred,
there are two options for you: http://www.debenu.com/docs/pdf_library_reference/SetFormFieldBackgroundColor.php http://www.debenu.com/docs/pdf_library_reference/SetFormFieldBackgroundColorCMYK.php Chers and welcome here, Ingo |
|
Cheers,
Ingo |
|
![]() |
|
mg8933 ![]() Beginner ![]() Joined: 05 Feb 18 Location: Germany Status: Offline Points: 9 |
![]() ![]() ![]() ![]() ![]() |
We have problems with 2 large documents.
On the document are formfields checkboxes. Programmatically I fill all checkboxes with the value 1. The document has 9 pages. The boxes comes correct but if I flatten the document (FlattenAllFormFields) all checkboxes on page 5 are incorrect. It seems that the boxes are not checked. All the checkboxes has the style transparent (border and fillcolor). If I change the style to a color with Acrobat, the problem disappears. This was the reason that I asked at Background color. If I change the background color programmatically it does not solve the problem. |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Perhaps this has to do with formfield index while flattening in a loop?
Another idea: Are there same formfield names on different pages? It's not a good idea to compare the mb-monster Acrobat with the slim line QuickPDF ;-) |
|
Cheers,
Ingo |
|
![]() |
|
mg8933 ![]() Beginner ![]() Joined: 05 Feb 18 Location: Germany Status: Offline Points: 9 |
![]() ![]() ![]() ![]() ![]() |
Hi Ingo,
What can we do that this works? First in the loop I set the formfields and then at the end after the loop I do FlattenAllFormFields with one function call. It seems that it has to do with siblings. The checkboxes on the page are in other orders. I also have deleted in the document all objects and left only the object on the site 5. The document is much smaller now but flattening doesnt work correct. What is a solution? Thnx Manfred |
|
![]() |
|
mg8933 ![]() Beginner ![]() Joined: 05 Feb 18 Location: Germany Status: Offline Points: 9 |
![]() ![]() ![]() ![]() ![]() |
>> If I change the style to a color with Acrobat, the problem disappears.
This means if I change the backgroundcolor of the formfield to white and do flattening afterwards the checkbox appears correctly. |
|
![]() |
|
mg8933 ![]() Beginner ![]() Joined: 05 Feb 18 Location: Germany Status: Offline Points: 9 |
![]() ![]() ![]() ![]() ![]() |
Regarding your question about the field names:
On page 5 the names are: "F6 yes 1","F6 yes 2","F6 yes 3","F6 no 2","F6 no 3","Staffel72 2","Staffel96 1","Staffel96 2","Staffel72 3","Staffel96 3","F5 yes 1","F5 yes 2" If I do not flatten the document the fields has the correct input. |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi,
here are some helpful links from this website. In the sample you can see what i want to point to when i'm talking about "the index" ;-) http://www.quickpdflibrary.com/faq/can-i-programmatically-flatten-form-fields-in-a-pdf-using-quick-pdf-library.php http://www.quickpdf.org/forum/my-solution-to-the-flattenformfields-problem_topic1337_post6113.html?KW=FlattenFormFields#6113 Here's the developer-guide (you should start reading at page 32): http://www.debenu.com/docs/pdf_library_developer_guide/debenu_quick_pdf_library_10_developer_guide.pdf Here's a link from Rowan from Debenu about programmatically flatten form fields: http://www.debenu.com/kb/programmatically-flatten-form-fields-pdf-using-debenu-quick-pdf-library/ |
|
Cheers,
Ingo |
|
![]() |
|
mg8933 ![]() Beginner ![]() Joined: 05 Feb 18 Location: Germany Status: Offline Points: 9 |
![]() ![]() ![]() ![]() ![]() |
Hi Ingo,
regarding this: http://www.quickpdflibrary.com/faq/can-i-programmatically-flatten-form-fields-in-a-pdf-using-quick-pdf-library.php I know this and this was the reason that I use the function "FlattenAllFormFields" from the library. It seems to me that my problem is a bug in the library because if we change the background color to white and the border to black all works like expected but we do this changes not with the library. We change the fields with Acrobat. One solution for me could be that I change the filed appearances at runtime but this doesn't work. Any other ideas? |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
sorry...
no further ideas from me. I don't do much regarding form fields... If you think it's a bug and if you're using the latest library version then you can post this issue on the official support page. |
|
Cheers,
Ingo |
|
![]() |
|
karyncorrigan ![]() Moderator Group ![]() Joined: 25 Oct 17 Status: Offline Points: 1 |
![]() ![]() ![]() ![]() ![]() |
Hi Manfred,
If you are having a problem with Quick PDF Library raise a support ticket and send us your file. We can have a look at it and figure this out together. To raise a support ticket visit this URL: http://tickets.foxitsoftware.com/create.php? |
|
![]() |
|
ChrisD ![]() Beginner ![]() ![]() Joined: 21 Mar 18 Location: UK Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() |
I agree with Manfred that this is a bug with the QuickPDF s/w as we are experiencing the exact same problem.
If a checkbox b/g property is set to 'none' and you programmatically set it to display a tick and then use any of the flattening functions on it, the tick is no longer displayed as if the font colour has been set the same. The only solution we have discovered so far is to use Adobe to set a solid b/g colour for the field.
All programmatic attempts to set the checkbox field b/g colour seem to be ignored. |
|
![]() |
|
ChrisD ![]() Beginner ![]() ![]() Joined: 21 Mar 18 Location: UK Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() |
I've raised a support ticket for this
|
|
![]() |
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