/    Sign up×
Community /Pin to ProfileBookmark

Submitting Data to a PDF from via a HTML Form

Hello all,

I am working on a Site for a Business Card Printing Company. I currently have a html form in which users enter all their Contact information that will eventually be printed on their Business Card.

What I would like to do is to somehow import the user-submitted data into a PDF file that already has the Company logo and other graphical elements on it, and then show the user the PDF with their newly entered data on it.

I am trying to do this so that the user can see what their card looks like and can approve it on the spot. My main concern right now is that the text won’t always be at exactly the right spot every time. Also, I would like to make it so that if a user skips a field, the fields on the PDF Document will re-position themselves accordingly so there are no unwanted line gaps on the business card.

What are some easy to use php classes which address my issue?

Thanks.

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@MindzaiNov 22.2008 — I've never used it so I can't help with specifics, but PHP implements the PDFlib library so that's probably a good place to start.
×

Success!

Help @zeckdude spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...