Re: Use pdf as background for form



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
.



Relevant Pages

  • Re: Reveal Codes
    ... it appears that it is not the printable area that is shrinking but the print area; are you sure you're printing with "No scaling"? ... I've experimented a fair bit with this, and whatever settings I adopt in my PDF reader the printable area *does* shrink. ... Part of that, I'm sure, was that Word was the first Windows word processor I used, and the GUI made everything easier; WP was slow to move to a GUI and made a hash of it at first... ... I suspect that how well you take to either program depends at least slightly on what type of writing you do and how you do it. ...
    (microsoft.public.word.newusers)
  • Re: secure pdf files
    ... There's an article on CodeProject that covers writing an HTTP Handler, ... would effectively stream the file to the browser through the response's ... For example, if you store the location of the pdf in a DB somewhere, ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: older standard drafts for download?
    ... bright idea of writing a project-wide information-sharing system (where you ... were doing a lot of Portable Document Format stuff for their PhD, ... nobody consulted the existing .pdf users; ... My suggested fix was to install Linux, of course, but since (for some ...
    (comp.lang.c)
  • Re: Cuban Cigar Update - Dept. of Treasury
    ... writing is an official government document? ... don't graduate from high school. ...
    (alt.smokers.cigars)
  • Re: Copying files from hard disc to a CD-RW
    ... Excel, JPEG, pdf). ... It must have happened part way through writing to the CD ...
    (microsoft.public.windowsxp.general)