You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configuration.md
+37-1Lines changed: 37 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,7 @@ sensiolabs_gotenberg:
67
67
pdf_format: null # None
68
68
pdf_universal_access: null # false
69
69
metadata: null # None
70
+
download_from: null # None
70
71
url:
71
72
header:
72
73
template: null # None
@@ -100,6 +101,7 @@ sensiolabs_gotenberg:
100
101
pdf_format: null # None
101
102
pdf_universal_access: null # false
102
103
metadata: null # None
104
+
download_from: null # None
103
105
markdown:
104
106
header:
105
107
template: null # None
@@ -133,6 +135,7 @@ sensiolabs_gotenberg:
133
135
pdf_format: null # None
134
136
pdf_universal_access: null # false
135
137
metadata: null # None
138
+
download_from: null # None
136
139
office:
137
140
landscape: null # false
138
141
native_page_ranges: null # All pages
@@ -159,13 +162,17 @@ sensiolabs_gotenberg:
159
162
quality: null # 90
160
163
reduce_image_resolution: null # false
161
164
max_image_resolution: null # 300
165
+
password: null # None
166
+
download_from: null # None
162
167
merge:
163
168
pdf_format: null # None
164
169
pdf_universal_access: null # false
165
170
metadata: null # None
171
+
download_from: null # None
166
172
convert:
167
173
pdf_format: null # None
168
174
pdf_universal_access: null # false
175
+
download_from: null # None
169
176
screenshot:
170
177
html:
171
178
width: null # 800
@@ -184,6 +191,7 @@ sensiolabs_gotenberg:
184
191
fail_on_http_status_codes: null # [499-599]
185
192
fail_on_console_exceptions: null # false
186
193
skip_network_idle_event: null # false
194
+
download_from: null # None
187
195
url:
188
196
width: null # 800
189
197
height: null # 600
@@ -201,6 +209,7 @@ sensiolabs_gotenberg:
201
209
fail_on_http_status_codes: null # [499-599]
202
210
fail_on_console_exceptions: null # false
203
211
skip_network_idle_event: null # false
212
+
download_from: null # None
204
213
markdown:
205
214
width: null # 800
206
215
height: null # 600
@@ -218,6 +227,7 @@ sensiolabs_gotenberg:
218
227
fail_on_http_status_codes: null # [499-599]
219
228
fail_on_console_exceptions: null # false
220
229
skip_network_idle_event: null # false
230
+
download_from: null # None
221
231
```
222
232
223
233
> [!TIP]
@@ -298,4 +308,30 @@ sensiolabs_gotenberg:
298
308
Whenever a controller returns something other than a `Response` object, the [`kernel.view`](https://symfony.com/doc/current/reference/events.html#kernel-view) event is fired.
299
309
That listener listen to this event and detects if it is a `GotenbergFileResult` object. If so it automatically calls the `->stream()` method to convert it to a Response object.
300
310
301
-
Enabled byd efault but can be disabled via the `sensiolabs_gotenberg.controller_listener` configuration.
311
+
Enabled by default but can be disabled via the `sensiolabs_gotenberg.controller_listener` configuration.
312
+
313
+
## Download from
314
+
315
+
> [!WARNING]
316
+
> URL of the file. It MUST return a `Content-Disposition` header with a filename parameter.
317
+
318
+
To download files resource from URLs.
319
+
320
+
``` yaml
321
+
sensiolabs_gotenberg:
322
+
default_options:
323
+
pdf:
324
+
html:
325
+
download_from:
326
+
- url: 'http://example.com/url/to/file''
327
+
extraHttpHeaders:
328
+
- name: 'MyHeader'
329
+
value: 'MyValue'
330
+
- name: 'User-Agent'
331
+
value: 'MyValue'
332
+
333
+
```
334
+
335
+
> [!TIP]
336
+
> For more information go to [Gotenberg documentations](https://gotenberg.dev/docs/routes#download-from).
If the form field reduceImageResolution is set to true, tell if all images will be reduced to the given value in DPI. Possible values are: 75, 150, 300, 600 and 1200.
0 commit comments