Print Page | Close Window

Fonts for Custom Form Fill App

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=3252
Printed Date: 22 Nov 24 at 11:14PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Fonts for Custom Form Fill App
Posted By: waynefulcher
Subject: Fonts for Custom Form Fill App
Date Posted: 22 Jan 16 at 7:27PM
I am writing an app that lets the user open a PDF and my app will allow the user to "fill in the blanks".
So it should look very similar to Reader when you can fill in data into the fields an then print.

I am using Delphi 7.
My app currently converts the PDF page to an EMF, draws that to an Image control which is embedded inside a ScrollBox.
I then loop through all the fields inside the PDF for that page and create an Edit control for each of the input fields of type Text and a CheckBox control for all fields of type CheckBox.
I position the controls according to the PDF fields Top, Left, Height and Width.
This all works perfectly.

What I am having trouble with is what if the PDF field is designed with a font that is not a windows standard font such as "Univers" or "Univers-Medium". How can I make the Edit control I create use the font assigned to the associated print field in the PDF? So that I can also use the assigned Point Size for the Fonts Text Size.

Thanks
Wayne





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