BoxLang 🚀 A New JVM Dynamic Language Learn More...
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
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/cfpdfformcfpdfformparam
- https://cfdocs.org/cfpdfformparamcfpdfform
tag implementation compliant with Adobe ColdFusioncfpdfformparam
tag implementation compliant with Adobe ColdFusiondata = {
"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";
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";
pdfform
action="read"
source="#dataPath#/report.pdf"
result="formData"
jsonData="jsonData";
// Native Struct
writeDump( formData );
// JSON Data
writeDump( jsonData );
$
install ortuspdf-extension
-Dlucee-extensions=ortuspdf-extension