Populating a PDF File from ColdFusion

I wanted to populate a pfd file from coldfusion and I found
this online:
http://www.school-for-champions.com/coldfusion/cftopdf.htm
When I submit the form.. I then show a link [view pdf].. only
when I click
on that lick I get a message saying
Adobe acrobat: the file is damaged and could not be repaired.
Has anyone used this method successfully? If so, would like
to hear some
suggestions.
The PDF template I created just have 2 fields. firstname
lastname (which
matches cfm form).
Thanks in advance
1. Create PDF document to populate
Create the document you want to populate. This document could
be done in
Microsoft Word, as an HTML page or using some drawing
application. Then
create a PDF file of that document.
You must have Adobe Acrobat or the equivalent to create a PDF
file.
Typically, the easiest way to create a PDF is to click File
> Print and
select Acrobat Distiller as your printer.
2. Enter fields with Acrobat
Once the document is in the PDF format, open it in Acrobat.
Use the menu bar
tools to define your fields.
a.. Use the Form Tool to define the various text fields,
give each a name,
and designate the font type and size. The field name should
correspond to
the name of the data you will input.
b.. Use the Text Tool to modify areas of text. You may have
to change the
font or font size. It is not the easiest tool to use.
This will be your PDF template.
3. Create a ColdFusion page to populate the PDF
Create a ColdFusion form to gather data from input over the
Internet or from
a database query. This page or an action page will provide
the means to
populate the PDF file.
The code you use will depend on the method or software you
decide to use.
Options will be explained in the next section.

Hi, I need your help again.. And if you can do this for me; i
will pay for
your time. just let me know. because i need this project wrap
up in the next
28 hours.
I've used the Ben Forta (cf_PDFFROM) and i'm able to get the
pdf. (great)
now i need to suppress blank lines.
my pdf is a business card template.
on the left top down
firstname middle name lastname
job title
address1
address2
address3
www.whatever.com
on the right bottom up:
phone:
fax:
mobile:
email:
aim:
there's where I'm stuck:
if a user does not enter a fax number... I want the PDF to
move 'phone:'
down 1 line and not show the word 'fax'.
PLEASE can someone point me in the right direction OR tell me
you can do it
quickly. contact me and i'll pay you.
thanks in advance!
"BLXWebMaster" <[email protected]> wrote in
message
news:f2fi63$c1e$[email protected]..
> What version of PDF are you using? Are you creating your
PDF Form in
> designer?
> If you are trying to Pre-Populate a PDF Form, this
technique will not work
> in
> that this will not preserve your Form. With the recent
versions of PDF,
> Adobe
> hase changed the technology to be XML and you are trying
to populate your
> PDF
> using FDF. I don't think that this can be done.
>
> I would stay away from FDF.
>
> Although there are several tools that will allow you to
do this, most of
> them
> rely on the old FDF format.
>
> I would suggest checking out XPAAJ. This is a free api
for Coldfusion
> users
> and offers a decent basic pre-population of PDF's.
> Written by our friend Ben Forta, you can check it out
here.
>
http://www.forta.com/blog/index.cfm/2006/7/27/cf_pdfform
>
>
>
>

Similar Messages

  • Tagged PDF files from ColdFusion.

    Does anybody know about the current -- and maybe future --
    capabilities
    of ColdFusion tools that generate PDF files, such as
    <cfreport...> and
    <cfdcoument...> tags, to create 'tagged' PDF files?
    Tagged PDF files are PDF documents that have structural
    markup
    information along the lines of HTML to give accessibility
    aids, such as
    screen readers, more information on what content the PDF
    document contains.
    I have been looking high and low for information on how one
    may create
    tagged PDF's -- or add tag markup to a created PDF -- with
    ColdFusion.
    I'm getting a sinking feeling this is just beyond the
    capability of our
    beloved tool!

    This is a rather old version; you may need to run it in XP compatibility mode.

  • Generating PDF file in coldfusion version 5

    Hello,
    I have a task where in I need to generate the .pdf file from
    coldfusion version 5.0. Can somebody help me how to do this task?
    Thanks,
    Satheesh.

    satheesh_p wrote:
    > I have a task where in I need to generate the .pdf file
    from coldfusion version 5.0. Can somebody help me how to do this
    task?
    search these forums for "itext", you should see plenty of
    examples. but i don't
    recall we've ever made it work w/cf5. cf5 & java is
    harder than mx.
    i guess you also might look at some of the commercial apps
    like activePDF, etc.

  • Bug:Downloading pdf file from the web,file name in dialog box populates with incorrect file name

    Hi Gurus
    When downloading any pdf file from the web using adobe Reader X the file name dialog box populates with incorrect file name
    compared to the saved file name of the document downloaded.
    Clarity
    1. Download any pdf file from the web
    2. Click File, Save as note the populated File Name
    3. Compare the populated file name with the saved file name of the documant yuo are downloading.
    4. The file Name is incorrect...
    Is there any work around on this issue?Can someone please help?..
    OS:Windows7
    Reader: Adobe Reader X
    I've tried a couple of other versions and still get the same results...

    Are you downloading the file (right-click, save link as), or just opening it by clicking it?
    If the latter, then what happens is the file is loaded to the temporary internet files folder by IE and assigned a temporary name, which is then used when you're trying to save it.
    You can test this out by going to File - Document Properties before trying to save and looking at the file's location.

  • Flatten a PDF file from Excel

    Flatten a PDF file from Excel
    Is there any way to run a javascript to flatten a PDF document from Excel?
    I’m populating a PDF form from Excel by creating a FDF file, once I finish I need to flatten it.
    Is there any way to accomplish this without having Adobe Acrobat?
    Thank you,
    Luis Gonzalez

    Reader cannot flatten a document, if that's what you're asking. A user with Acrobat installed can, in which case you can use VBA to control Acrobat. For exampe: http://www.khk.net/wordpress/2009/03/04/adobe-acrobat-and-vba-an-introduction/

  • Printing Pdf files using coldfusion

    my visitors need to print pdf files from my web site
    but they want to print with open the acrobat reader
    someone knows how to do it ?
    Rene marquez

    Also <cfreport format="PDF"...
    See
    http://livedocs.adobe.com/coldfusion/7/htmldocs/00001466.htm

  • How to exreact multiple pdf files from a zip files from application server to presentation server

    Hello exprts,
    I am passing one pdf file and one text file to zip file in apllication server through my custom program and then downloading it using standard function module to my desktop. its working fine. Then I added  another pdf file to my zip file. But only single pdf file is getting download . So can you please help me regardiong this issue? 

    Dear Experts ,
    I finded out the way to extrcat pdf files in presentation server. But now my problem is that I am not able to add multiple pdf files in a zip file. When I am adding new pdf file then older one is not coming in read data set. So please kindly tell me how can I add multiple pdf file in my zip file and again I can get all the pdf files from here.

  • I cannot open a pdf file with aole-mail. I can open pdf files from windows explorer. I have associated pdf with adobe reader. My operating system is window

    I cannot open a pdf file with aol e-mail. I went to preferences in Adobe Reader but did not know what to enter for Incoming IMAP and outgoing SMTP. I can open pdf files from windows explorer as  I have associated .pdf files with adobe reader. My operating system is windows 7.
    When I try to open the pdf file within aol e-mail I get a message: 'Your security settings do not allow this file to be downloaded'.  I have not changed my security settings (Tools, Internet Options, security).

    Or http://helpx.adobe.com/acrobat/kb/pdf-browser-plugin-configuration.html

  • When I download .pdf files from my office they are converted to .ashx files

    When I download a .pdf file from my Outlook mail box at my office, Firefox reads it as an .ashx file. However if I use Safari, it is read correctly as a .pdf file.
    How can I fix my Firefox browser?
    An IT person at my office said I should reset the download actions by deleting mime.Types.rdf, but I can't even find this file.

    See [[/en-US/questions/894442]]

  • Delete PDF file from a folder

    Hi!
    please help me this is urgent..
    i try to delete pdf file from my local pc how to do that ??
    can some one help me i need it by today please help me ..
    thanks to all of you...
    from:
    newbie

    First you open a File to the specified file, and then you call delete(). Easy
    File file = new File("path/filename");
    file.delete();Of course if you want to make your application cross-platform you will need to build a correct path somehow. Check out the static attributes of the File class to help you (fx. File.separator).

  • How do I retrieve a deleted PDF file from Adobe Reader on iPad?

    I inadvertently deleted a very important PDF file from the Adobe Reader on iPad. Does anyone know what I can do to retrieve it? A reply would be highly appreciated!

    needhelp74328262,
    Unfortunately, once a file is deleted, you won't be able to "undelete" it.
    Have you backed up your iPad using iCloud or iTunes recently?  If so, you can restore the entire content (not just a single PDF file) on  your iPad.
    Back up and restore your iPhone, iPad, or iPod touch using iCloud or iTunes - Apple Support

  • Function module to fetch pdf file from App. Server and print/email?

    Hi all,
    Is there any function module to fetch a PDF file from APPLICATION SERVER and print the PDF file or send it as an attachment in an email?
    Please help..
    Thanks in advance.
    Sandeep.

    Hi Sandeep,
    Is there any function module to fetch a PDF file from APPLICATION SERVER
    1) As far as i know there are no FMs to read a file from App server, you can do the same using *OPEN/READ/CLOSE dataset ABAP statements - There are tons of examples for this on the net.
    and print the PDF file or send it as an attachment in an email?
    You can send the file read from the app server(by the suggested method above) and use CL_BCS to send it as an attachment.
    Again there are many examples on the net on how to use CL_BCS for the same.
    Regards,
    Chen

  • Print PDF file from app.server

    Hello,
    I need to print a PDF file from the application server without any dialog for the user.
    Is it possible? and if so- how?
    Is it also possible to do the same with office file (DOC,XLS)?
    Thanks
    Moshe

    Hi,
    CV150_RPINT_DOC for frontend execution.
    FM SAP_PDF_VIEWER_DEMO- foreground only.
    using fm SXPG_COMMAND_EXECUTE in background.
    thanks & regards.

  • Unable to open large PDF file from the Attachment list.

    Hi Gurus,
    Users had attached 10 PDF file in the work order attachment list and his supervisor is trying to open the PDF file from the work order attachment list and he is able to open 9 PDF files without any issue, but 1 PDF file is giving the error message as "Database error for <GET DATA FROM KPRO>" and then select ok, we are getting the below message.
    Window cannot find u201CC/Documents and Settings/b2m/SaoworkDir/5015851 Vendor data sheets B&P 2010 SDown XXX .PDFu2019. Make sure you typed the name correctly, and then try again. To search for a file, click the start button, and then click serch.
    Looks like this particular file is not transferring to the SAP work directory.
    Could you please check and suggest us as to how to fix it.
    Thanks & Regards,
    Srivas

    Hi,
    Thanks for your reply.
    We verified  your OSS notes it's not relevant to us Because our issue is while opening the PDF aatchement it is not transferring to my SAP Work Directory because of that reason we are getting the KPRO error. When I'm opening the other PDF files it's transferring to my SAP Work Directory and it's automatically open without any issue.
    Please check and suggest.
    Thanks,
    Srivas

  • Print PDF file from folder using SSIS

    Is there a way in SSIS to print pdf file from folder?
    ANy help much appreciated.

    One method is calling Adobe Acrobat Reader exe from Execute Process Task within SSIS passing the document path as the argument
    The command and arguments will look like this
    http://geekswithblogs.net/JeremyRamos/archive/2013/10/22/print-ssrs-report--pdf-from-sql-server-agent-or.aspx
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

Maybe you are looking for

  • Quicktime page loads taking too long

    I've got a page I'm building with 10 short mp3 clips. Here's a sample of the code for each clip: <object classid="clsid:02bf25d5-8c17-4b23-bc80-d3488abddc6b" codebase= "http://www.apple.com/qtactivex/qtplugin.cab" width="49" height="16"> <param name=

  • HT1338 Problems with Epson Perfection 1260 Scanner following latest update

    I am having problems with my Epson Perfection 1260 Scanner since the latest update from Apple.

  • Type tool in Photoshop makes artboard go to black or flicker

    I have the Creative Cloud suite and have updated programs. My only problem is Photoshop is unusable when I try to use the type tool. The image or blank pasteboard drops to black until I click-away somewhere like on layer. Click type tool on area, sam

  • Developers Wanted -- Apply Within

    Hello all, First, a little history.  Up until now, the development process was fairly short and simple.  The existing developers kept a watchful eye on the community for knowledgeable, helpful and prolific users.  When the time came to grow the team,

  • Vista 64-bit issues

    I just got an 8330 on Wednesday. On my 32-bit XP system, the BlackBerry drivers install and the desktop manager works flawlessly. However, I'm trying to get this installed on my laptop, which runs 64-bit Vista. I've seen posts where people have had n