Creating a Dynamic Adobe PDF - Using ColdFusion Randy Brown Michigan State Univerisity University Development Randy Brown

Slides:



Advertisements
Similar presentations
Crystal Reports In Depth Session XII. Crystal Reports - In Depth Reports outside of halFILE Selecting an ODBC Datasource Selecting a second table and.
Advertisements

The Web Warrior Guide to Web Design Technologies
Video, audio, embed, iframe, HTML Form
TEA/TUG + ALDOT(Mobile) = H(O+I) The TEA/TUG being hosted by ALDOT in Mobile causes Hurricanes to come to Alabama. The TEA/TUG being hosted by ALDOT in.
Integrating Access with the Web and with Other Programs.
Week 2 IBS 685. Static Page Architecture The user requests the page by typing a URL in a browser The Browser requests the page from the Web Server The.
Multiple Tiers in Action
DT228/3 Web Development JSP: Directives and Scripting elements.
Lecture 4B: Server-Side Scripting IT 202—Internet Applications Based on notes developed by Morgan Benton.
14 1 Chapter 14 Database Connectivity and Web Development Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Guide To UNIX Using Linux Third Edition
Cold Fusion Tutorial Mohammad Shamma SIMS 213 Spring 1999.
to Fax / Fax to Overview DIAL LTD Sending & receiving faxes via your system.
ITM352 Javascript and Dynamic Web Pages: Client Side Processing.
With Alex Conger – President of Webmajik.com FrontPage 2002 Level I (Intro & Training) FrontPage 2002 Level I (Intro & Training)
HTML Notes Chapters 1--6 Codes used in creating HTML documents are called tags. Tags are always enclosed in left ( ) angle brackets. Tags can be upper.
HTML Overview for Proofreading. HTML layouts are divided into sections, and created in tables separating the images & content sections.
Tutorial 1: Getting Started with HTML5
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
Adobe Acrobat. Overview Basic Skills – Updating – Making – Updating – Sending Advanced – Form creation – Data Exportation Help Resources.
Computer Concepts 2014 Chapter 7 The Web and .
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Web Servers Don McGregor Research Associate MOVES Institute
Server- Side technologies Client-side vs. Server-side scripts PHP basic ASP.NET basic ColdFusion.
Creating a Basic Web Page
4-1 INTERNET DATABASE CONNECTOR Colorado Technical University IT420 Tim Peterson.
Amber Annett David Bell October 13 th, What will happen What is this business about personal web pages? Designated location of your own web page.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
Copyright © 2006, Infinite Campus, Inc. All rights reserved. Simple Forms (FDF) Creation in Campus.
Getting Started with HTML Please use speaker notes for additional information!
ASP Introduction Y.-H. Chen International College Ming-Chuan University Fall, 2004.
15.1 Fundamentals of HTML.
HTML Internet Basics & Beyond. What The Heck Is HTML? HTML is the language of web pages. In order to truly understand HTML, you need to know a little.
Lecture Note 1: Getting Started With ASP.  Introduction to ASP  Introduction to ASP An ASP file can contain text, HTML tags and scripts. Scripts in.
1 © Copyright 2000 Ethel Schuster The Web… in 15 minutes Ethel Schuster
Definition CSS “Short for Cascading Style Sheets, a new feature being added to HTML that gives both Web site developers and users more control over how.
Web Page Design Introduction. The ________________ is a large collection of pages stored on computers, or ______________ around the world. Hypertext ________.
15.1 Fundamentals of HTML DeKalb County School System.
WRT235: Writing in Electronic Environments Session 2 Basic XHTML.
Using FrontPage FrontPage is a great Web editing tool for people with limited knowledge and time for HTML coding. It’s similar to using Microsoft Word.
BlackBerry Applications using Microsoft Visual Studio and Database Handling.
15.1 Fundamentals of HTML 2 assignments: 1st—complete the worksheet. 2nd—create your first HTML web page following the directions in this PowerPoint where.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
ASP. ASP is a powerful tool for making dynamic and interactive Web pages An ASP file can contain text, HTML tags and scripts. Scripts in an ASP file are.
Web Authoring with Dreamweaver. Unit Objectives  Be able to define keywords: HTML, HTTP (protocol), browser, web server, client/server, tag, attribute,
PHP and Sessions. Session – a general definition The GENERAL definition of a session in the “COMPUTER WORLD” is: The interactions (requests and responses)
Document Control Template Editors Brad Adamczyk Template Editor Bands Bands create document layout Header, data, footer Order not critical.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 8 1 Microsoft Office Access 2003 Tutorial 8 – Integrating Access with the.
CHAPTER 7 LESSON C Creating Database Reports. Lesson C Objectives  Display image data in a report  Manually create queries and data links  Create summary.
Introduction. Internet Worldwide collection of computers and computer networks that link people to businesses, governmental agencies, educational institutions,
Basic HTML Page 1. First Open Windows Notepad to type your HTML code 2.
Randy Brown April 12, 2005 Reporting with ColdFusion MX v7.0: Web Reporting-Freedom Realized.
Important skills for Computer Based Researching Peter Szluka, Attila Skulteti
HTML Tables Tables are defined with the tag. A table is divided into rows (with the tag), and each row is divided into data cells (with the tag). td stands.
Ajax 101 for CF Programmers Randy Brown – Michigan State University
Generating XML Data from a Database Eugenia Fernandez IUPUI.
Creating Oracle Business Intelligence Interactive Dashboards
Active Server Pages Computer Science 40S.
Introduction to ASP By “FlyingBono” 2009_01 By FlyingBono 2009_01
* Lecture # 7 Instructor: Rida Noor Department of Computer Science
Intro to PHP & Variables
(Includes setup) FAQ ON DOCUMENTS (Includes setup)
Microsoft Office Access 2003
Microsoft Office Access 2003
Lesson 1 The Web.
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
Database Connectivity and Web Development
15.1 Fundamentals of HTML 2 assignments: 1—complete the worksheet
Presentation transcript:

Creating a Dynamic Adobe PDF - Using ColdFusion Randy Brown Michigan State Univerisity University Development Randy Brown Michigan State Univerisity University Development

What You Will Need Adobe Acrobat v5.0 (v4.0 or v3.0 will work) Cold Fusion Studio or Text Editor (notepad) Cold Fusion Application Server Adobe Acrobat v5.0 (v4.0 or v3.0 will work) Cold Fusion Studio or Text Editor (notepad) Cold Fusion Application Server

What The Client Will Need Acrobat 5.0 Reader (This will work with v3.0 or v4.0) Acrobat Plug-In Compatible Browser (Preferably IE v5.0 or greater) Acrobat 5.0 Reader (This will work with v3.0 or v4.0) Acrobat Plug-In Compatible Browser (Preferably IE v5.0 or greater)

FIRST STEP You will need to create a PDF document

Create a PDF Document Step 1. Create a PDF Document using Adobe Acrobat from any Windows application by selecting the PDFWriter as your output device Step 2. Print/Save PDF to the Web Server.

NEXT STEP You will need to create a PDF form

Create a PDF Form Step 1. Use the existing PDF created. Step 2. Insert Form Fields using Adobe Acrobat Step 3. Re-save PDF to Web Server.

Things to remember when Creating a PDF Form Always give form fields a name Do not use spaces in name Always set the font and size The border is optional but good to have

NEXT STEP Now you have a PDF form, how does it work with a Web Server?

What happens when a Client request a PDF? Client Requests PDF Doc Client Receives PDF Doc Server Receives PDF Doc Request Server Sends PDF Doc No magic here, the server handles this request similar to a standard html request.

NEXT STEP How do you create the data file (FDF) to populate the PDF fields? A FDF file is a standard DOS/ASCII file This file holds all the data that will be merged with PDF form fields Most importantly it holds the /F switch information

Create a FDF File Step 1. Create a FDF file This can be accomplished with CF Studio, a text editor or more advanced with a CFM. Step 2. Save as filename.fdf to the Web Server

NEXT STEP We are going to take a closer look at the base components and syntax of a FDF file?

Form Data File (FDF) %PDF obj << FDF File Header

Form Data File (FDF) %PDF obj << /FDF << /Fields[<</T(Company) /V(Purple Place) >><</T(Address) /V(123 Anywhere) >><</T(CityStateZip) /V(East Lansing, MI 48823) >>] Body (Field Definitions)

Form Data File (FDF) %PDF obj << /FDF << /Fields [ << /T(Company) /V(Purple Place) >> << /T(Address) /V(123 Anywhere) >> << /T(CityStateZip) /V(East Lansing, MI ) >> ]/F(registration.pdf) PDF Filename

Form Data File (FDF) /FDF << /Fields [ << /T(Company) /V(Purple Place) >> << /T(Address) /V(123 Anywhere) >> << /T(CityStateZip) /V(East Lansing, MI 48823) >> ] /F(registration.pdf) >>>>endobjtrailer %EOF FDF File Footer

NEXT STEP Now you have a FDF file, how does it works with a PDF and the Web Server?

Client Requests FDF Doc Client Receives FDF Doc Server Receives FDF Doc Request Server Sends FDF Doc *Note: FDF file has been created and saved on server already. No magic here, the server handles this request similar to a standard html request. What happens when a Client request a FDF file?

Overview of how the FDF file works with a PDF Form Client Requests Specified PDF Doc Client Receives & Merges PDF Doc w/ FDF file Server Receives PDF Doc Request Server Sends PDF Doc After receiving FDF file from Server, the browser (per the Adobe Acrobat Reader) requests the PDF form specified in the /F line Once received, the PDF is merged with the FDF file to create a final document Hint: This is the magic :-).

NEXT STEP Now you understand the MAGIC of how the PDF and FDF work together. Lets review how ColdFusion handles a file request and how it fits into this puzzle.

Web Server sends CFM file to CFAS for Processing Overview of the ColdFusion file request system Client Requests CFM File Client Receives CFAS HTML Response Server Receives CFM File Request Server Sends CFAS HTML Response CFAS sends back to web server an HTML formatted response Web Server passes CFM page request to CFAS. CFAS processes and returns (typically) HTML response. Web Server passes on what appears to be a file

Web Server sends CFM file to CFAS for Processing ColdFusion & FDF Integration Client Requests CFM File Client Receives CFAS FDF Response Server Receives CFM File Request Server Sends CFAS FDF Response CFAS sends back to web server an FDF formatted response Web Server passes on what appears to be an FDF file Web Server passes CFM page request to CFAS. CFAS processes and returns FDF response instead.

Overview of how the FDF file works with a PDF Form (again) Client Requests Specified PDF Doc Client Receives & Merges PDF Doc w/ FDF file Server Receives PDF Doc Request Server Sends PDF Doc After receiving FDF file from Server, the browser (per the Adobe Acrobat Reader) requests the PDF form specified in the /F line Once received, the PDF is merged with the FDF file to create a final document

LAST STEP How do we automate this process using ColdFusion

How to create the code to make a FDF on the fly %FDF obj << /FDF << /Fields [ << /T(Company) /V(Purple Place) >> …other fields ] /F(registration.pdf) >> endobj trailer > %EOF

How to add a Query to pull data from a database SELECT * FROM tblPeople WHERE PersonID = ‘kid’ cfsetting enablecfoutputonly="Yes" showdebugoutput="No"> %FDF obj << /FDF << /Fields [ << /T(Company) /V(#myQuery.Company#) >> << /T(Address) /V(#myQuery.Address#) >>

Additional Resources