cfprint
8

Overview ColdFusion Open BlueDragon Lucee

Prints specified pages from a PDF file. Use this tag to perform automated batch print jobs. You can use the cfprint tag to print any PDF document, including those generated by the cfdocument, cfpdf, and cfpdfform tag. Also, you can use this tag to print Report Builder reports exported in PDF format.

Attributes

Name Required Type Default Description
8
attributestruct No String ColdFusion structure used to specify additional print instructions. Individually named attributes take precedence over the key-value pairs in the attribute structure.
8
color No String Color or monochrome printing
8
copies No String Number of copies to print. The value must be greater than or equal to 1.
8
coverpage No String Specifies which job start and end sheets, if any, are printed with a job: * none * standard
8
fidelity No Boolean false Whether to print a job based on the print requirements specified. Valid values are: * yes: if the job cannot be printed exactly as specified in the print requirements, the job is rejected. * no: a reasonable attempt to print the job is acceptable
8
jobname No String The name of a print job.
8
orientation No String Orientation of the page to be printed.
8
pages No String Pages in the source file to print. Duplicate pages and pages beyond the total count of pages in the document are ignored as long as there is at least one page between 1 and the total number of pages in the document. You can combine individual page numbers and page ranges; for example, 1–3,6,10–20. If you do not specify a value for the pages attribute, ColdFusion prints the entire document.
8
paper No String Paper used for the print job. The value can be any returned by the GetPrinterInfo function.
8
papersize No String Paper used for the print job. The value can be any returned by the GetPrinterInfo function. Valid
8
password No String Specifies either the owner or user password for the PDF source file. If the PDF file is password-protected, you must specify this attribute for the file to print.
8
printer No String The name of a printer. An example in Windows is “\\s1001prn02\NTN-2W- HP_BW02”. The default is the default printer for the account where the ColdFusion server is running.
8
quality No String Print quality for the print job: * draft * high * normal
8
sides No String
8
source No String Source document to print. You can specify one of the following: • An absolute or relative pathname to a PDF document; for example, c:\work\myPDF.pdf or myPDF.pdf. The default directory is the template directory. • A PDF document variable in memory that is generated by the cfdocument tag or the cfpdf tag; for example, "myPDFdoc".
8
type No String Specifies the file type of the document being printed. PDF is the only valid value.