Does anyone knows of a product where I can draw a pdf, the same way you write a word document,
assign fields to it, and have the stubs generated to interface with it???
pdf programming visually
Moderator: General Moderators
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Re: pdf programming visually
You can generate a PDF in any creator....use Word and convert it using Foxit PDF creator (print driver).
Use placeholders, like:
%%FIRST_NAME%%
Inside the document and str_replace them on the fly. Make sure you are not encrypting the PDF though otherwise your str_replace will not work.
Alternatively, you oculd use a PDF library to dynamically construct PDF document using "blocks" and send out a completed PDF that way.
Maybe you could use: http://www.fpdf.org/
I am not clear on what you are trying to do though...
Cheers,
Alex
Use placeholders, like:
%%FIRST_NAME%%
Inside the document and str_replace them on the fly. Make sure you are not encrypting the PDF though otherwise your str_replace will not work.
Alternatively, you oculd use a PDF library to dynamically construct PDF document using "blocks" and send out a completed PDF that way.
Maybe you could use: http://www.fpdf.org/
I am not clear on what you are trying to do though...
Cheers,
Alex
Re: pdf programming visually
Well,
I finally found the answer . And like many times, it turns out to be a simple one.
Use Adobe Acrobat professional and create fields for the form. You can draw them on top of the existing pdf. Then using a little library
http://koivi.com/fill-pdf-form-fields/tutorial.php
you can search and replace for the fields you just created.
some info about fdf
http://www.citationsoftware.com/faqFDF.htm
Basically, the data is in one place and the form is in another.
I found another library,
http://www.setasign.de/products/pdf-php-solutions/fpdi/
I finally found the answer . And like many times, it turns out to be a simple one.
Use Adobe Acrobat professional and create fields for the form. You can draw them on top of the existing pdf. Then using a little library
http://koivi.com/fill-pdf-form-fields/tutorial.php
you can search and replace for the fields you just created.
some info about fdf
http://www.citationsoftware.com/faqFDF.htm
Basically, the data is in one place and the form is in another.
I found another library,
http://www.setasign.de/products/pdf-php-solutions/fpdi/