Skip to content

Commit

Permalink
Update configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenRenaux committed Mar 11, 2024
1 parent 662f097 commit e39a8dc
Show file tree
Hide file tree
Showing 8 changed files with 534 additions and 292 deletions.
4 changes: 3 additions & 1 deletion config/services.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
$services->set('sensiolabs_gotenberg', Gotenberg::class)
->args([
service('sensiolabs_gotenberg.client'),
abstract_arg('chromium configuration options'),
abstract_arg('html configuration options'),
abstract_arg('url configuration options'),
abstract_arg('markdown configuration options'),
abstract_arg('office configuration options'),
service('sensiolabs_gotenberg.asset.base_dir_formatter'),
service('twig')->nullOnInvalid(),
Expand Down
94 changes: 69 additions & 25 deletions docs/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,75 @@ The default configuration for the bundle looks like :
base_uri: 'http://localhost:3000'
base_directory: '%kernel.project_dir%'
default_options:
pdf_format: null # None
pdf_universal_access: null # false
default_chromium_options:
paper_width: null # 8.5
paper_height: null # 11
margin_top: null # 0.39
margin_bottom: null # 0.39
margin_left: null # 0.39
margin_right: null # 0.39
prefer_css_page_size: null # false
print_background: null # false
omit_background: null # false
landscape: null # false
scale: null # 1.0
native_page_ranges: null # All pages
wait_delay: null # None
wait_for_expression: null # None
emulated_media_type: null # 'print'
user_agent: null # None
extra_http_headers: null # None
fail_on_console_exceptions: null # false
default_office_options:
landscape: null # false
native_page_ranges: null # All pages
merge: null # false
html:
paper_width: null # 8.5
paper_height: null # 11
margin_top: null # 0.39
margin_bottom: null # 0.39
margin_left: null # 0.39
margin_right: null # 0.39
prefer_css_page_size: null # false
print_background: null # false
omit_background: null # false
landscape: null # false
scale: null # 1.0
native_page_ranges: null # All pages
wait_delay: null # None
wait_for_expression: null # None
emulated_media_type: null # 'print'
user_agent: null # None
extra_http_headers: null # None
fail_on_console_exceptions: null # false
pdf_format: null # None
pdf_universal_access: null # false
url:
paper_width: null # 8.5
paper_height: null # 11
margin_top: null # 0.39
margin_bottom: null # 0.39
margin_left: null # 0.39
margin_right: null # 0.39
prefer_css_page_size: null # false
print_background: null # false
omit_background: null # false
landscape: null # false
scale: null # 1.0
native_page_ranges: null # All pages
wait_delay: null # None
wait_for_expression: null # None
emulated_media_type: null # 'print'
user_agent: null # None
extra_http_headers: null # None
fail_on_console_exceptions: null # false
pdf_format: null # None
pdf_universal_access: null # false
markdown:
paper_width: null # 8.5
paper_height: null # 11
margin_top: null # 0.39
margin_bottom: null # 0.39
margin_left: null # 0.39
margin_right: null # 0.39
prefer_css_page_size: null # false
print_background: null # false
omit_background: null # false
landscape: null # false
scale: null # 1.0
native_page_ranges: null # All pages
wait_delay: null # None
wait_for_expression: null # None
emulated_media_type: null # 'print'
user_agent: null # None
extra_http_headers: null # None
fail_on_console_exceptions: null # false
pdf_format: null # None
pdf_universal_access: null # false
office:
landscape: null # false
native_page_ranges: null # All pages
merge: null # false
pdf_format: null # None
pdf_universal_access: null # false
.. caution::

Expand Down
Loading

0 comments on commit e39a8dc

Please sign in to comment.