Skip to content

Commit

Permalink
Added support for PDFreactor 11 (#89)
Browse files Browse the repository at this point in the history
* added support for PDFreactor 11

* Apply php-cs-fixer changes

* fixed tests

* Apply php-cs-fixer changes

* restore license of pdfreactor client

* Apply php-cs-fixer changes

* fix version constant for PDFreactor 10 compatibility

* Apply php-cs-fixer changes

* restore PDFreactor.class.php

* Apply php-cs-fixer changes

* restore PDFreactor.class.php

* Apply php-cs-fixer changes

* restore PDFreactor.class.php

* Apply php-cs-fixer changes

* restore PDFreactor.class.php

* Apply php-cs-fixer changes

* restore PDFreactor.class.php

* Apply php-cs-fixer changes

* restore PDFreactor.class.php

* Apply php-cs-fixer changes

* restore PDFreactor.class.php

* restore PDFreactor.class.php
  • Loading branch information
fashxp authored Nov 18, 2024
1 parent 331801e commit 0d6a215
Show file tree
Hide file tree
Showing 6 changed files with 2,632 additions and 1,450 deletions.
4 changes: 4 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
__DIR__ . '/tests/Support/_generated',
__DIR__ . '/src/Processor/Api/PDFreactor.class.php',
])

->notPath([
'Processor/Api/PDFreactor.class.php'
])
;

// do not enable self_accessor as it breaks pimcore models relying on get_called_class()
Expand Down
10 changes: 5 additions & 5 deletions doc/01_Doc_Types_and_Available_Processors.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ This bundle introduces 2 new document types:

## Available PDF Processors

| Name | Description |
|----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Chromium](https://www.chromium.org/Home/) | Convert to PDF by installing the Chromium binary or by using a dockerized chromium (via websocket) |
| [Gotenberg](https://gotenberg.dev/) | A Docker service with Chromium and LibreOffice support |
| [PDF Reactor](https://www.pdfreactor.com/) | A REST/SOAP solution, please visit the official website for further information |
| Name | Description |
|----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Chromium](https://www.chromium.org/Home/) | Convert to PDF by installing the Chromium binary or by using a dockerized chromium (via websocket) |
| [Gotenberg](https://gotenberg.dev/) | A Docker service with Chromium and LibreOffice support |
| [PDF Reactor](https://www.pdfreactor.com/) | A REST solution for rendering complex catalogs, please visit the official website for further information. Currently Pimcore supports PDFreactor 10, 11, 12 |

> For details on how to install and configure these processors, please see [Additional Tools Installation](https://pimcore.com/docs/platform/Pimcore/Installation_and_Upgrade/System_Setup_and_Hosting/Additional_Tools_Installation) page in the Core.
Expand Down
8 changes: 6 additions & 2 deletions src/Controller/SettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,14 @@ public function testWeb2printAction(Request $request): Response

if ($adapter instanceof PdfReactor) {
$params['adapterConfig'] = [
'javaScriptMode' => 0,
'javaScriptSettings' => [
'enabled' => false,
],
'addLinks' => true,
'appendLog' => true,
'enableDebugMode' => true,
'debugSettings' => [
'all' => true,
],
];
} elseif ($adapter instanceof Gotenberg) {
$params = Config::getWeb2PrintConfig();
Expand Down
Loading

0 comments on commit 0d6a215

Please sign in to comment.