Can I prepopulate a Word document or PDF?

This application is for a home health agency. There is an
extensive form that needs to be filled out periodically called a
CMS-485. There are tons of fields and lots of formatting to the
document. I currently have the document in Word format.
We maintain participant information in a database. I would
like to prepopulate SOME of the fields in the Word document with
information from my database. Namely things like name and address.
date of birth, SSN, etc. Basic demographics that are readilly
available in my database.
I can generate the form from my website in any format,
really. PDF would be fine. Word would be fine. My objective is to
go to a client's information screen in my application (already
done) and click a button to generate a blank CMS-485 that is
prepopulated with the basic demographic inorimation.
I know that I can create an HTML or report builder version of
the report, but that would be absolutely daunting given the
complexity of this form. Since it is already in Word format, can I
leverage the work that has already been done and make this easier
on myself?
BTW: CF 7.02

tclaremont wrote:
> I can generate the form from my website in any format,
really. PDF would be
just answered this in another thread.....
this works w/the version of iText that comes w/cf7 (powers
cfdocument).
<cfscript>
newFile=expandPath("registered.pdf");
// pdf containing your form
pdfFile=expandPath("simpleRegistrationForm.pdf");
fos=createObject("java","java.io.FileOutputStream").init(newFile);
reader=createObject("java","com.lowagie.text.pdf.PdfReader").init(pdfFile);
pdfStamper=createObject("java","com.lowagie.text.pdf.PdfStamper").init(reader,
fos);
form1 = pdfStamper.getAcroFields();
// form fields
form1.setField("name", "Bruno Lowagie");
form1.setField("address", "Baeyensstraat 121,
Sint-Amandsberg");
form1.setField("postal_code", "BE-9040");
form1.setField("email", "[email protected]");
pdfStamper.setFormFlattening(false);
pdfStamper.close();
// in case you to "flatten" the form
newFile=expandPath("registered_flat.pdf");
fos=createObject("java","java.io.FileOutputStream").init(newFile);
reader=createObject("java","com.lowagie.text.pdf.PdfReader").init(pdfFile);
pdfStamper2=createObject("java","com.lowagie.text.pdf.PdfStamper").init(reader,
fos);
form2=pdfStamper2.getAcroFields();
form2.setField("name", "Bruno Lowagie");
form2.setField("address", "Baeyensstraat 121,
Sint-Amandsberg");
form2.setField("postal_code", "BE-9040");
form2.setField("email", "[email protected]");
pdfStamper2.setFormFlattening(true);
pdfStamper2.close();
</cfscript>

Similar Messages

  • After installing Mavericks I can no longer save a new word document or pdf by typing the name of the destination folder in the Finder window.  The save button greys out.  Solutions anyone?

    After installing Mavericks I can no longer save a new word document or pdf by typing the name of the destination folder in the Finder window.  The save button greys out.  Solutions anyone?

    Please follow these directions to delete the Mail "sandbox" folders. In OS X 10.9 there are two sandboxes, while in 10.8 there is only one. If you're running a version older than 10.8, this comment isn't applicable.
    Back up all data.
    Triple-click anywhere in the line below on this page to select it:
    ~/Library/Containers/com.apple.mail
    Right-click or control-click the highlighted line and select
              Services ▹ Reveal
    from the contextual menu.* A Finder window should open with a folder named "com.apple.mail" selected. If it does, move the selected folder—not just its contents—to the Desktop. Leave the Finder window open for now.
    Log out and log back in. Launch Mail and test. If the problem is resolved, you may have to recreate some of your Mail settings. You can then delete the folder you moved and close the Finder window.
    This action will delete any custom Mail stationery that you have created. If you want to preserve it, ask for instructions.
    If you still have the problem, quit Mail again and put the folder back where it was, overwriting the one that may have been created in its place. Repeat with this line:
    ~/Library/Containers/com.apple.MailServiceAgent
    Caution: If you change any of the contents of the sandbox, but leave the folder itself in place, Mail may crash or not launch at all. Deleting the whole sandbox will cause it to be rebuilt automatically.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

  • I have a Word doc with lots of Excel/Pdf attached doc inside. Can I convert this word doc in PDF keeping the attached documents inside the PDF? or do I have to attach all af them again? thank in advance

    I have a Word doc with lots of Excel/Pdf attached doc inside. Can I convert this word doc in PDF keeping the attached documents inside the PDF? or do I have to attach all af them again? thank in advance

    Attach all of them again.
    Be well...

  • How can I convert a Word Document to a PDF Document. The word document is already on my Pc

    How can I convert a Word Document already on my PC, to a PDF Document

    Using
    Adobe PDF Pack
    Adobe Acrobat
    Microsoft Word 2007+

  • How can I convert a Word document into Adobe PDF format?

    How can I convert a Word document into Adobe PDF format?

    You can use Adobe Acrobat or Adobe CreatePDF.

  • Acrobat 11 Standard Office 2010 Pro Convert Word documents to PDF not working

    Adobe community,
    I can create PDF's inside Word 2010 using the Acrobat Add-in but right clicking a Word document or dragging a Word document into Adobe Acrobat 11 Standard does not work. I have updated both Acrobat 11 and Office 2010 with the latest updates available. Any suggestions would be greatly appreciated.

    Hi markl16215442,
    In order to convert word document to PDF by right-clicking or dragging the file, you must have Adobe PDF printer installed.
    For Windows, please check that Adobe PDF is set as default printer under "Start > Devices and Printers"
    While for MAC, Adobe PDF printer option is no more available and as it was removed with some changes in Apple's policy regarding virtual printers.
    So, check with your OS and then let me know.
    Regards,
    Anubha

  • Convert word document in PDF,e pub,by using third party dll in Sharepoint designer workflow 2013?

    Hi,
    I want to convert word document to PDF,  EPub, by using third party (.dll).
    In SharePoint designer workflow in 2013.
    So that I have question, Can we Install third party (.dll) in SharePoint workflow Designer for conversion?
    Means I have created one simple application conversion of word to e Pub, PDF, Image by using (Spire.doc dll) in Visual Studio.
    So this same conversion I want to work in SharePoint designer workflows?
    So anybody has any solution then please provide me.
    Thanks,
    Samadhan

    it might be worth looking at these CodePlex steps, that plug directly into the Word Automation Services.
    http://sp2010wordautomation.codeplex.com/
    It'll provide you with a configurable step like the below that should help you achieve your aims
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • How can you change individual words in a PDF using javascript?

    Hi,
    I am trying to do some simple text replacement in a PDF file using Acrobat. Specifically, I want to do some simple transliteration of words or partial transliteration. For instance, I would like to change a word like "red" to "ρed". This is to help me get used to the Greek alphabet step by step.
    Anyway, I downloaded Acrobat and there is no feature to do a single letter search and replace -- only word replacement. I have a Computer Science degree and decided to investigate the javascript capabilities to see if I can make those a simple letter replacement script. However, I have gotten to the point where I can cycle through every word in the PDF (using functions like getPageNthWord), and I can make a replacement on the string returned using something like: val.replace(/r/, "ρ"). However, I don't know how to replace the word in the PDF file....such as with a hypothetical function setPageNthWord (which does not exit). I have found the online documentation very thin on this, and I am scratching my head. Perhaps, it is something to do with the PDF format that I do not understand. So, is there a way to simply change text of a PDF file, like I am asking? All I am looking for is simple script to change a letter to another across a PDF.
    thanks if you can help
    Justin

    JS can't edit the text in a PDF file directly. There are workarounds, like
    using a redaction with overlay text or simply placing a new field or
    annotation on top of the old text with the new one, but they are all far
    from perfect and won't cause a "reflow" of the document, so if the two
    texts are not of the same length the result will look odd. Also there's the
    issue of which font to use (font family, color, size, etc.), which JS can't
    know so you'll have to tell it.

  • Merging word document with pdf file how do you renumber pages?

    After merging a word document with pdf file, how do you renumber pages?  The pdf has more pages than the word document.  I first converted the word document to a pdf, using Acrobat Standard 9.

    Hi Petek ,
    After you merge the files or combine files ,click on the Page Thumbnails panel on the left hand side.
    In the Page Thumbnail panel ,right click and you will get a drop down list .Select the option "Number Pages".
    You will see a dialog box with several options .You can renumber the pages from there as per your requirement.
    Regards
    Sukrit Dhingra

  • Convert word document to PDF file in SAP

    Hello experts,
    I've been searching around to get some code examples to upload a word document and convert it into a PDF file and then store it in unix. I hope one of you can help me, because many explanations and threads exist, but I did not get wiser reading them...
    I don't want to use 3rd party tools to do the conversion, but do it directly in SAP with abap coding and if necessary spool processing.
    System details:
    SAP ECC 6.0 (unicode system)
    SAP_ABA     700     0014     SAPKA70014     Cross-Application Component
    SAP_BASIS     700     0014     SAPKB70014     SAP Basis Component
    Thanks in advance!
    Regards,
    Danny

    Hi,
    You can get the spool no from transaction SP01 and later use this spool no to convert the word document to PDF
    using the function module CONVERT_OTFSPOOLJOB_2_PDF and give the import parameter as ur spool id.
    once the doc gets converted to PDF u can use CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG
    to get the path where the file is to be saved and later give the path to function module GUI_DOWNLOAD to download the file.
    or else u can manually execute the following reports:
    RSTXPDFT4  (give the spool no. as input)
    RSPO0068  (give the word doc with its full path as input)
    Hope that helps u
    Regards,
    Radhika

  • How to convert a word document to pdf

    How do I convert a word document to pdf

    Hi dionel33514362,
    You can use either Adobe PDF Pack or Acrobat to convert Word documents to PDF.
    Adobe PDF Pack is an online service, which allows you to upload files and convert them to PDF via a web interface.
    See Acrobat Help | Create PDFs with Acrobat for information about creating PDF files in Acrobat. If you don't have Acrobat, please feel free to give it a try. You can download the free 30-day trial from the Acrobat link I mentioned above.
    Please let us know if you have additional questions.
    Best,
    Sara

  • How to upload a word document or pdf file to xk02 transaction

    hi all,
    i want to upload a word document or pdf file to xk02 trasaction
    please suggest me how todo this
    Thanks
    RAM

    Hi Pradeep,
    For creating PDF documents in Webdynpro Java you can use  "iText.jar" .
    to know more about creating PDF using iText refer these links.
    http://www.brothersoft.com/downloads/itext-jar.html
    http://www.lowagie.com/iText/download.html
    Regards
    Sridhar

  • Problems converting Word documents to  PDF

    I am having trouble converting Word documents to PDF files. Whenever I try to convert the file, I receive the following error message: Missing PDFMaker files. Do you want to run the installer in repair mode? When I run the installer in repair mode, I still receive the same message. I have Adobe Acobat Professional 8 and MS Office 2007 installed on my PC.

    Cannot delete or repair Adobe Acrobat Professional 6.0, nor access original disk since "accidently" using a registry repair program. I have used system restore to no avail.
    The following scenarios occur when trying to "change/remove" Adobe program/updates:
    Attempt to Uninstall:
    Adobe Acrobat/Reader 6.0.6 Update
    WINDOWS INSTALLER window:
    The feature you are trying to use is on a network resource that is unavailable.
    Click OK to try again, or enter an alternate path to a folder containing installation package Adobe Acrobat and Reader 6.0.6 Update.msi in the box below.
    C:\Program Files\Adobe\{9074E407-55DC-4A4C-A591-6ADA60386EF4}\
    Click Okay and appears--
    ADD OR REMOVE PROGRAMS window:
    The installation source for this product is not available. Verify that the source exists and that you can access it.
    Attempt to Uninstall:
    Adobe Acrobat/Reader 6.0.5 Update
    WINDOWS INSTALLER window:
    The feature you are trying to use is on a network resource that is unavailable.
    Click OK to try again, or enter an alternate path to a folder containing installation package Adobe Acrobat and Reader 6.0.6 Update.msi in the box below.
    C:\Program Files\Adobe\{490A4339-AFA5-4098-A374-7752A1A30308}\
    Click Okay and appears--
    ADD OR REMOVE PROGRAMS window:
    The installation source for this product is not available. Verify that the source exists and that you can access it.
    Attempt to Uninstall
    Adobe Acrobat/Reader 6.0.1 Professional
    ADD OR REMOVE PROGRAMS window:
    This patch package could not be opened. Verify that the patch package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer patch package.
    Anyway to recover functionality to remove/change (uninstall/repair)?
    I also am unable to access the original disc now. WINDOWS INSTALLER window:
    This patch package could not be opened. Verify that the patch package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer patch package.
    Any help available?

  • Turn Word documents into PDfs

    Is there any way to use Automator to create a command so that I can turn Word documents into PDFs in one easy step?
    Thanks, Ken

    Hi "jhaystead",
    Apologies for making an incorrect suggestion. "Batch Conversion" is a feature in Acrobat 9 and above.
    I'd suggest you use the "Open All" sequence > Double-click it to EDIT > For "2. Run Command On:" choose "Selected Folder" and BROWSE to the input folder. Similarly for "3. Select Output Location", you can choose "Same Folder as Original(s)", click OK and then "Run Sequence".
    This would invoke the PDFMaker for conversion of Word documents to PDF and save the output PDF(s) at the folder mentioned, instead of printing and prompting to save the output each time Adobe PDF Printer is called.
    Plus, could you please check if the Adobe PDF toolbar/menu options are there in Word and working fine?
    When you said,
    "The only way I can get PDFs produced is to manually open each word document, then save it as a PDF. I haven't had any luck with multiple PDF creation." Were you printing the Word documents to Adobe PDF Printer or using the PDFMaker options?
    Thanks!

  • I would like to upgrade my subscription to allow me to convert word documents to pdf

    Hi,
    I recently purchased the adobe reader which allows me to convert pdf to word; but now I would like to upgrade and be able to convert word document to pdf.  Can I get a credit for the cost of purchase of the pdf to word version for the upgrade to word to pdf version?

    Best Contact Customer Care - use the blue Still need help? button.

Maybe you are looking for

  • Online gallery?

    Does anyone have any ideas for an online gallery now Apple have stopped the Mobile Me galleries. There seems to be options out there but none that have the professional look and simplicity of the Mobile Me gallery. The ability to download an image et

  • Regarding pricing vk12

    Dear All Wish u happy new year when i execute transaction VK12 when i try to give amount it is not accepting ',' for example if i give some 49550 when i press enter the value is converted into 49.550 Help me in this regards Jaipal

  • Ratings not visible

    Since working with the german version of Aperture 1.5 rating stars and labels are not permanently visible any more I tried already to find something to make them visible - but found no preset and no menu item to bring them back. Any Ideas what I coul

  • Transferring files from G5

    what's the best/easiest way to move a current set-up of everything from a G5 to the Mac Pro? I know that 3rd-party software will need to be reinstalled, but what about everything on the internal drives from the G5? thanks-

  • Rebuilding desktop on OS X...?

    Does one need to rebuild the desktop on OS X as was needed when using Classic ?