FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...

Ortus PDF Tools

v2.1.0.snapshot Public

Ortus PDF Extension

The Ortus PDF Lucee Extension adds to any Lucee engine the missing PDF capabilities you were longing for and enhancing some PDF capabilities as well. The extension contains several new CFML built-in tags and functions (coming soon) that will help you manipulate and work with PDF documents. You can read more about this extension here: https://www.ortussolutions.com/products/ortuspdf

Requirements

  • Lucee 5.x

Implemented Tags

The following are the implemented tags that bring compatibility from Adobe ColdFusion to Lucee. You can see much more detailed information about these tags here: https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-tags/tags-p-q/cfpdfform.html

  • cfpdfform - https://cfdocs.org/cfpdfform
  • cfpdfformparam - https://cfdocs.org/cfpdfformparam

Capabilities

  • cfpdfform tag implementation compliant with Adobe ColdFusion
  • cfpdfformparam tag implementation compliant with Adobe ColdFusion
  • Ability to export PDF form data into:
    • Native CFML Structures
    • XML String
    • XML File
    • FDF File
    • JSON
  • Ability to pre-fill PDF form data from:
    • Native CFML Structures
    • XML String
    • XML File
    • XML Objects
    • JSON objects
  • Allows the ability to flatten PDFs after populating them with data
  • Manipulates existing forms created in Adobe® Acrobat® and Adobe® LiveCycle® Designer
  • Ability to stream generated PDFs to browser
  • Ability to read subforms or embedded forms (since version 2.1.0)
  • Much More!!

Quick Usage

Populate Using Native CFML Structs

data = {
    "full_name" = "Ortus Rocks",
    "exam_date" = "#dateFormat( now(), "mmmm dd, yyyy")# #timeFormat( now(), "medium")#",
    "strategy_overview" = "Drink a lot of water!",
    "strategy_tips"	= "Eat a lot of cheese!"
};
pdfform 
    action="populate" 
    source="#datapath#/report.pdf" 
    overwrite="true"
    overwriteData="true"
    structData=data
    flatten="true";

Populate Using JSON

jsonData = '{
    "full_name"	: "Ortus Rocks",
    "exam_date"	: "#dateFormat( now(), "mmmm dd, yyyy")# #timeFormat( now(), "medium")#",
    "strategy_overview" : "Drink a lot of water!",
    "strategy_tips" : "Eat a lot of cheese!"
}';
pdfform 
    action="populate" 
    source="#datapath#/report.pdf" 
    overwrite="true"
    overwriteData="true"
    jsonData="#jsonData#"
    flatten="true";

Reading a PDF Form

pdfform 
    action="read"
    source="#dataPath#/report.pdf"
    result="formData"
    jsonData="jsonData";
// Native Struct
writeDump( formData );
// JSON Data
writeDump( jsonData );

Here are all the versions for this package. Please note that you can leverage CommandBox package versioning to install any package you like. Please refer to our managing package version guide for more information.

Version Created Last Update Published By Stable Actions
Current
2.1.0.snapshot Aug 28 2018 12:59 PM Jun 18 2019 11:25 AM
Version History
2.0.0.728 Aug 28 2018 11:46 AM Aug 28 2018 11:46 AM
2.0.0-snapshot Aug 28 2018 10:55 AM Aug 28 2018 10:55 AM

 

  •   Ortus Solutions
  • Published
  • 2.1.0.snapshot is the latest of 3 release(s)
    Published
  • Published on Jun 18 2019 11:25 AM
No collaborators yet.
     
  • Aug 28 2018 10:55 AM
  • Jun 18 2019 11:25 AM
  • 537
  • 540
  • 208