<commit_before>{
	"name":"cfdocument",
	"type":"tag",
	"syntax":"<cfdocument format=\"PDF\">",
	"returns":"",
	"related":[],
	"description":" Creates PDF or FlashPaper output from a text block containing CFML and HTML.",
	"params": [
		{"name":"format","description":"Specifies the report format.","required":true,"default":"","type":"String","values":["PDF","FlashPaper"]},
		{"name":"filename","description":"Specifies the fully qualified path name of a file to\n contain the PDF or FlashPaper output. If you omit the\n filename attribute, ColdFusion MX streams output to\n the browser.","required":false,"default":"","type":"String","values":[]},
		{"name":"localurl","description":"Specifies whether to retrieve image files directly \n from the local drive:\n * yes: ColdFusion retrieves image files directly from \n the local drive rather than by using HTTP, HTTPS, or proxy.\n * no: ColdFusion uses HTTP, HTTPS, or proxy to retrieve \n image files even if the files are stored locally.","required":false,"default":false,"type":"boolean","values":[true,false]},
		{"name":"overwrite","description":"Specifies whether ColdFusion MX overwrites an\n existing file. Used in conjunction with filename.\n Default is: false","required":false,"default":false,"type":"boolean","values":[true,false]},
		{"name":"name","description":"Specifies the name of an existing variable into which\n the tag stores the PDF or FlashPaper output.","required":false,"default":"","type":"String","values":[]},
		{"name":"pagetype","description":"Specifies the page size into which ColdFusion\n generates the report.\n - legal: 8.5 inches x 14 inches\n - letter: 8.5 inches x 11 inches\n - A4: 8.27 inches x 11.69 inches\n - A5: 5.81 inches x 8.25 inches\n - B5: 9.81 inches x 13.88 inches\n - Custom: Custom height and width.\n If you specify custom, you must also specify the pageheight\n and pagewidth attributes, can optionally specify margin\n attributes, and can optionally specify whether the units\n are inches or centimeters.","required":false,"default":"A4","type":"String","values":["legal","letter","A4","A5","B5","custom"]},
		{"name":"pageheight","description":"Specifies the page height in inches (default) or\n centimeters. This attribute is only valid if\n pagetype=custom. To specify page height in\n centimeters, include the unit=cm attribute.","required":false,"default":"","type":"Numeric","values":[]},
		{"name":"pagewidth","description":"Specifies the page width in inches (default) or\n centimeters. This attribute is only valid if\n pagetype=custom. To specify page width in\n centimeters, include the unit=cm attribute.","required":false,"default":"","type":"Numeric","values":[]},
		{"name":"orientation","description":"Specifies the page orientation. Specify either of the\n following:\n - portrait (default)\n - landscape","required":false,"default":"portrait","type":"String","values":["portrait","landscape"]},
		{"name":"margintop","description":"Specifies the top margin in inches (default) or\n centimeters. To specify top margin in centimeters,\n include the unit=cm attribute.","required":false,"default":"","type":"Numeric","values":[]},
		{"name":"marginbottom","description":"Specifies the bottom margin in inches (default) or\n centimeters. To specify bottom margin in\n centimeters, include the unit=cm attribute.","required":false,"default":"","type":"String","values":[]},
		{"name":"marginleft","description":"Specifies the left margin in inches (default) or\n centimeters. To specify left margin in centimeters,\n include the unit=cm attribute.","required":false,"default":"","type":"String","values":[]},
		{"name":"marginright","description":"Specifies the right margin in inches (default) or\n centimeters. To specify right margin in centimeters,\n include the unit=cm attribute.","required":false,"default":"","type":"String","values":[]},
		{"name":"unit","description":"Specifies the default unit (inches or centimeters) for\n pageheight, pagewidth, and margin attributes.","required":false,"default":"in","type":"String","values":["in","cm"]},
		{"name":"encryption","description":"Specifies whether the output is encrypted (format=\"PDF\" only).\n Default is: none","required":false,"default":"none","type":"String","values":["128-bit","40-bit","none"]},
		{"name":"ownerpassword","description":"Specifies an owner password (format=\"PDF\" only).","required":false,"default":"","type":"String","values":[]},
		{"name":"userpassword","description":"Specifies a user password (format=\"PDF\" only).","required":false,"default":"","type":"String","values":[]},
		{"name":"permissions","description":"Specifies one or more permissions (format=\"PDF\" only).\n Separate multiple permissions with a comma.","required":false,"default":"","type":"String","values":["AllowPrinting,AllowCopy,AllowScreenReaders","AllowPrinting","AllowModifyContents","AllowCopy","AllowModifyAnnotations","AllowFillIn","AllowScreenReaders","AllowAssembly","AllowDegradedPrinting","AllowPrinting,AllowModifyContents,AllowCopy,AllowModifyAnnotations,AllowFillIn,AllowScreenReaders,AllowAssembly,AllowDegradedPrinting"]},
		{"name":"fontembed","description":"Specifies whether ColdFusion embeds fonts in the output.\n Specify one of the following:\n - true: Embed fonts\n - false: Do not embed fonts.\n Selective: Embed all fonts except Java fonts and core fonts.","required":false,"default":true,"type":"boolean","values":[true,false]},
		{"name":"backgroundvisible","description":"Specifies whether the background prints when the\n user prints the document:\n - yes: include the background when printing.\n - no: do not include the background when printing.","required":false,"default":false,"type":"boolean","values":[true,false]},
		{"name":"scale","description":"Specifies a scale factor as a percentage. Use this\n option to reduce the size of the HTML output so that\n it fits on that paper. Specify a number less than 100.","required":false,"default":"","type":"Numeric","values":[100,90,80,70,60,50,40,30,20,10]},
		{"name":"authpassword","description":"Password sent to the target URL for Basic Authentication. \nCombined with username to form a base64 encoded string that is passed in the Authenticate header. \nDoes not provide support for Integrated Windows, NTLM, or Kerebos authentication.","required":false,"default":"","type":"String","values":[]},
		{"name":"authuser","description":"User name sent to the target URL for Basic Authentication. \nCombined with password to form a base64 encoded string that is passed in the Authenticate header. \nDoes not provide support for Integrated Windows, NTLM, or Kerebos authentication.","required":false,"default":"","type":"String","values":[]},
		{"name":"bookmark","description":"Specifies whether bookmarks are created in the document:\n * yes: creates bookmarks.\n * no: does not create bookmarks.","required":false,"default":false,"type":"Boolean","values":[true,false]},
		{"name":"localurl","description":"Specifies whether to retrieve image files directly from the local drive:\n * yes: ColdFusion retrieves image files directly from the local drive rather than by using HTTP, HTTPS, or proxy.\n * no: ColdFusion uses HTTP, HTTPS, or proxy to retrieve image files even if the files are stored locally.","required":false,"default":false,"type":"Boolean","values":[true,false]},
		{"name":"mimetype","description":"MIME type of the source document","required":false,"default":"text\/html","type":"String","values":["text\/html","text\/plain","application\/xml","image\/bmp","image\/jpeg","image\/png","image\/gif"]},
		{"name":"proxypassword","description":"Password required by the proxy server.","required":false,"default":"","type":"String","values":[]},
		{"name":"proxyuser","description":"User name to provide to the proxy server.","required":false,"default":"","type":"String","values":[]},
		{"name":"saveasname","description":"(format=\"PDF\" only) The filename that appears in the SaveAs dialog when a user saves a PDF file written to the browser.","required":false,"default":"","type":"String","values":[]},
		{"name":"src","description":"URL or the relative path to the web root. You cannot specify both the src and srcfile attributes. \nThe file must be in a browser-writable format such as, HTML, HTM, BMP, PNG, and so on.","required":false,"default":"","type":"String","values":[]},
		{"name":"srcfile","description":"Absolute path of a file that is on the server. You cannot specify both the src and srcfile attributes. \nThe file must be in a browser-writable format such as, HTML, HTM, BMP, PNG, and so on.","required":false,"default":"","type":"String","values":[]},
		{"name":"useragent","description":"Text to put in the HTTP User-Agent request header field. Used to identify the request client software.","required":false,"default":"","type":"String","values":[]},
		{"name":"proxyhost","description":"IP address or server name for proxy host.","required":false,"default":"","type":"String","values":[]},
		{"name":"proxyport","description":"port of the proxy host.","required":false,"default":"","type":"String","values":[]},
		{"name":"tagged","description":"Determines if PDF are created by using special tags also known as Tagged PDF","required":false,"default":false,"type":"Boolean","values":[true,false]},
		{"name":"pdfa","description":"Creates a PDF of type PDF\/A-1 (ISO 19005-1:2005)","required":false,"default":false,"type":"Boolean","values":[true,false]},
		{"name":"formFields","description":"Specifies whether form fields are exported as widgets or only their fixed print representation is exported.","required":false,"default":true,"type":"Boolean","values":[true,false]},
		{"name":"formsType","description":"Specifies the submitted format of a PDF form.","required":false,"default":"FDF","type":"String","values":["FDF","PDF","HTML","XML"]},
		{"name":"permissionsPassword","description":"This is the password that allows the user to access some permissions restricted if some permissions need to be restricted. The permissions are defined in \"permissions\" attribute","required":false,"default":"","type":"String","values":[]},
		{"name":"openPassword","description":"If the source document is protected specify using this attribute.","required":false,"default":"","type":"String","values":[]}

	],
	"engines": {
		"coldfusion": {"minimum_version":"", "notes":"", "docs":"https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-tags/tags-d-e/cfdocument.html"},
		"lucee": {"minimum_version":"", "notes":"", "docs":"http://docs.lucee.org/reference/tags/document.html"},
		"railo": {"minimum_version":"", "notes":"", "docs":"http://railodocs.org/index.cfm/tag/cfdocument"},
		"openbd": {"minimum_version":"", "notes":"", "docs":"http://openbd.org/manual/?/tag/cfdocument"}
	},
	"links": [

	]

}<commit_msg>Added example to cfdocument tag<commit_after>{
	"name":"cfdocument",
	"type":"tag",
	"syntax":"<cfdocument format=\"PDF\">",
	"returns":"",
	"related":["cfhtmltopdf","cfdocumentitem","cfdocumentsection"],
	"description":"Creates PDF or FlashPaper output from a text block containing CFML and HTML.",
	"params": [
		{"name":"format","description":"Specifies the report format.","required":true,"default":"","type":"String","values":["PDF","FlashPaper"]},
		{"name":"filename","description":"Specifies the fully qualified path name of a file to\n contain the PDF or FlashPaper output. If you omit the\n filename attribute, ColdFusion MX streams output to\n the browser.","required":false,"default":"","type":"String","values":[]},
		{"name":"localurl","description":"Specifies whether to retrieve image files directly \n from the local drive:\n * yes: ColdFusion retrieves image files directly from \n the local drive rather than by using HTTP, HTTPS, or proxy.\n * no: ColdFusion uses HTTP, HTTPS, or proxy to retrieve \n image files even if the files are stored locally.","required":false,"default":false,"type":"boolean","values":[true,false]},
		{"name":"overwrite","description":"Specifies whether ColdFusion MX overwrites an\n existing file. Used in conjunction with filename.\n Default is: false","required":false,"default":false,"type":"boolean","values":[true,false]},
		{"name":"name","description":"Specifies the name of an existing variable into which\n the tag stores the PDF or FlashPaper output.","required":false,"default":"","type":"String","values":[]},
		{"name":"pagetype","description":"Specifies the page size into which ColdFusion\n generates the report.\n - legal: 8.5 inches x 14 inches\n - letter: 8.5 inches x 11 inches\n - A4: 8.27 inches x 11.69 inches\n - A5: 5.81 inches x 8.25 inches\n - B5: 9.81 inches x 13.88 inches\n - Custom: Custom height and width.\n If you specify custom, you must also specify the pageheight\n and pagewidth attributes, can optionally specify margin\n attributes, and can optionally specify whether the units\n are inches or centimeters.","required":false,"default":"A4","type":"String","values":["legal","letter","A4","A5","B5","custom"]},
		{"name":"pageheight","description":"Specifies the page height in inches (default) or\n centimeters. This attribute is only valid if\n pagetype=custom. To specify page height in\n centimeters, include the unit=cm attribute.","required":false,"default":"","type":"Numeric","values":[]},
		{"name":"pagewidth","description":"Specifies the page width in inches (default) or\n centimeters. This attribute is only valid if\n pagetype=custom. To specify page width in\n centimeters, include the unit=cm attribute.","required":false,"default":"","type":"Numeric","values":[]},
		{"name":"orientation","description":"Specifies the page orientation. Specify either of the\n following:\n - portrait (default)\n - landscape","required":false,"default":"portrait","type":"String","values":["portrait","landscape"]},
		{"name":"margintop","description":"Specifies the top margin in inches (default) or\n centimeters. To specify top margin in centimeters,\n include the unit=cm attribute.","required":false,"default":"","type":"Numeric","values":[]},
		{"name":"marginbottom","description":"Specifies the bottom margin in inches (default) or\n centimeters. To specify bottom margin in\n centimeters, include the unit=cm attribute.","required":false,"default":"","type":"String","values":[]},
		{"name":"marginleft","description":"Specifies the left margin in inches (default) or\n centimeters. To specify left margin in centimeters,\n include the unit=cm attribute.","required":false,"default":"","type":"String","values":[]},
		{"name":"marginright","description":"Specifies the right margin in inches (default) or\n centimeters. To specify right margin in centimeters,\n include the unit=cm attribute.","required":false,"default":"","type":"String","values":[]},
		{"name":"unit","description":"Specifies the default unit (inches or centimeters) for\n pageheight, pagewidth, and margin attributes.","required":false,"default":"in","type":"String","values":["in","cm"]},
		{"name":"encryption","description":"Specifies whether the output is encrypted (format=\"PDF\" only).\n Default is: none","required":false,"default":"none","type":"String","values":["128-bit","40-bit","none"]},
		{"name":"ownerpassword","description":"Specifies an owner password (format=\"PDF\" only).","required":false,"default":"","type":"String","values":[]},
		{"name":"userpassword","description":"Specifies a user password (format=\"PDF\" only).","required":false,"default":"","type":"String","values":[]},
		{"name":"permissions","description":"Specifies one or more permissions (format=\"PDF\" only).\n Separate multiple permissions with a comma.","required":false,"default":"","type":"String","values":["AllowPrinting,AllowCopy,AllowScreenReaders","AllowPrinting","AllowModifyContents","AllowCopy","AllowModifyAnnotations","AllowFillIn","AllowScreenReaders","AllowAssembly","AllowDegradedPrinting","AllowPrinting,AllowModifyContents,AllowCopy,AllowModifyAnnotations,AllowFillIn,AllowScreenReaders,AllowAssembly,AllowDegradedPrinting"]},
		{"name":"fontembed","description":"Specifies whether ColdFusion embeds fonts in the output.\n Specify one of the following:\n - true: Embed fonts\n - false: Do not embed fonts.\n Selective: Embed all fonts except Java fonts and core fonts.","required":false,"default":true,"type":"boolean","values":[true,false]},
		{"name":"backgroundvisible","description":"Specifies whether the background prints when the\n user prints the document:\n - yes: include the background when printing.\n - no: do not include the background when printing.","required":false,"default":false,"type":"boolean","values":[true,false]},
		{"name":"scale","description":"Specifies a scale factor as a percentage. Use this\n option to reduce the size of the HTML output so that\n it fits on that paper. Specify a number less than 100.","required":false,"default":"","type":"Numeric","values":[100,90,80,70,60,50,40,30,20,10]},
		{"name":"authpassword","description":"Password sent to the target URL for Basic Authentication. \nCombined with username to form a base64 encoded string that is passed in the Authenticate header. \nDoes not provide support for Integrated Windows, NTLM, or Kerebos authentication.","required":false,"default":"","type":"String","values":[]},
		{"name":"authuser","description":"User name sent to the target URL for Basic Authentication. \nCombined with password to form a base64 encoded string that is passed in the Authenticate header. \nDoes not provide support for Integrated Windows, NTLM, or Kerebos authentication.","required":false,"default":"","type":"String","values":[]},
		{"name":"bookmark","description":"Specifies whether bookmarks are created in the document:\n * yes: creates bookmarks.\n * no: does not create bookmarks.","required":false,"default":false,"type":"Boolean","values":[true,false]},
		{"name":"localurl","description":"Specifies whether to retrieve image files directly from the local drive:\n * yes: ColdFusion retrieves image files directly from the local drive rather than by using HTTP, HTTPS, or proxy.\n * no: ColdFusion uses HTTP, HTTPS, or proxy to retrieve image files even if the files are stored locally.","required":false,"default":false,"type":"Boolean","values":[true,false]},
		{"name":"mimetype","description":"MIME type of the source document","required":false,"default":"text\/html","type":"String","values":["text\/html","text\/plain","application\/xml","image\/bmp","image\/jpeg","image\/png","image\/gif"]},
		{"name":"proxypassword","description":"Password required by the proxy server.","required":false,"default":"","type":"String","values":[]},
		{"name":"proxyuser","description":"User name to provide to the proxy server.","required":false,"default":"","type":"String","values":[]},
		{"name":"saveasname","description":"(format=\"PDF\" only) The filename that appears in the SaveAs dialog when a user saves a PDF file written to the browser.","required":false,"default":"","type":"String","values":[]},
		{"name":"src","description":"URL or the relative path to the web root. You cannot specify both the src and srcfile attributes. \nThe file must be in a browser-writable format such as, HTML, HTM, BMP, PNG, and so on.","required":false,"default":"","type":"String","values":[]},
		{"name":"srcfile","description":"Absolute path of a file that is on the server. You cannot specify both the src and srcfile attributes. \nThe file must be in a browser-writable format such as, HTML, HTM, BMP, PNG, and so on.","required":false,"default":"","type":"String","values":[]},
		{"name":"useragent","description":"Text to put in the HTTP User-Agent request header field. Used to identify the request client software.","required":false,"default":"","type":"String","values":[]},
		{"name":"proxyhost","description":"IP address or server name for proxy host.","required":false,"default":"","type":"String","values":[]},
		{"name":"proxyport","description":"port of the proxy host.","required":false,"default":"","type":"String","values":[]},
		{"name":"tagged","description":"Determines if PDF are created by using special tags also known as Tagged PDF","required":false,"default":false,"type":"Boolean","values":[true,false]},
		{"name":"pdfa","description":"Creates a PDF of type PDF\/A-1 (ISO 19005-1:2005)","required":false,"default":false,"type":"Boolean","values":[true,false]},
		{"name":"formFields","description":"Specifies whether form fields are exported as widgets or only their fixed print representation is exported.","required":false,"default":true,"type":"Boolean","values":[true,false]},
		{"name":"formsType","description":"Specifies the submitted format of a PDF form.","required":false,"default":"FDF","type":"String","values":["FDF","PDF","HTML","XML"]},
		{"name":"permissionsPassword","description":"This is the password that allows the user to access some permissions restricted if some permissions need to be restricted. The permissions are defined in \"permissions\" attribute","required":false,"default":"","type":"String","values":[]},
		{"name":"openPassword","description":"If the source document is protected specify using this attribute.","required":false,"default":"","type":"String","values":[]}

	],
	"engines": {
		"coldfusion": {"minimum_version":"7", "notes":"", "docs":"https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-tags/tags-d-e/cfdocument.html"},
		"lucee": {"minimum_version":"4.5", "notes":"", "docs":"http://docs.lucee.org/reference/tags/document.html"}
	},
	"links": [

	],
	"examples": [
		{
			"title":"Dynamic PDF Served to Browser",
			"description":"PDF is sent back to the browser instead of saving to a file. The cfheader tag is used to suggest a file name to the browser. The cfcontent tag is used to set the Content-Type response header (that could also be done using cfheader) which tells the browser that it is a PDF file.",
			"code":"<cfcontent type=\"application/pdf\">\n<cfheader name=\"Content-Disposition\" value=\"attachment;filename=example.pdf\">\n<cfdocument format=\"pdf\">\n    <h1>Hello ColdFusion</h1>\n    <p>This is <strong>PDF</strong> example document.</p>\n    <p>Genereated at: <cfoutput>#TimeFormat(Now())# on #DateFormat(Now())#</cfoutput></p>\n</cfdocument>",
			"result":"",
			"runnable":false
		}
	]

}
{'fraction_non_alphanumeric': 0.18701741784880588, 'fraction_numerical': 0.0073172921529897645, 'mean_word_length': 7.715571205007825, 'pattern_counts': {'":': 528, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1037064', 'n_tokens_mistral': 6165, 'n_tokens_neox': 5679, 'n_words': 1812}