Print Page | Close Window

Checkbox Rendering

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


Topic: Checkbox Rendering
Posted By: waynefulcher
Subject: Checkbox Rendering
Date Posted: 30 Apr 19 at 8:07PM
Does anyone know if there is a way to make a checkbox "Bold" when rendered out to a printer?
The X is so thin that it often becomes so light it is hard to see that the box is checked.



Replies:
Posted By: Ingo
Date Posted: 30 Apr 19 at 9:02PM
Hi Wayne,

you should try the online reference and the search function there... ;-)

with SetFormFieldCheckStyle you can try other styles for a better visibility:
https://www.debenu.com/docs/pdf_library_reference/SetFormFieldCheckStyle.php

Another thing you can do is to choose a font like "arial bold" or similar with SetFormFieldFont:
https://www.debenu.com/docs/pdf_library_reference/SetFormFieldFont.php





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



Posted By: waynefulcher
Date Posted: 06 May 19 at 11:20PM
I just wanted to come back and post something for future developers about rendering checkboxes with lines that are "Bold" (thicker than what you get by default).

Basically there is nothing in any search results that will tell you how to fix it because there is nothing in the library you can do to fix it naturally. For checkbox fields, changing font, text size, etc has no affect on the output.

The only solution I came up with is a DIY solution. Just before rendering the pages to a printer or preview canvas, I flatten the fields but now I also check if I have a checkbox field which is "Checked" then I literally draw two diagonal lines in the shape of an X using the top, left, height and width of the checkbox field. This allows me to control line width to determine how bold to make the X.





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