pdf

Opens a PDF file into a shared, reference-typed PDF object for reading. The object can be used directly with the Pdf* builtin functions or via method calls (e.g. Pdf( path ).toImage( 1, 400 )). A PDF in RustCFML is read-only: every method is terminal. This function is an alias of pdfRead().

pdf(pathOrBinary) → returns any

This function requires RustCFML.  Not supported on Lucee, Adobe ColdFusion, etc.

Argument Reference

pathOrBinary any
Required

Absolute path to a PDF file, or a Binary containing the PDF bytes.

Examples
Sample code invoking the pdf function

Create a PDF object from a file path.

doc = Pdf( expandPath( "/invoice.pdf" ) );

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub