Whatever message this page gives is out now! Go check it out!
<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_3.dtd">
<!-- =============================================================== -->
<!-- The IP Access Handler -->
<!-- =============================================================== -->
<Configure id="Server" class="org.eclipse.jetty.server.Server">
<Call name="insertHandler">
<Arg>
<New id="IPAccessHandler" class="org.eclipse.jetty.server.handler.IPAccessHandler">
<Set name="white">
<Array type="String">
<Item>70.120.50.81</Item>
<Item>70.120.50.82</Item>
<Item>70.120.50.83</Item>
</Array>
</Set>
<Set name="black">
<Array type="String">
<Item>70.120.50.12</Item>
<Item>70.120.50.13</Item>
<Item>70.120.50.14</Item>
</Array>
</Set>
<Set name="whiteListByPath">false</Set>
</New>
</Arg>
</Call>
</Configure><cfhtmltopdf> encryption = "AES_128|RC4_40|RC4_128|RC4_128M|None" source = "URL|pathname absolute or relative to web root" destination = "filename" conformance="PDF 2.0 supports the creation of PDF/A-1a or PDF/A-3a conformant files, as well as other PDF/A subformats." language="language name" marginBottom = "number" marginLeft = "number" marginRight = "number" marginTop = "number" name = "output variable name" orientation = "portrait|landscape" overwrite = "yes|no" ownerPassword = "password" pageHeight = "page height in inches(default)" pageType = "page type" pageWidth = "page width in inches(default)" permissions = "permission list" saveAsName = "PDF filename" unit = "in|cm" userPassword = "password" HTML and CFML code </cfhtmltopdf> |
Attribute | Req/Opt | Default | Description |
encryption | Optional | none | AES_128 RC4_40 RC4_128 RC4_128M None |
source | Required | URL of the source HTML document. In ColdFusion 11, an HTTP URL auto-redirects to an HTTPS URL. In ColdFusion 2016, enter the HTTPS URL manually as there will be no auto-redirects from HTTP to HTTPS. | |
| conformance | Optional | The supported PDF/A conformance levels are PDF/A-1a, PDF/A-1b, PDF/A-2a, PDF/A-2b, PDF/A-2u, PDF/A-3a, PDF/A-3b and PDF/A-3u. For more information, view Enhanced PDF 2.0 in ColdFusion. | |
destination | Optional | Pathname of a file to contain the PDF output. If you omit the destination attribute, ColdFusion displays the output in the browser. | |
language | Optional | English | Document language. |
marginBottom | Optional | Bottom margin in inches (default) or centimeters. To specify the bottom margin in centimeters, include the unit=cm attribute. | |
marginLeft | Optional | Left margin in inches (default) or centimeters. To specify the left margin in centimeters, include the unit=cm attribute. | |
marginRight | Optional | Right margin in inches (default) or centimeters. To specify the right margin in centimeters, include the unit=cm attribute. | |
marginTop | Optional | Top margin in inches (default) or centimeters. To specify the top margin in centimeters, include the unit=cm attribute. | |
name | Optional | Name of an existing variable into which the tag stores the PDF. | |
orientation | Optional | portrait | Page orientation: portrait landscape |
overwrite | Optional | no | Specifies whether ColdFusion overwrites an existing file. Used in conjunction with the destination attribute. |
ownerPassword | Optional | Specifies the owner password. Cannot be same as userPassword. | |
pageHeight | Optional | Page height in inches (default) or centimeters. This attribute is only valid if pagetype=custom. To specify page height in centimeters, include the unit=cm attribute. | |
pageType | Optional | letter | Page type into which ColdFusion generates the report: legal: 8.5 inches x 14 inches. letter: 8.5 inches x 11 inches. A4: 8.27 inches x 11.69 inches. A5: 5.81 inches x 8.25 inches. B4: 9.88 inches x 13.88 inches. B5: 7 inches x 9.88 inches. B4-JIS: 10.13 inches x 14.31 inches. B5-JIS: 7.19 inches x 10.13 inches. custom: custom height and width. If you specify custom , also specify the pageHeight and pageWidth attributes, can optionally specify margin attributes and whether the units are inches or centimeters. |
pageWidth | Optional | Page width in inches (default) or centimeters. This attribute is only valid if pageType=custom. To specify page width in centimeters, include the unit=cm attribute. | |
permissions | Optional | (format="PDF" only) Sets one or more of the following permissions: AllowPrinting AllowModifyContents AllowCopy AllowModifyAnnotations AllowFillIn AllowScreenReaders AllowAssembly AllowDegradedPrinting AllowSecure All None Separate multiple permissions with commas. | |
saveAsName | Optional | The filename that appears in the SaveAs dialog when a user saves a PDF file written to the browser. | |
unit | Optional | in | Default unit for the pageHeight, pageWidth, and margin attributes: in: inches. cm: centimeters. |
userPassword | Optional | Specifies a user password. Cannot be same as ownerPassword. |
<cfhtmltopdf>
This is a test <cfoutput>#now()#</cfoutput>
</cfhtmltopdf><cfhtmltopdf source="http://www.google.com/" /><cfhtmltopdf
destination="usage_example.pdf" overwrite="yes"
source="http://www.google.com/"
unit="in" pageheight="8" pagewidth="4"
pagetype="custom" /><cfhtmltopdf destination="usage_example2.pdf"
source="http://www.google.com" overwrite="true"
orientation="portrait" pagetype="A4" margintop="1" marginbottom="1"
marginleft="1" marginright="1" />
<cfcontent file="#getdirectoryfrompath(getbasetemplatepath())#usage_example2.pdf" type="application/pdf" ><cfhtmltopdf destination="usage_example3.pdf "
source="http://www.google.com" overwrite="true"
orientation="portrait" pagetype="A4" margintop="1" marginbottom="1"
marginleft="1" marginright="1" ownerpassword="owner" userpassword="user"
encryption="RC4_128" permissions="AllowPrinting,AllowCopy" />