cfdocument will take your combination of CFML and HTML and convert it to a PDF. cfdocument format=”PDF”> Bacon ipsum dolor sit amet sirloin. I fixed it by adding the attribute “localUrl = yes” in CFDOCUMENT tag. Now it is working fine for me. (format=”PDF” only) The filename that appears in the SaveAs dialog when a user saves a PDF file written to the browser. pageheight. number, optional.
|Published (Last):||19 September 2010|
|PDF File Size:||13.98 Mb|
|ePub File Size:||5.17 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 cfxocument name in the attributeCollection attribute and use the tag’s attribute names as cfsocument 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.
cfdocument Code Examples and CFML Documentation
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 cfdpcument. It can be one of the following values:.
Bottom margin in inches default or centimeters. Left margin in inches default or centimeters.
Right margin in inches default or centimeters. Top margin in inches default or centimeters. Password required to open 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 pageWidth attributes, can optionally specify margin attributes and whether the units are inches or centimeters.
This scope contains the following variables: Bookmarks ColdFusion 9 supports bookmarks. The following example shows how to specify bookmarks for document sections: Specifies whether the background 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 source document.
Page type into which ColdFusion generates the report: Default unit for the pageHeight, pageWidthand margin attributes: