commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-old / civicrm / packages / snappy / src / Knp / Snappy / Pdf.php
1 <?php
2
3 namespace Knp\Snappy;
4
5 /**
6 * Use this class to transform a html/a url to a pdf
7 *
8 * @package Snappy
9 *
10 * @author Matthieu Bontemps <matthieu.bontemps@knplabs.com>
11 * @author Antoine Hérault <antoine.herault@knplabs.com>
12 */
13 class Pdf extends AbstractGenerator
14 {
15 /**
16 * {@inheritDoc}
17 */
18 public function __construct($binary = null, array $options = array())
19 {
20 $this->setDefaultExtension('pdf');
21
22 parent::__construct($binary, $options);
23 }
24
25 /**
26 * {@inheritDoc}
27 */
28 protected function configure()
29 {
30 $this->addOptions(array(
31 'ignore-load-errors' => null, // old v0.9
32 'lowquality' => true,
33 'collate' => null,
34 'no-collate' => null,
35 'cookie-jar' => null,
36 'copies' => null,
37 'dpi' => null,
38 'extended-help' => null,
39 'grayscale' => null,
40 'help' => null,
41 'htmldoc' => null,
42 'image-dpi' => null,
43 'image-quality' => null,
44 'manpage' => null,
45 'margin-bottom' => null,
46 'margin-left' => null,
47 'margin-right' => null,
48 'margin-top' => null,
49 'orientation' => null,
50 'output-format' => null,
51 'page-height' => null,
52 'page-size' => null,
53 'page-width' => null,
54 'no-pdf-compression' => null,
55 'quiet' => null,
56 'read-args-from-stdin' => null,
57 'title' => null,
58 'use-xserver' => null,
59 'version' => null,
60 'dump-default-toc-xsl' => null,
61 'dump-outline' => null,
62 'outline' => null,
63 'no-outline' => null,
64 'outline-depth' => null,
65 'allow' => null,
66 'background' => null,
67 'no-background' => null,
68 'checkbox-checked-svg' => null,
69 'checkbox-svg' => null,
70 'cookie' => 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,
77 'encoding' => null,
78 'disable-external-links' => null,
79 'enable-external-links' => null,
80 'disable-forms' => null,
81 'enable-forms' => null,
82 'images' => null,
83 'no-images' => 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,
96 'password' => null,
97 'disable-plugins' => null,
98 'enable-plugins' => null,
99 'post' => null,
100 'post-file' => null,
101 'print-media-type' => null,
102 'no-print-media-type' => null,
103 'proxy' => 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,
114 'username' => null,
115 'window-status' => null,
116 'zoom' => 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,
135 'replace' => 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,
142 ));
143 }
144 }