For the complete experience, please enable JavaScript in your browser. Thank you!

  • Creative Cloud
  • Photoshop
  • Illustrator
  • InDesign
  • Premiere Pro
  • After Effects
  • Lightroom
  • See all
  • See plans for: businesses photographers students
  • Document Cloud
  • Acrobat DC
  • eSign
  • Stock
  • Elements
  • Marketing Cloud
  • Analytics
  • Audience Manager
  • Campaign
  • Experience Manager
  • Media Optimizer
  • Target
  • See all
  • Acrobat Reader DC
  • Adobe Flash Player
  • Adobe AIR
  • Adobe Shockwave Player
  • All products
  • Creative Cloud
  • Individuals
  • Photographers
  • Students and Teachers
  • Business
  • Schools and Universities
  • Marketing Cloud
  • Document Cloud
  • Stock
  • Elements
  • All products
  • Get Support
    Find answers quickly. Contact us if you need to.
    Start now >
  • Learn the apps
    Get started or learn new ways to work.
    Learn now >
  • Ask the community
    Post questions and get answers from experts.
    Start now >
    • About Us
    • Careers At Adobe
    • Investor Relations
    • Privacy  |  Security
    • Corporate Responsibility
    • Customer Showcase
    • Events
    • Contact Us
News
    • 3/22/2016
      Adobe Summit 2016: Are You An Experience Business?
    • 3/22/2016
      Adobe Announces Cross-Device Co-op to Enable People-Based Marketing
    • 3/22/2016
      Adobe and comScore Advance Digital TV and Ad Measurement
    • 3/22/2016
      Adobe Marketing Cloud Redefines TV Experience
Manipulating PDF forms in ColdFusion / 

Embedding a PDF form in a PDF document

Adobe Community Help


Applies to

  • ColdFusion

Contact support

 
By clicking Submit, you accept the Adobe Terms of Use.
 

You can use the cfpdfform tag inside the cfdocument tag to embed an existing interactive PDF form in a PDF document. This technique is useful to include additional information with a standard interactive form. For example, a company could have a generic PDF form for maintaining employee information. You could reuse this form in different contexts to ensure that the employee information is current.
To create the static PDF pages, use the cfdocument tag and cfdocumentsection tags. Then use the cfpdfform tag in the cfdocument tag to create an interactive form in the PDF document. When the user updates the form and prints or submits it, all of the pages in the document, including the static PDF pages, are printed or submitted with the form.

Note: You can embed only one interactive form in a PDF document; therefore, include only one cfpdfform tag in a cfdocument tag. However, each cfpdfform tag can include multiple cfpdfsubform tags and cfpdfformparam tags.

Use at least one cfdocumentsection tag with the cfpdfform tag, but do not place the cfpdfform tag within the cfdocumentsection tag. Instead, insure that the cfpdfform and cfdocumentsection tags are at the same level, the following example shows:

<cfdocument format="pdf">
<cfdocumentitem type="header">
<font size="+1">This is the Header</font>
</cfdocumentitem>
<cfdocumentitem type="footer">
<font size="+1">This is the Footer</font>
</cfdocumentitem>

<cfdocumentsection>
<p>This is the first document section.</p>
</cfdocumentsection>

<cfpdfform source="c:\forms\embed.pdf" action="populate">
<cfpdfsubform name="form1">
<cfpdfformparam name="txtManagerName" value="Janis Joplin">
<cfpdfformparam name="txtDepartment" value="Sales">
</cfpdfsubform>
</cfpdfform>

<cfdocumentsection>
<p>This is another section</p>
</cfdocumentsection>
</cfdocument>

The contents of the cfpdfform tag start on a new page. Any text or code directly after the cfdocument tag and before the cfpdfform tag applies to the document sections but not to the interactive PDF form in the cfpdfform tag.
The headers and footers that are part of the embedded PDF form do not apply to the rest of the PDF document, and the headers and footers that are defined in the cfdocument tag do not apply to the interactive form. However, header and footer information defined in the cfdocumentitem tags resumes in the sections that follow the embedded form and account for the pages in the embedded form.

Note: The read action of the cfpdfform tag is not valid when you embed a PDF form. Also, you cannot specify a destination in the cfpdfform tag. However, you can specify a filename in the cfdocument tag to write the PDF document with the PDF form to an output file. If you do not specify a filename, ColdFusion displays the PDF form in the context of the PDF document in the browser.

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy

Choose your region United States (Change)   Products   Downloads   Learn & Support   Company
Choose your region Close

Americas

Europe, Middle East and Africa

Asia Pacific

  • Brasil
  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Cyprus - English
  • Česká republika
  • Danmark
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Greece - English
  • Magyarország
  • Ireland
  • Israel - English
  • ישראל - עברית
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • Malta - English
  • الشرق الأوسط وشمال أفريقيا - اللغة العربية
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • Southeast Asia (Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam) - English
  • 台灣

Commonwealth of Independent States

  • Includes Armenia, Azerbaijan, Belarus, Georgia, Moldova, Kazakhstan, Kyrgyzstan, Tajikistan, Turkmenistan, Ukraine, Uzbekistan

Copyright © 2016 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy | Cookies

AdChoices