6 * Use this class to transform a html/a url to a pdf
10 * @author Matthieu Bontemps <matthieu.bontemps@knplabs.com>
11 * @author Antoine Hérault <antoine.herault@knplabs.com>
13 class Pdf
extends AbstractGenerator
18 public function __construct($binary = null, array $options = array())
20 $this->setDefaultExtension('pdf');
22 parent
::__construct($binary, $options);
28 protected function configure()
30 $this->addOptions(array(
31 'ignore-load-errors' => null, // old v0.9
38 'extended-help' => null,
43 'image-quality' => null,
45 'margin-bottom' => null,
46 'margin-left' => null,
47 'margin-right' => null,
49 'orientation' => null,
50 'output-format' => null,
51 'page-height' => null,
54 'no-pdf-compression' => null,
56 'read-args-from-stdin' => null,
58 'use-xserver' => null,
60 'dump-default-toc-xsl' => null,
61 'dump-outline' => null,
64 'outline-depth' => null,
67 'no-background' => null,
68 'checkbox-checked-svg' => null,
69 'checkbox-svg' => null,
71 'custom-header' => null,
72 'custom-header-propagation' => null,
73 'no-custom-header-propagation' => null,
74 'debug-javascript' => null,
75 'no-debug-javascript' => null,
76 'default-header' => null,
78 'disable-external-links' => null,
79 'enable-external-links' => null,
80 'disable-forms' => null,
81 'enable-forms' => null,
84 'disable-internal-links' => null,
85 'enable-internal-links' => null,
86 'disable-javascript' => null,
87 'enable-javascript' => null,
88 'javascript-delay' => null,
89 'load-error-handling' => null,
90 'disable-local-file-access' => null,
91 'enable-local-file-access' => null,
92 'minimum-font-size' => null,
93 'exclude-from-outline' => null,
94 'include-in-outline' => null,
95 'page-offset' => null,
97 'disable-plugins' => null,
98 'enable-plugins' => null,
101 'print-media-type' => null,
102 'no-print-media-type' => null,
104 'radiobutton-checked-svg' => null,
105 'radiobutton-svg' => null,
106 'run-script' => null,
107 'disable-smart-shrinking' => null,
108 'enable-smart-shrinking' => null,
109 'stop-slow-scripts' => null,
110 'no-stop-slow-scripts' => null,
111 'disable-toc-back-links' => null,
112 'enable-toc-back-links' => null,
113 'user-style-sheet' => null,
115 'window-status' => null,
117 'footer-center' => null,
118 'footer-font-name' => null,
119 'footer-font-size' => null,
120 'footer-html' => null,
121 'footer-left' => null,
122 'footer-line' => null,
123 'no-footer-line' => null,
124 'footer-right' => null,
125 'footer-spacing' => null,
126 'header-center' => null,
127 'header-font-name' => null,
128 'header-font-size' => null,
129 'header-html' => null,
130 'header-left' => null,
131 'header-line' => null,
132 'no-header-line' => null,
133 'header-right' => null,
134 'header-spacing' => null,
136 'disable-dotted-lines' => null,
137 'toc-header-text' => null,
138 'toc-level-indentation' => null,
139 'disable-toc-links' => null,
140 'toc-text-size-shrink' => null,
141 'xsl-style-sheet' => null,