1 / 34

Creating PDF Documents Using ColdFusion & activePDF

Creating PDF Documents Using ColdFusion & activePDF. Matteo Foschetti Technical Evangelist activePDF Inc. Introduction. Technical Evangelist Software Engineer Corporate Trainer Conference Speaker Web Programming Instructor. Agenda. Learn About activePDF Inc.

devon
Télécharger la présentation

Creating PDF Documents Using ColdFusion & activePDF

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Creating PDF Documents Using ColdFusion & activePDF Matteo Foschetti Technical Evangelist activePDF Inc.

  2. Introduction Technical Evangelist Software Engineer Corporate Trainer Conference Speaker Web Programming Instructor

  3. Agenda Learn About activePDF Inc. Discuss PDF & COM Technology Review ColdFusion MX Introduce activePDF Toolkit & WebGrabber Demonstrate activePDF Examples

  4. Survey PDF COM ColdFusion/ColdFusion MX <CFOBJECT> Tag activePDF

  5. About activePDF Inc. Provider of server-side PDF conversion and development tools PDF tools free the developer from the dilemmas associated with dynamic PDF creation Unique in PDF industry by offering a server-based suite of products

  6. About activePDF Inc. No additional per user or per document licensing fees COM object level access within all the activePDF products Complete control over the PDF generation and manipulation process

  7. What is PDF? Portable Document Format Widespread standard among users for file sharing and exchanges Platform-independent for viewing on any machine PDF is well integrated in almost every industry

  8. What is COM? Component Object Model A specification and set of services to enable component portability, reusability, and versioning Promotes component-based development

  9. What is COM? Referred to as objects, controls or components Contain properties (attributes) and methods (operations) Callable from any environment that supports COM, such as ColdFusion, Visual Basic, ASP, etc.

  10. The Typical PDF Conversion Process A PostScript file is generated by printing from a native application to a PostScript enabled device by a user A PDF generator application is opened

  11. The Typical PDF Conversion Process PostScript File is located File parameters and output options are selected PostScript-To-PDF conversion takes place User repeats steps 1-5 for each unique document

  12. What is Server-Side PDF Conversion? activePDF software resides on a network server Allows automatic file conversion without user intervention Alleviates the “guesswork” Allows full control over security and display settings of documents

  13. ColdFusion MX Overview Latest ColdFusion Application Server Parses (reads and compiles) supplied instructions Processes supplied instructions Instructions passed to ColdFusion using templates

  14. ColdFusion MX Templates ColdFusion pages that use ColdFusion Markup Language (CFML) Extend HTML by adding tags with a variety of capabilities <CF….> Variables and functions are surrounded by pound signs #….#

  15. CFML & ColdFusion Features Files use the file extension .cfm or .cfml Capable of Linking to External Data Applications Integration with C/C++, Java, COM, CORBA, and Web Services

  16. Getting Started with COM and ColdFusion Component objects can be invoked in ColdFusion using tags <CFOBJECT> creates an instance of an object <CFSET> invokes properties and methods of the object <CFOUTPUT> displays text

  17. Using Properties To set a property: <cfset obj.property = “somevalue”> To get a property: <cfset value = obj.property>

  18. Calling Methods Methods with no arguments: <cfset retVal = obj.Method1()> Methods with one or more arguments: <cfset x = 23> <cfset retVal = obj.Method1(x, “a string literal”)>

  19. Calling Methods Methods with reference arguments: <cfset x = 23> <cfset retVal = obj.Method2(“x”, “a string literal”)> Calling nested objects: <cfset objX = myObj.X> <cfset prop = objX.Property>

  20. Registering COM Objects In order for ColdFusion to find the COM object, you must register it With Windows, you use the regsvr32 command with the object file (*.dll, *.ocx), such as: regsvr32 c:\path\servername.dll

  21. Creating & Using COM Objects in ColdFusion Note: You must create the component in ColdFusion before your application pages can invoke any methods or assign any properties in the component!

  22. Creating & Using COM Objects Example <!--- First, create the object ---> <cfobject type=“COM” action=“Create” name=“Mailer” class=“CDONTS.NewMail”> <cfset Mailer.To = “#Form.to#”> <cfset Mailer.Body = “#Form.body#”> <!--- Last, use the Send() method to send the msg ---> <cfset Mailer.Send()>

  23. What is activePDF Toolkit? Programmable COM object that enables users to create and manipulate PDF documents With a robust API, ToolKit is used to append, stamp, stitch, merge, paint, form-fill, etc.

  24. Toolkit Features Simple to add watermarks, set form fields, incorporate headers and footers, extracting ,concatenating pages, etc. ToolKit supports latest encryption standards and other unique PDF technologies

  25. Toolkit Basic Steps for Form-Filling a PDF Open an output destination file (OpenOutputFile Method) Open an input PDF form (OpenInputFile Method) Set the form field values (SetFormFieldData Method) Copy the input form into the destination file (CopyForm Method) Close output destination file (CloseOutputFile)

  26. Toolkit Examples PDF Form-Filling Dynamic PDF Report Generation

  27. What is activePDF WebGrabber? Programmable COM object that dynamically converts any URL, HTML stream, or HTML file to PDF Designed for use with activePDF Server as a Multi-Threaded application

  28. WebGrabber Features Capable of using either the default HTML 3.2 rendering engine or the Microsoft Internet Explorer engine which supports CSS, SSL, Flash, Java, etc. Supports latest Encryption standards and Linearization

  29. WebGrabber Basic Steps Spooling Stage: activePDF WebGrabber is responsible for rendering the HTML Conversion Stage: activePDF Server is then responsible for producing the PDF document (Multi-threaded)

  30. WebGrabber Examples On-the-fly HTML to PDF Web Reporting to PDF

  31. Conclusion activePDF provides server-side PDF conversion and development tools PDF is a widespread standard among users for file sharing and exchanges

  32. Conclusion activePDF COM objects allow full control over security and display settings of documents Component objects can be invoked in ColdFusion using tags, such as <CFOBJECT>

  33. Conclusion activePDF Toolkit enables users to create and manipulate PDF documents activePDF WebGrabber dynamically converts any URL, HTML stream, or HTML file to PDF

  34. References Forta, B., Weiss, N., (2003). Macromedia ColdFusion MX Web Application Construction Kit. (5th ed.). Berkeley, CA: Macromedia Press. Macromedia. (2001). Macromedia ColdFusion5 Developing ColdFusion Applications. Macromedia Incorporated. Balena, F. (1999). Programming Microsoft Visual Basic 6.0. Redmond, WA: Microsoft Press. activePDF Inc. (2003). activePDF Press Kit. Retrieved May 12, 2003, from http://www.activepdf.com/en/Corporate/PressKit.asp

More Related