CFML and HTML. cfdocument format=”PDF”>htmlcfdocument> the tag stores the PDF or FlashPaper output. Specify a number less than Values. Nested directly within the cfdocument tag is a div tag that sets the page width, with position:relative so it remains within the page flow, and acts. This tag is also supported within to reduce the size of the HTML output so that it fits on that paper. define a number less than cfdocument [ marginbottom=number] [useragent=string] [permissions=string] [filename=String] .
|Published (Last):||6 May 2018|
|PDF File Size:||11.50 Mb|
|ePub File Size:||17.80 Mb|
|Price:||Free* [*Free Regsitration Required]|
For a full list of deprecated features, refer to Deprecated features. You can specify this tag’s attributes in an attributeCollection attribute whose value is a structure. Specify the structure name in the attributeCollection attribute and use the tag’s attribute names as structure keys.
Combined with username to form a base64 encoded string that is passed in the Authenticate header. Combined with password to form a base64 encoded string that is passed in the Authenticate header.
If you omit the filename attribute, ColdFusion displays the output in the browser. This attribute is available only if you have integrated OpenOffice with ColdFusion. A Boolean value that specifies if form fields are exported as widgets or only their fixed print representation is exported.
Specifies the submitted format of a PDF form. It can be one of the following values:. Bottom margin in inches default or centimeters. Left margin in inches default or centimeters.
Generating Accurate PDFs Using Cfdocument – Nando @ Aria Media
Right margin in inches default or centimeters. Top margin in inches default or centimeters. Password required to cfdocumenr a password-protected document. Specifies whether ColdFusion overwrites an existing file. Used in conjunction with the filename attribute.
Page height in inches default or centimeters. Page width in inches default or centimeters.
Password required to access restricted permissions. The restricted permissions are specified using the permissions attribute. Host name or IP address of a proxy server to which to send the request. User name to provide to the proxy server. Scale factor as a percentage. Use this option to reduce the size of the HTML output so that it fits on that paper. Specify a number less than URL or the relative path to the web root.
You cannot specify both the src and srcfile attributes. Absolute path of a file that is on the server. Default unit for the pageHeight, pageWidthand margin attributes:. Used to identify the request client software. Cannot be same as ownerPassword. In-memory files speed processing of transient data. Create the directories in the path before you specify the file. ColdFusion ignores the additional content.
If you notice that the header text is cropped in the cfdocument tag output, increase the value of the marginTop attribute. For optimal performance and reliability, Adobe recommends that you specify a local file URL for images stored on the server.
Also, in some applications, the browser displays a Red X image error instead of the image in the browser. This scope contains the following variables:. ColdFusion 9 supports bookmarks. The following example shows how to specify bookmarks for document sections:.
Category Data output tags Syntax. Added the following attributes and variables: It can be one of the following values: For more information, see the “Using an image file URL” section.
Supported MIME types are: Cannot be same as userPassword. If you specify customalso specify the pageHeight and cddocument attributes, can optionally specify margin attributes and whether the units are inches or centimeters. This cfdociment contains the following variables: Bookmarks ColdFusion 9 supports bookmarks.
The following example shows how to specify bookmarks for hag sections: Specifies whether the tsg prints when the user prints the document: Specifies whether bookmarks are created in the document: Specifies whether ColdFusion embeds fonts in the output: Specifies whether to retrieve image files directly from the local drive: MIME type of the smallef document.
Page type into which ColdFusion generates the report: Default unit for the pageHeight, pageWidthand margin attributes: