Re: Use pdf as background for form
- From: Rob Kennedy <me3@xxxxxxxxxxx>
- Date: Wed, 21 May 2008 02:39:13 -0500
TD wrote:
On May 20, 6:40 pm, Jamie
<jamie_ka1lpa_not_valid_after_ka1l...@xxxxxxxxxxx> wrote:
TD wrote:Is there a way to use a pdf file as the background of a form. The pdf
file contains a form that the user prints out, fills in and mails
off. I want to create a program to computerize this but do not want
to convert the pdf file to any other type of image.
I you import the ActiveX control for the PDF reader.,
there is a PaintTo procedure that'll let you paint the
viewing page to another location like a Bitmap or what
ever..
I'm very new to Delphi so help me out here please.
How do I import the Adobe Acrobat Reader activex control into Delphi?
There should be a menu command in the IDE for importing a control.
Where can I find docmentation on how to use the PaintTp procedure?
In the help file?
How would I print the data so that it lines up correctly on the pdf
file when I print it?
Draw the PDF image, and then use the first two parameters of TCanvas.TextOut to position the text where you need it.
Or were you asking how you can figure out what the coordinates should be? I thought you knew that already since you already know what form it is you're writing this program for. If you don't know, then you'll have to interpret the contents of the PDF to figure out which horizontal lines are intended to be written over.
If you're writing this program to learn about how to program in Delphi and how to manipulate PDFs, then have at it. But if you're only writing this because your customers are demanding a way to fill in a form on the computer, I think your time and your customers' money would be better spent on a copy of Acrobat or Foxit and an hour of placing form fields in the file that can be filled in with any PDF-viewing program.
--
Rob
.
- References:
- Use pdf as background for form
- From: TD
- Re: Use pdf as background for form
- From: Jamie
- Re: Use pdf as background for form
- From: TD
- Use pdf as background for form
- Prev by Date: Re: Use pdf as background for form
- Next by Date: Re: Strange hint: Inline function 'DeleteFile' has not been expanded??
- Previous by thread: Re: Use pdf as background for form
- Next by thread: Strange hint: Inline function 'DeleteFile' has not been expanded??
- Index(es):
Relevant Pages
|