From ffa4ace4b64357559107be7230b4b4d997f19f7d Mon Sep 17 00:00:00 2001 From: MaelBriantin Date: Wed, 16 Oct 2024 18:01:27 +0200 Subject: [PATCH] feat(page-options): add page options classes for wkhtmltopdf --- src/Backend/WkHtmlToPdf/ExtraOption/Allow.php | 24 +++++++++++++++++ .../ExtraOption/BypassProxyFor.php | 24 +++++++++++++++++ .../WkHtmlToPdf/ExtraOption/CacheDir.php | 24 +++++++++++++++++ .../WkHtmlToPdf/ExtraOption/CheckBoxSvg.php | 24 +++++++++++++++++ .../ExtraOption/CheckboxCheckedSvg.php | 24 +++++++++++++++++ .../WkHtmlToPdf/ExtraOption/Cookie.php | 24 +++++++++++++++++ .../WkHtmlToPdf/ExtraOption/CustomHeader.php | 24 +++++++++++++++++ .../ExtraOption/CustomHeaderPropagation.php | 20 ++++++++++++++ .../WkHtmlToPdf/ExtraOption/DefaultHeader.php | 20 ++++++++++++++ .../ExtraOption/DisableExternalLinks.php | 20 ++++++++++++++ .../ExtraOption/DisableInternalLinks.php | 20 ++++++++++++++ .../ExtraOption/DisableJavascript.php | 20 ++++++++++++++ .../ExtraOption/DisableSmartShrinking.php | 20 ++++++++++++++ .../WkHtmlToPdf/ExtraOption/EnableForms.php | 20 ++++++++++++++ .../ExtraOption/EnableLocalFileAccess.php | 20 ++++++++++++++ .../WkHtmlToPdf/ExtraOption/EnablePlugins.php | 20 ++++++++++++++ .../ExtraOption/EnableTocBackLinks.php | 20 ++++++++++++++ .../WkHtmlToPdf/ExtraOption/Encoding.php | 24 +++++++++++++++++ .../ExtraOption/ExcludeFromOutline.php | 18 +++++++++++++ .../ExtraOption/JavascriptDelay.php | 26 ++++++++++++++++++ .../ExtraOption/KeepRelativeLinks.php | 20 ++++++++++++++ .../ExtraOption/MinimumFontSize.php | 27 +++++++++++++++++++ .../WkHtmlToPdf/ExtraOption/NoBackground.php | 20 ++++++++++++++ .../ExtraOption/NoCustomHeaderPropagation.php | 20 ++++++++++++++ .../WkHtmlToPdf/ExtraOption/NoImages.php | 20 ++++++++++++++ .../ExtraOption/NoStopSlowScripts.php | 20 ++++++++++++++ .../WkHtmlToPdf/ExtraOption/PageOffset.php | 25 +++++++++++++++++ .../WkHtmlToPdf/ExtraOption/Password.php | 24 +++++++++++++++++ src/Backend/WkHtmlToPdf/ExtraOption/Post.php | 23 ++++++++++++++++ .../WkHtmlToPdf/ExtraOption/PostFile.php | 24 +++++++++++++++++ .../ExtraOption/PrintMediaType.php | 20 ++++++++++++++ src/Backend/WkHtmlToPdf/ExtraOption/Proxy.php | 24 +++++++++++++++++ .../ExtraOption/ProxyHostnameLookup.php | 20 ++++++++++++++ .../ExtraOption/RadioButtonSvg.php | 24 +++++++++++++++++ .../ExtraOption/RadiobuttonCheckedSvg.php | 24 +++++++++++++++++ .../WkHtmlToPdf/ExtraOption/RunScript.php | 24 +++++++++++++++++ .../WkHtmlToPdf/ExtraOption/SslCrtPath.php | 24 +++++++++++++++++ .../ExtraOption/SslKeyPassword.php | 24 +++++++++++++++++ .../WkHtmlToPdf/ExtraOption/SslKeyPath.php | 24 +++++++++++++++++ .../ExtraOption/UserStyleSheets.php | 24 +++++++++++++++++ .../WkHtmlToPdf/ExtraOption/Username.php | 24 +++++++++++++++++ .../WkHtmlToPdf/ExtraOption/ViewPortSize.php | 24 +++++++++++++++++ .../WkHtmlToPdf/ExtraOption/WindowsStatus.php | 23 ++++++++++++++++ src/Backend/WkHtmlToPdf/ExtraOption/Zoom.php | 24 +++++++++++++++++ 44 files changed, 986 insertions(+) create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/Allow.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/BypassProxyFor.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/CacheDir.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/CheckBoxSvg.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/CheckboxCheckedSvg.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/Cookie.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/CustomHeader.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/CustomHeaderPropagation.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/DefaultHeader.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/DisableExternalLinks.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/DisableInternalLinks.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/DisableJavascript.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/DisableSmartShrinking.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/EnableForms.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/EnableLocalFileAccess.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/EnablePlugins.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/EnableTocBackLinks.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/Encoding.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/ExcludeFromOutline.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/JavascriptDelay.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/KeepRelativeLinks.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/MinimumFontSize.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/NoBackground.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/NoCustomHeaderPropagation.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/NoImages.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/NoStopSlowScripts.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/PageOffset.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/Password.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/Post.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/PostFile.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/PrintMediaType.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/Proxy.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/ProxyHostnameLookup.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/RadioButtonSvg.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/RadiobuttonCheckedSvg.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/RunScript.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/SslCrtPath.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/SslKeyPassword.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/SslKeyPath.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/UserStyleSheets.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/Username.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/ViewPortSize.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/WindowsStatus.php create mode 100644 src/Backend/WkHtmlToPdf/ExtraOption/Zoom.php diff --git a/src/Backend/WkHtmlToPdf/ExtraOption/Allow.php b/src/Backend/WkHtmlToPdf/ExtraOption/Allow.php new file mode 100644 index 00000000..cb5f98b1 --- /dev/null +++ b/src/Backend/WkHtmlToPdf/ExtraOption/Allow.php @@ -0,0 +1,24 @@ +path]; + } +} \ No newline at end of file diff --git a/src/Backend/WkHtmlToPdf/ExtraOption/BypassProxyFor.php b/src/Backend/WkHtmlToPdf/ExtraOption/BypassProxyFor.php new file mode 100644 index 00000000..37ac72db --- /dev/null +++ b/src/Backend/WkHtmlToPdf/ExtraOption/BypassProxyFor.php @@ -0,0 +1,24 @@ +value]; + } +} \ No newline at end of file diff --git a/src/Backend/WkHtmlToPdf/ExtraOption/CacheDir.php b/src/Backend/WkHtmlToPdf/ExtraOption/CacheDir.php new file mode 100644 index 00000000..ad36a9d8 --- /dev/null +++ b/src/Backend/WkHtmlToPdf/ExtraOption/CacheDir.php @@ -0,0 +1,24 @@ +path]; + } +} \ No newline at end of file diff --git a/src/Backend/WkHtmlToPdf/ExtraOption/CheckBoxSvg.php b/src/Backend/WkHtmlToPdf/ExtraOption/CheckBoxSvg.php new file mode 100644 index 00000000..8df4c443 --- /dev/null +++ b/src/Backend/WkHtmlToPdf/ExtraOption/CheckBoxSvg.php @@ -0,0 +1,24 @@ +path]; + } +} \ No newline at end of file diff --git a/src/Backend/WkHtmlToPdf/ExtraOption/CheckboxCheckedSvg.php b/src/Backend/WkHtmlToPdf/ExtraOption/CheckboxCheckedSvg.php new file mode 100644 index 00000000..70b9d043 --- /dev/null +++ b/src/Backend/WkHtmlToPdf/ExtraOption/CheckboxCheckedSvg.php @@ -0,0 +1,24 @@ +path]; + } +} \ No newline at end of file diff --git a/src/Backend/WkHtmlToPdf/ExtraOption/Cookie.php b/src/Backend/WkHtmlToPdf/ExtraOption/Cookie.php new file mode 100644 index 00000000..7e586a33 --- /dev/null +++ b/src/Backend/WkHtmlToPdf/ExtraOption/Cookie.php @@ -0,0 +1,24 @@ +name, $this->value]; + } +} \ No newline at end of file diff --git a/src/Backend/WkHtmlToPdf/ExtraOption/CustomHeader.php b/src/Backend/WkHtmlToPdf/ExtraOption/CustomHeader.php new file mode 100644 index 00000000..e30c0e4b --- /dev/null +++ b/src/Backend/WkHtmlToPdf/ExtraOption/CustomHeader.php @@ -0,0 +1,24 @@ +name, $this->value]; + } +} \ No newline at end of file diff --git a/src/Backend/WkHtmlToPdf/ExtraOption/CustomHeaderPropagation.php b/src/Backend/WkHtmlToPdf/ExtraOption/CustomHeaderPropagation.php new file mode 100644 index 00000000..a268a3a6 --- /dev/null +++ b/src/Backend/WkHtmlToPdf/ExtraOption/CustomHeaderPropagation.php @@ -0,0 +1,20 @@ +encoding]; + } +} \ No newline at end of file diff --git a/src/Backend/WkHtmlToPdf/ExtraOption/ExcludeFromOutline.php b/src/Backend/WkHtmlToPdf/ExtraOption/ExcludeFromOutline.php new file mode 100644 index 00000000..85c03e42 --- /dev/null +++ b/src/Backend/WkHtmlToPdf/ExtraOption/ExcludeFromOutline.php @@ -0,0 +1,18 @@ +msec]; + } +} \ No newline at end of file diff --git a/src/Backend/WkHtmlToPdf/ExtraOption/KeepRelativeLinks.php b/src/Backend/WkHtmlToPdf/ExtraOption/KeepRelativeLinks.php new file mode 100644 index 00000000..944d4217 --- /dev/null +++ b/src/Backend/WkHtmlToPdf/ExtraOption/KeepRelativeLinks.php @@ -0,0 +1,20 @@ +size]; + } +} \ No newline at end of file diff --git a/src/Backend/WkHtmlToPdf/ExtraOption/NoBackground.php b/src/Backend/WkHtmlToPdf/ExtraOption/NoBackground.php new file mode 100644 index 00000000..60884db2 --- /dev/null +++ b/src/Backend/WkHtmlToPdf/ExtraOption/NoBackground.php @@ -0,0 +1,20 @@ +offset]; + } +} \ No newline at end of file diff --git a/src/Backend/WkHtmlToPdf/ExtraOption/Password.php b/src/Backend/WkHtmlToPdf/ExtraOption/Password.php new file mode 100644 index 00000000..1d4bbd51 --- /dev/null +++ b/src/Backend/WkHtmlToPdf/ExtraOption/Password.php @@ -0,0 +1,24 @@ +password]; + } +} \ No newline at end of file diff --git a/src/Backend/WkHtmlToPdf/ExtraOption/Post.php b/src/Backend/WkHtmlToPdf/ExtraOption/Post.php new file mode 100644 index 00000000..c85d5f8f --- /dev/null +++ b/src/Backend/WkHtmlToPdf/ExtraOption/Post.php @@ -0,0 +1,23 @@ +name, $this->value]; + } +} \ No newline at end of file diff --git a/src/Backend/WkHtmlToPdf/ExtraOption/PostFile.php b/src/Backend/WkHtmlToPdf/ExtraOption/PostFile.php new file mode 100644 index 00000000..e5532b45 --- /dev/null +++ b/src/Backend/WkHtmlToPdf/ExtraOption/PostFile.php @@ -0,0 +1,24 @@ +name, $this->value]; + } +} \ No newline at end of file diff --git a/src/Backend/WkHtmlToPdf/ExtraOption/PrintMediaType.php b/src/Backend/WkHtmlToPdf/ExtraOption/PrintMediaType.php new file mode 100644 index 00000000..8959d2a2 --- /dev/null +++ b/src/Backend/WkHtmlToPdf/ExtraOption/PrintMediaType.php @@ -0,0 +1,20 @@ +proxy]; + } +} \ No newline at end of file diff --git a/src/Backend/WkHtmlToPdf/ExtraOption/ProxyHostnameLookup.php b/src/Backend/WkHtmlToPdf/ExtraOption/ProxyHostnameLookup.php new file mode 100644 index 00000000..a109f6c4 --- /dev/null +++ b/src/Backend/WkHtmlToPdf/ExtraOption/ProxyHostnameLookup.php @@ -0,0 +1,20 @@ +path]; + } +} \ No newline at end of file diff --git a/src/Backend/WkHtmlToPdf/ExtraOption/RadiobuttonCheckedSvg.php b/src/Backend/WkHtmlToPdf/ExtraOption/RadiobuttonCheckedSvg.php new file mode 100644 index 00000000..7477d6df --- /dev/null +++ b/src/Backend/WkHtmlToPdf/ExtraOption/RadiobuttonCheckedSvg.php @@ -0,0 +1,24 @@ +path]; + } +} \ No newline at end of file diff --git a/src/Backend/WkHtmlToPdf/ExtraOption/RunScript.php b/src/Backend/WkHtmlToPdf/ExtraOption/RunScript.php new file mode 100644 index 00000000..938c1d28 --- /dev/null +++ b/src/Backend/WkHtmlToPdf/ExtraOption/RunScript.php @@ -0,0 +1,24 @@ +js]; + } +} \ No newline at end of file diff --git a/src/Backend/WkHtmlToPdf/ExtraOption/SslCrtPath.php b/src/Backend/WkHtmlToPdf/ExtraOption/SslCrtPath.php new file mode 100644 index 00000000..d514000b --- /dev/null +++ b/src/Backend/WkHtmlToPdf/ExtraOption/SslCrtPath.php @@ -0,0 +1,24 @@ +path]; + } +} \ No newline at end of file diff --git a/src/Backend/WkHtmlToPdf/ExtraOption/SslKeyPassword.php b/src/Backend/WkHtmlToPdf/ExtraOption/SslKeyPassword.php new file mode 100644 index 00000000..44282c16 --- /dev/null +++ b/src/Backend/WkHtmlToPdf/ExtraOption/SslKeyPassword.php @@ -0,0 +1,24 @@ +password]; + } +} \ No newline at end of file diff --git a/src/Backend/WkHtmlToPdf/ExtraOption/SslKeyPath.php b/src/Backend/WkHtmlToPdf/ExtraOption/SslKeyPath.php new file mode 100644 index 00000000..f2e842c3 --- /dev/null +++ b/src/Backend/WkHtmlToPdf/ExtraOption/SslKeyPath.php @@ -0,0 +1,24 @@ +path]; + } +} \ No newline at end of file diff --git a/src/Backend/WkHtmlToPdf/ExtraOption/UserStyleSheets.php b/src/Backend/WkHtmlToPdf/ExtraOption/UserStyleSheets.php new file mode 100644 index 00000000..7ec9d059 --- /dev/null +++ b/src/Backend/WkHtmlToPdf/ExtraOption/UserStyleSheets.php @@ -0,0 +1,24 @@ +path]; + } +} \ No newline at end of file diff --git a/src/Backend/WkHtmlToPdf/ExtraOption/Username.php b/src/Backend/WkHtmlToPdf/ExtraOption/Username.php new file mode 100644 index 00000000..51cc0aa0 --- /dev/null +++ b/src/Backend/WkHtmlToPdf/ExtraOption/Username.php @@ -0,0 +1,24 @@ +username]; + } +} \ No newline at end of file diff --git a/src/Backend/WkHtmlToPdf/ExtraOption/ViewPortSize.php b/src/Backend/WkHtmlToPdf/ExtraOption/ViewPortSize.php new file mode 100644 index 00000000..0cd36e04 --- /dev/null +++ b/src/Backend/WkHtmlToPdf/ExtraOption/ViewPortSize.php @@ -0,0 +1,24 @@ +viewSize]; + } +} \ No newline at end of file diff --git a/src/Backend/WkHtmlToPdf/ExtraOption/WindowsStatus.php b/src/Backend/WkHtmlToPdf/ExtraOption/WindowsStatus.php new file mode 100644 index 00000000..a2661325 --- /dev/null +++ b/src/Backend/WkHtmlToPdf/ExtraOption/WindowsStatus.php @@ -0,0 +1,23 @@ +windowsStatus]; + } +} \ No newline at end of file diff --git a/src/Backend/WkHtmlToPdf/ExtraOption/Zoom.php b/src/Backend/WkHtmlToPdf/ExtraOption/Zoom.php new file mode 100644 index 00000000..887c9586 --- /dev/null +++ b/src/Backend/WkHtmlToPdf/ExtraOption/Zoom.php @@ -0,0 +1,24 @@ +float]; + } +} \ No newline at end of file