Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a friendly configurations #22

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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