Page 1 of 1
Enable Print Preview

Posted:
Sun Oct 06, 2024 2:30 am
by fa0110
Append argument "--enable-print-preview" in Before Command Line Procesing.
No effect at end of line.
Is it possible to add it at the beginning of the line?
Re: Enable Print Preview

Posted:
Sun Oct 06, 2024 8:39 am
by fa0110
I changed the append_argument command to append_switch and it was resolved.
Re: Enable Print Preview

Posted:
Sun Oct 06, 2024 9:11 am
by fa0110
Print Handler only occurs on Linux? Which event occurs on Windows?
Re: Enable Print Preview

Posted:
Sun Oct 06, 2024 10:37 am
by magreenblatt
fa0110 wrote:Print Handler only occurs on Linux?
Yes
fa0110 wrote:Which event occurs on Windows?
Event for what purpose?
Re: Enable Print Preview

Posted:
Sun Oct 06, 2024 11:06 am
by fa0110
To change settings and preferences.
landscape;
display_header_footer;
header_template;
footer_template;
page_ranges.
Re: Enable Print Preview

Posted:
Sun Oct 06, 2024 12:35 pm
by magreenblatt
Use PrintToPdf if you want to configure those settings programmatically. Otherwise, the user can configure them in the Print Preview dialog. You might also be able to configure the Print Preview defaults via the Preferences system, check the Chromium code for that.
Re: Enable Print Preview

Posted:
Sun Oct 06, 2024 2:35 pm
by fa0110
I would like to open Print Preview with the pre-configured settings.
Example:
Copies 2:
Header: No
Footer: No
cef_print_settings_t?
cef_print_settings_create()?
Example WebView2:
https://learn.microsoft.com/en-us/microsoft-edge/webview2/how-to/print?tabs=dotnetcsharp