Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 18 results for
cfpdfform
- Page 1
Help populating a pdf with coldfusion
Programming
Web Development
12 Years Ago
by dottomm
…# </cfquery>[/CODE] Here is my
cfpdfform
code //pdf.cfm [CODE] <
cfpdfform
action="populate" source="pdf/testform…; value="#getuserdetails.LastName#"> </cfpdfsubform> </
cfpdfform
> [/CODE] The form I am trying to populate (pdftestform…
Populating PDF from Form
Programming
Web Development
13 Years Ago
by hinsel
… process it and write the pdf values: [code=cfm] <
cfpdfform
source="form.pdf" destination="moosh.pdf"…; value="#form.Agent_Name___Code_Number#"> </cfpdfsubform> </
cfpdfform
> [/code] Here is an image of the pdf dump…
Re: Help populating a pdf with coldfusion
Programming
Web Development
12 Years Ago
by cfwebdeveloper
Weird...I will try to replicate this once I get home from work. I havn't messed with
cfpdfform
before but would be nice to figure out this issue.
Re: Help populating a pdf with coldfusion
Programming
Web Development
12 Years Ago
by arrgh
[quote]Yes, I've tried the cfdocument tag, and it is creating pdf forms for me, but I'd like to get data from a database to populate the pdf form based on the user id that is passed in the url. [/quote] Huh? ;) cfdocument doesn't create or populate forms. But you [I]can [/I]populate forms with
cfpdfform
.
Re: Help populating a pdf with coldfusion
Programming
Web Development
12 Years Ago
by arrgh
[QUOTE=dottomm;1598628]Hi - Thanks for everyones help. I did resolve my problem. Using the example from adobe cfdeveloper pointed out. Complete Total user error. The Adobe documentation is correct.[/QUOTE] Oh, I believed
cfpdfform
would work. It was the talk about cfdocument and forms that had me scratching my head ;-) Glad it's resolved.
Re: Help populating a pdf with coldfusion
Programming
Web Development
12 Years Ago
by cfwebdeveloper
Have you tried cfdocument? You can generate PDF files using that tag. Let me know.
Re: Help populating a pdf with coldfusion
Programming
Web Development
12 Years Ago
by dottomm
Thank you cfwebedeveloper. Yes, I've tried the cfdocument tag, and it is creating pdf forms for me, but I'd like to get data from a database to populate the pdf form based on the user id that is passed in the url.
Re: Help populating a pdf with coldfusion
Programming
Web Development
12 Years Ago
by cfwebdeveloper
Dumb question but are you sure the query is dumping out data? Try a cfdump on the query.
Re: Help populating a pdf with coldfusion
Programming
Web Development
12 Years Ago
by dottomm
Not a dumb question. Thank you. I had to double check. Yes. It is dumping the query based on userID passed in URL. I can't figure out why it won 't appear in a pdf. It seems like I'm so close. thanks again!
Re: Help populating a pdf with coldfusion
Programming
Web Development
12 Years Ago
by cfwebdeveloper
Are you sure you are getting results back from the database? Sounds like you are getting no results back from the database. Do a quick cfoutput of getuserdetails.recordcount and see if it 0 or 1.
Re: Help populating a pdf with coldfusion
Programming
Web Development
12 Years Ago
by dottomm
I'm getting "1"
Re: Help populating a pdf with coldfusion
Programming
Web Development
12 Years Ago
by cfwebdeveloper
What does your testform.pdf look like? This might help too, [url]http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=formsPDF_04.html[/url]
Re: Help populating a pdf with coldfusion
Programming
Web Development
12 Years Ago
by dottomm
Thanks for your help! I really appreciate it!
Re: Help populating a pdf with coldfusion
Programming
Web Development
12 Years Ago
by dottomm
Yes. I saw that example, and it's basically where I started. [QUOTE=cfwebdeveloper;1590759]What does your testform.pdf look like? This might help too, [url]http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=formsPDF_04.html[/url][/QUOTE]
Re: Help populating a pdf with coldfusion
Programming
Web Development
12 Years Ago
by cfwebdeveloper
Totally did not get around to this, busy studying for a certification. Did you resolve your issue yet?
Re: Help populating a pdf with coldfusion
Programming
Web Development
12 Years Ago
by dottomm
Hi - Thanks for everyones help. I did resolve my problem. Using the example from adobe cfdeveloper pointed out. Complete Total user error. The Adobe documentation is correct.
Re: Help populating a pdf with coldfusion
Programming
Web Development
12 Years Ago
by jsmall26
Wrap the whole page, query and all, in the cfdocument tag. It should be the first line and last lines of the whole page. Make sure your variables that are passed are scoped with the url/cookie/session. I create dynamic pdf's all the time and this problem the first time I tried it.
Re: Populating PDF from Form
Programming
Web Development
13 Years Ago
by arrgh
[quote]form.Report_Purpose_Code[1][/quote] FORM fields aren't arrays. They're simple names. So make the <form> field names unique, and use the simple names to populate the form. ... value="#form.Report_Purpose_Code1#"> ... value="#form.Report_Purpose_Code2#">
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC