-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
61 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Quick start | ||
|
||
### Run WeasyPrint in Docker | ||
|
||
Start WeasyPrint as a REST service within a Docker container, as described [here](https://github.com/SchweizerischeBundesbahnen/weasyprint-service). | ||
|
||
## Deploy PDF Exporter to Polarion | ||
|
||
Take file `ch.sbb.polarion.extension.pdf-exporter-<version>.jar` from page of [releases](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.pdf-exporter/releases) | ||
and copy it to `<polarion_home>/polarion/extensions/ch.sbb.polarion.extension.pdf-exporter/eclipse/plugins` folder. | ||
|
||
## Specify required properties in polarion.properties file | ||
|
||
Add following properties to file `polarion.properties`: | ||
|
||
```properties | ||
com.siemens.polarion.rest.enabled=true | ||
com.siemens.polarion.rest.swaggerUi.enabled=true | ||
ch.sbb.polarion.extension.pdf-exporter.weasyprint.service=http://localhost:9080 | ||
``` | ||
|
||
## Restart Polarion | ||
|
||
Restart Polarion. | ||
|
||
## Configure PDF Exporter for Live Reports | ||
|
||
On admin pane of Default Repository select menu Configuration Properties, add following line and save your changes: | ||
|
||
```properties | ||
scriptInjection.mainHead=<script src="/polarion/pdf-exporter/js/starter.js"></script> | ||
``` | ||
|
||
## Configure PDF Exporter for Live Documents | ||
|
||
On admin pane of appropriate project select menu "Documents & Pages ➙ Document Properties Sidebar", insert following new line inside `sections`-element and save your changes: | ||
|
||
```xml | ||
… | ||
<extension id="pdf-exporter" label="PDF Exporter" /> | ||
… | ||
``` | ||
|
||
## Ready to go | ||
|
||
PDF Exporter is now installed and configured. You can now open a Live Document and on Documents Sidebar you will see PDF Exporter section. Also open About page of PDF Exporter on admin pane | ||
and make sure that there are no errors in Extension configuration status table. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters