Parameters for html2pdf
Url to call
http://html2pdf.seven49.net/html2pdf/?parameter1=x¶meter2=y etc.
Do not forget to encode your URL if you use any url_to_render with querystring! If you forget to encode the URL not all Parameters will have an effect.
Required Parameter
UrlToRender
String, a valid absolute URL to an (x)html ressource
Optional Parameters
Font
String, Examples: Helvetica, Times-Roman, Courier
FooterFontColor
String, Example: String = "255 0 0" for red (RGB), be sure to URL encode the string
FooterFontSize
Integer, Example: 9
Hint: The following "inset"-Parameters define margins.
FooterText
String, Example: Page <CurrentPage> of <TotalPages> Url: <Url>
Hint: Use the value blank if you want no text in the footer.
(do not forget to url encode the value)
FooterInsetHorizontal
Integer, Example: 40
InsetHorizontal
Integer, Example: 20
InsetVertical
Integer, Example: 40
ContentDisposition
String, valid values: "attachment", "inline"
Orientation
String, valid values: "portrait", "landscape"
MaxNrOfPages
Integer: Example: 1 --> only render the first page of the URL
ImageQuality
Integer: Values from 1 to 100 resp. 101. Default is 101 (lossless compression)
Can be used to decrease PDF files size. The smaller the value the smaller the PDF file size. A reasonable value is 75.
AddLinks
Integer: 0 (Default) = do not add links, 1 = do add links. Example: url_to_render=http://www.yahoo.com&add_links=1
FileName
String: Changes the default value for the PDF file name. Example: somefilename
Title
String: Changes the default value for the PDF Title that can be found in the PDF Properties. Example: "Your Title" (do not forget to url encode the value)
Author
String: Changes the default value for the PDF Author that can be found in the PDF Properties. Example: "John Smith" (do not forget to url encode the value)
Subject
String: Changes the default value for the PDF Subject that can be found in the PDF Properties. Example: "Your Subject" (do not forget to url encode the value)
Optional Encryption Parameters
Please be aware that not all these encryption parameters will have a real effect on your PDF (yet). For instance html form fields are not rendered as PDF form fields.
CanAssemble
Integer: 1 (Default), 0 = assembling disallowed
CanEdit
Integer: 1 (Default), 0 = content can not be edited
Hint: Defined as adding or modifying text annotations, filling in interactive form fields.
CanFillForms
Integer: 1 (Default), 0 = form fields can not be filled
CanChange
Integer: 1 (Default), 0 = content can not be changed
Hint: Defined as modifying the PDF in any way other than CanEdit, CanAssemble or CanFillForms.
CanCopy
Integer: 1 (Default), 0 = content can not be copied
CanExtract
Integer: 1 (Default), 0 = content can not be extracted
Important: If you set CanCopy and CanExtract to 0 the document is not accessible to many disabled users!
CanPrint
Integer: 1 (Default), 0 = content can not be printed
CanPrintHi
Integer: 1 (Default), 0 = content can not be printed in high resolution