Manipulates existing PDF documents. The following list describes some of the
tasks you can perform with the cfpdf tag:
Merge several PDF documents into one PDF document.
Extract pages from multiple PDF documents and generate a new PDF document.
Linearize multipage PDF documents for faster display.
Encrypt or decrypt PDF files for security.
<cfpdf>
cfpdf();
archiveaddAttachmentsaddStampaddWatermarkdeletePagesexportgetInfoimportmergeprocessddxprotectreadremoveWatermarksanitizesetInfosignthumbnailwriteoptimizeextracttextextractimageaddheaderaddfooterremoveheaderfootertransformunsignvalidatesignaturereadsignaturefieldsnotruefalseRC4_40RC4_128RC4_128MAES_128nonenotruefalsenotruefalsenotruefalsefalsetruefalse3nametimetruefalseallallowassemblyallowcopyAllowDegradedPrintingAllowFillInAllowModifyAnnotationsAllowModifyContentsAllowPrintingAllowScreenReadersAllowSecurenone090180270stringxml1.11.21.31.41.51.6falsetruefalsehighlowfalsetruefalsefulljpgjpgtiffpngtruefalsetruefalsetruefalsetruefalsetruefalsetruefalsetruefalsetruefalsetruefalsetruefalseBicubicBilinearNearest_NeighbourNUMERICLOWERCASEROMANUPPERCASEROMANrightleftcentertruefalsetruefalse_PAGELABEL_LASTPAGELABEL_PAGENUMBER_LASTPAGENUMBERtruefalsetruefalseCreates a JPG thumbnail from a PDF file
cfpdf(
action="thumbnail",
source=expandPath( "./myFile.pdf" ),
destination=expandPath( "./thumbnails/"),
resolution="high",
overwrite="yes",
pages="1",
scale="75",
transparent="no"
);
Expected Result: Creates a file called myFile_page_1.jpg in the /thumbnails/ directory
Adds watermark text to the PDF, rotated by 45 degrees, sets flag to print the watermark
<cfpdf action="addwatermark" position="57,0" text="TEST - DO NOT SEND!_" source="local.tempPdf" rotation="45" foreground="true" showonprint="true">
Expected Result: PDF has watermark with text: TEST - DO NOT SEND!
Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.