@@ -13,7 +13,7 @@ Add cookies to store in the Chromium cookie jar.<br />
13
13
> See: [ https://gotenberg.dev/docs/routes#cookies-chromium ] ( https://gotenberg.dev/docs/routes#cookies-chromium )
14
14
15
15
### addExtraHttpHeaders(array $headers)
16
- Adds extra HTTP headers that Chromium will send when loading the HTML< br /> document. (default None) .<br />
16
+ Adds extra HTTP headers that Chromium will send when loading the HTML document.<br />
17
17
18
18
> [ !TIP]
19
19
> See: [ https://gotenberg.dev/docs/routes#custom-http-headers-chromium ] ( https://gotenberg.dev/docs/routes#custom-http-headers-chromium )
@@ -30,13 +30,16 @@ The HTML file to convert into PDF.
30
30
31
31
### cookies(array $cookies)
32
32
### downloadFrom(array $downloadFrom)
33
- Sets download from to download each entry (file) in parallel (default None).<br />(URLs MUST return a Content-Disposition header with a filename parameter.).<br />
33
+ Sets download from to download each entry (file) in parallel (URLs MUST return a Content-Disposition header with a filename parameter.).<br />
34
+
35
+ > [ !TIP]
36
+ > See: [ https://gotenberg.dev/docs/routes#download-from ] ( https://gotenberg.dev/docs/routes#download-from )
34
37
35
38
### emulatedMediaType(Sensiolabs\GotenbergBundle\Enumeration\EmulatedMediaType $mediaType)
36
39
Forces Chromium to emulate, either "screen" or "print". (default "print").
37
40
38
41
### extraHttpHeaders(array $headers)
39
- Sets extra HTTP headers that Chromium will send when loading the HTML< br /> document. (default None) . (overrides any previous headers).<br />
42
+ Sets extra HTTP headers that Chromium will send when loading the HTML document. (overrides any previous headers).<br />
40
43
41
44
> [ !TIP]
42
45
> See: [ https://gotenberg.dev/docs/routes#custom-http-headers-chromium ] ( https://gotenberg.dev/docs/routes#custom-http-headers-chromium )
@@ -54,7 +57,7 @@ Return a 409 Conflict response if the HTTP status code from<br />the main page i
54
57
> See: [ https://gotenberg.dev/docs/routes#invalid-http-status-codes-chromium ] ( https://gotenberg.dev/docs/routes#invalid-http-status-codes-chromium )
55
58
56
59
### failOnResourceHttpStatusCodes(array $statusCodes)
57
- Return a 409 Conflict response if the HTTP status code from at least one resource is not acceptable.< br />(default None). (overrides any previous configuration).<br />
60
+ Return a 409 Conflict response if the HTTP status code from at least one resource is not acceptable. (overrides any previous configuration).<br />
58
61
59
62
> [ !TIP]
60
63
> See: [ https://gotenberg.dev/docs/routes#invalid-http-status-codes-chromium ] ( https://gotenberg.dev/docs/routes#invalid-http-status-codes-chromium )
@@ -67,35 +70,54 @@ Forces GotenbergPdf to return a 409 Conflict response if Chromium fails to load
67
70
68
71
### footer(string $template, array $context)
69
72
### footerFile(string $path)
70
- HTML file containing the footer. (default None).
73
+ HTML file containing the footer.
71
74
72
75
### forwardCookie(string $name)
73
76
### generateDocumentOutline(bool $bool)
74
- Define whether the document outline should be embedded into the PDF.
77
+ Define whether the document outline should be embedded into the PDF.<br />
78
+
79
+ > [ !TIP]
80
+ > See: [ https://gotenberg.dev/docs/routes#page-properties-chromium ] ( https://gotenberg.dev/docs/routes#page-properties-chromium )
75
81
76
- ### getBodyBag()
77
- ### getHeadersBag()
78
82
### header(string $template, array $context)
79
83
### headerFile(string $path)
80
- HTML file containing the header. (default None).
84
+ HTML file containing the header.
81
85
82
86
### landscape(bool $bool)
83
- Set the paper orientation to landscape. (Default false).
87
+ Set the paper orientation to landscape.<br />
88
+
89
+ > [ !TIP]
90
+ > See: [ https://gotenberg.dev/docs/routes#page-properties-chromium ] ( https://gotenberg.dev/docs/routes#page-properties-chromium )
84
91
85
92
### marginBottom(float $value, Sensiolabs\GotenbergBundle\Enumeration\Unit $unit)
86
- Specify bottom margin using units like 72pt, 96px, 1in, 25.4mm, 2.54cm, or 6pc. Default unit is inches if unspecified.
93
+ Specify bottom margin using units like 72pt, 96px, 1in, 25.4mm, 2.54cm, or 6pc. Default unit is inches if unspecified.<br />
94
+
95
+ > [ !TIP]
96
+ > See: [ https://gotenberg.dev/docs/routes#page-properties-chromium ] ( https://gotenberg.dev/docs/routes#page-properties-chromium )
87
97
88
98
### marginLeft(float $value, Sensiolabs\GotenbergBundle\Enumeration\Unit $unit)
89
- Specify left margin using units like 72pt, 96px, 1in, 25.4mm, 2.54cm, or 6pc. Default unit is inches if unspecified.
99
+ Specify left margin using units like 72pt, 96px, 1in, 25.4mm, 2.54cm, or 6pc. Default unit is inches if unspecified.<br />
100
+
101
+ > [ !TIP]
102
+ > See: [ https://gotenberg.dev/docs/routes#page-properties-chromium ] ( https://gotenberg.dev/docs/routes#page-properties-chromium )
90
103
91
104
### marginRight(float $value, Sensiolabs\GotenbergBundle\Enumeration\Unit $unit)
92
- Specify right margin using units like 72pt, 96px, 1in, 25.4mm, 2.54cm, or 6pc. Default unit is inches if unspecified.
105
+ Specify right margin using units like 72pt, 96px, 1in, 25.4mm, 2.54cm, or 6pc. Default unit is inches if unspecified.<br />
106
+
107
+ > [ !TIP]
108
+ > See: [ https://gotenberg.dev/docs/routes#page-properties-chromium ] ( https://gotenberg.dev/docs/routes#page-properties-chromium )
93
109
94
110
### marginTop(float $value, Sensiolabs\GotenbergBundle\Enumeration\Unit $unit)
95
- Specify top margin width using units like 72pt, 96px, 1in, 25.4mm, 2.54cm, or 6pc. Default unit is inches if unspecified.
111
+ Specify top margin width using units like 72pt, 96px, 1in, 25.4mm, 2.54cm, or 6pc. Default unit is inches if unspecified.<br />
112
+
113
+ > [ !TIP]
114
+ > See: [ https://gotenberg.dev/docs/routes#page-properties-chromium ] ( https://gotenberg.dev/docs/routes#page-properties-chromium )
96
115
97
116
### margins(float $top, float $bottom, float $left, float $right, Sensiolabs\GotenbergBundle\Enumeration\Unit $unit)
98
- Overrides the default margins (e.g., 0.39), in inches.
117
+ Overrides the default margins (e.g., 0.39), in inches.<br />
118
+
119
+ > [ !TIP]
120
+ > See: [ https://gotenberg.dev/docs/routes#page-properties-chromium ] ( https://gotenberg.dev/docs/routes#page-properties-chromium )
99
121
100
122
### metadata(array $metadata)
101
123
Resets the metadata.<br />
@@ -108,10 +130,16 @@ Resets the metadata.<br />
108
130
> See: [ https://exiftool.org/TagNames/XMP.html#pdf ] ( https://exiftool.org/TagNames/XMP.html#pdf )
109
131
110
132
### nativePageRanges(string $ranges)
111
- Page ranges to print, e.g., '1-5, 8, 11-13'. (default All pages).
133
+ Page ranges to print, e.g., '1-5, 8, 11-13'.<br />
134
+
135
+ > [ !TIP]
136
+ > See: [ https://gotenberg.dev/docs/routes#page-properties-chromium ] ( https://gotenberg.dev/docs/routes#page-properties-chromium )
112
137
113
138
### omitBackground(bool $bool)
114
- Hide the default white background and allow generating PDFs with transparency.
139
+ Hide the default white background and allow generating PDFs with transparency.<br />
140
+
141
+ > [ !TIP]
142
+ > See: [ https://gotenberg.dev/docs/routes#page-properties-chromium ] ( https://gotenberg.dev/docs/routes#page-properties-chromium )
115
143
116
144
### paperHeight(float $value, Sensiolabs\GotenbergBundle\Enumeration\Unit $unit)
117
145
Specify paper height using units like 72pt, 96px, 1in, 25.4mm, 2.54cm, or 6pc. Default unit is inches if unspecified.
@@ -127,53 +155,95 @@ Specify paper width using units like 72pt, 96px, 1in, 25.4mm, 2.54cm, or 6pc. De
127
155
Convert the resulting PDF into the given PDF/A format.
128
156
129
157
### pdfUniversalAccess(bool $bool)
130
- Enable PDF for Universal Access for optimal accessibility. (default false).
158
+ Enable PDF for Universal Access for optimal accessibility.
131
159
132
160
### preferCssPageSize(bool $bool)
133
- Define whether to prefer page size as defined by CSS. (Default false).
161
+ Define whether to prefer page size as defined by CSS.<br />
162
+
163
+ > [ !TIP]
164
+ > See: [ https://gotenberg.dev/docs/routes#page-properties-chromium ] ( https://gotenberg.dev/docs/routes#page-properties-chromium )
134
165
135
166
### printBackground(bool $bool)
136
- Prints the background graphics. (Default false).
167
+ Prints the background graphics.<br />
168
+
169
+ > [ !TIP]
170
+ > See: [ https://gotenberg.dev/docs/routes#page-properties-chromium ] ( https://gotenberg.dev/docs/routes#page-properties-chromium )
137
171
138
172
### scale(float $scale)
139
- The scale of the page rendering (e.g., 1.0). (Default 1.0).
173
+ The scale of the page rendering (e.g., 1.0).<br />
174
+
175
+ > [ !TIP]
176
+ > See: [ https://gotenberg.dev/docs/routes#page-properties-chromium ] ( https://gotenberg.dev/docs/routes#page-properties-chromium )
140
177
141
178
### setCookie(string $name, Symfony\Component\HttpFoundation\Cookie|array $cookie)
142
179
### singlePage(bool $bool)
143
180
Define whether to print the entire content in one single page.<br /><br />If the singlePage form field is set to true, it automatically overrides the values from the paperHeight and nativePageRanges form fields.
144
181
145
182
### skipNetworkIdleEvent(bool $bool)
146
183
### splitMode(?Sensiolabs\GotenbergBundle\Enumeration\SplitMode $splitMode)
147
- Either intervals or pages. (default None).
184
+ Either intervals or pages.<br />
185
+
186
+ > [ !TIP]
187
+ > See: [ https://gotenberg.dev/docs/routes#split-chromium ] ( https://gotenberg.dev/docs/routes#split-chromium )
188
+ > See: [ https://gotenberg.dev/docs/routes#split-libreoffice ] ( https://gotenberg.dev/docs/routes#split-libreoffice )
148
189
149
190
### splitSpan(string $splitSpan)
150
- Either the intervals or the page ranges to extract, depending on the selected mode. (default None).
191
+ Either the intervals or the page ranges to extract, depending on the selected mode.<br />
192
+
193
+ > [ !TIP]
194
+ > See: [ https://gotenberg.dev/docs/routes#split-chromium ] ( https://gotenberg.dev/docs/routes#split-chromium )
195
+ > See: [ https://gotenberg.dev/docs/routes#split-libreoffice ] ( https://gotenberg.dev/docs/routes#split-libreoffice )
151
196
152
197
### splitUnify(bool $bool)
153
- Specify whether to put extracted pages into a single file or as many files as there are page ranges. Only works with pages mode. (default false).
198
+ Specify whether to put extracted pages into a single file or as many files as there are page ranges. Only works with pages mode. (default false).<br />
199
+
200
+ > [ !TIP]
201
+ > See: [ https://gotenberg.dev/docs/routes#split-chromium ] ( https://gotenberg.dev/docs/routes#split-chromium )
202
+ > See: [ https://gotenberg.dev/docs/routes#split-libreoffice ] ( https://gotenberg.dev/docs/routes#split-libreoffice )
154
203
155
204
### type()
156
205
### userAgent(string $userAgent)
157
- Override the default User-Agent HTTP header. (default None). <br />
206
+ Override the default User-Agent HTTP header.<br />
158
207
159
208
> [ !TIP]
160
209
> See: [ https://gotenberg.dev/docs/routes#custom-http-headers-chromium ] ( https://gotenberg.dev/docs/routes#custom-http-headers-chromium )
161
210
162
211
### waitDelay(string $delay)
163
- Sets the duration (i.e., "1s", "2ms", etc.) to wait when loading an HTML<br />document before converting it to PDF. (default None). <br />
212
+ Sets the duration (i.e., "1s", "2ms", etc.) to wait when loading an HTML<br />document before converting it to PDF.<br />
164
213
165
214
> [ !TIP]
166
215
> See: [ https://gotenberg.dev/docs/routes#wait-before-rendering-chromium ] ( https://gotenberg.dev/docs/routes#wait-before-rendering-chromium )
167
216
168
217
### waitForExpression(string $expression)
169
- Sets the JavaScript expression to wait before converting an HTML< br /> document to PDF until it returns true. (default None) .<br /><br />For instance: "window.status === 'ready'".<br />
218
+ Sets the JavaScript expression to wait before converting an HTML document to PDF until it returns true.<br /><br />For instance: "window.status === 'ready'".<br />
170
219
171
220
> [ !TIP]
172
221
> See: [ https://gotenberg.dev/docs/routes#wait-before-rendering ] ( https://gotenberg.dev/docs/routes#wait-before-rendering )
173
222
174
223
### webhook(array $webhook)
175
224
### webhookErrorRoute(string $route, array $parameters, ?string $method)
225
+ > [ !TIP]
226
+ > See: [ https://gotenberg.dev/docs/webhook ] ( https://gotenberg.dev/docs/webhook )
227
+
176
228
### webhookErrorUrl(string $url, ?string $method)
229
+ Sets the webhook for cases of success.<br />Optionally sets a custom HTTP method for such endpoint among : POST, PUT or PATCH.<br />
230
+
231
+ > [ !TIP]
232
+ > See: [ https://gotenberg.dev/docs/webhook ] ( https://gotenberg.dev/docs/webhook )
233
+
177
234
### webhookExtraHeaders(array $extraHttpHeaders)
235
+ Extra headers that will be provided to the webhook endpoint. May it either be Success or Error.<br />
236
+
237
+ > [ !TIP]
238
+ > See: [ https://gotenberg.dev/docs/webhook ] ( https://gotenberg.dev/docs/webhook )
239
+
178
240
### webhookRoute(string $route, array $parameters, ?string $method)
241
+ > [ !TIP]
242
+ > See: [ https://gotenberg.dev/docs/webhook ] ( https://gotenberg.dev/docs/webhook )
243
+
179
244
### webhookUrl(string $url, ?string $method)
245
+ Sets the webhook for cases of success.<br />Optionally sets a custom HTTP method for such endpoint among : POST, PUT or PATCH.<br />
246
+
247
+ > [ !TIP]
248
+ > See: [ https://gotenberg.dev/docs/webhook ] ( https://gotenberg.dev/docs/webhook )
249
+
0 commit comments