This Polarion extension provides possibility to convert Polarion Documents to PDF files. This is an alternative to native Polarion's solution. The extension uses WeasyPrint as a PDF engine and requires it to run in Docker as Service.
Important
Starting from version 8.0.0 only latest version of Polarion is supported. Right now it is Polarion 2606.
Important
Please, read our disclaimer before using this extension.
Please see separate quick start page where briefly summarized all most important and applicable steps and configurations.
If you need deeper knowledge about all possible steps, configurations and their descriptions, please see sections below.
This extension supports the use of WeasyPrint as a REST service within a Docker container, as implemented here.
To change WeasyPrint Service URL, adjust the following property in the polarion.properties file:
ch.sbb.polarion.extension.pdf-exporter.weasyprint.service=http://localhost:9080
The WeasyPrint service can require an API key, which it does as soon as it is started with API_KEY set.
The extension then has to send that key, and it reads it from Polarion's secrets manager.
The key itself is never written into polarion.properties. The property holds the name of a secret:
ch.sbb.polarion.extension.pdf-exporter.weasyprint.apiKeySecret=weasyprint-api-key
Store the key under that name in the secrets manager of the Polarion installation. The properties file, its backups and the About page then carry a name, not a credential.
An unset or empty property sends no key, which is what a service started without API_KEY expects.
The key is only sent over https. Where a key is configured and weasyprint.service names a plain
http address, the export is refused instead: a key is a reusable credential, and on plain http
everyone on the path keeps a copy of it. Give the service an https address, or clear the property
where the service needs no key. Without a key nothing changes, http keeps working as before, and
the rule holds for localhost too, since a certificate is what proves the transport rather than the
address. The About page reports this combination before anyone exports, because the version endpoint
carries no key and would otherwise look healthy.
Five failures are reported apart, since each one has a different fix:
| What the export says | What to do |
|---|---|
| requires an API key, none is configured | name the secret in the property above |
| could not read the WeasyPrint API key from the Polarion secret | check that the secret is readable for the Polarion process |
| is empty or does not exist | store a non-empty key under that secret name |
| rejected the configured API key | check the secret holds the key the service was started with |
| not sent over plain http | name the service with an https address |
sections-element:
…
<sections>
<section id="fields"/>
…
</sections>
…
…
<extension id="pdf-exporter" label="PDF Exporter" />
…
Alternatively you can configure PDF Exporter such a way that a button to open the PDF Exporter view appears in the document editor's toolbar.
scriptInjection.dleEditorHead=<script src="/polarion/pdf-exporter/js/dle-toolbar.js"></script>
This adds the button into Polarion's native document toolbar. The button is re-injected automatically when Polarion re-renders the toolbar (for example when the document is saved), so it stays in place.Tip
Adding more than one toolbar button. scriptInjection.dleEditorHead is a single Polarion-wide property that holds exactly one value. To show several buttons in the document editor (for example the PDF, DOCX and StrictDoc exporters together, or this button alongside any other injected script), do not add separate scriptInjection.dleEditorHead= lines — the last one overrides the rest. Concatenate all the <script> tags into that single value instead:
scriptInjection.dleEditorHead=<script src="/polarion/pdf-exporter/js/dle-toolbar.js"></script><script src="/polarion/docx-exporter/js/dle-toolbar.js"></script><script src="/polarion/strictdoc-exporter/js/dle-toolbar.js"></script>
The explicit PdfExporterStarter.injectToolbar(...) configuration still works but is deprecated in favor of the single-tag dle-toolbar.js form above (removal is planned for a future major version):
# Button in Polarion's native document toolbar — equivalent to the recommended dle-toolbar.js form above.
scriptInjection.dleEditorHead=<script src="/polarion/pdf-exporter/js/starter.js"></script><script>PdfExporterStarter.injectToolbar({alternate: true});</script>
# A separate toolbar with the button placed above the document editing area.
scriptInjection.dleEditorHead=<script src="/polarion/pdf-exporter/js/starter.js"></script><script>PdfExporterStarter.injectToolbar();</script>
Live Reports also can be converted to PDF with help of this extension.
First of all you need to inject appropriate JavaScript code into Polarion:
scriptInjection.mainHead=<script src="/polarion/pdf-exporter/js/live-reports.js"></script>
Note
scriptInjection.mainHead is a single Polarion-wide property that holds exactly one value. If you also inject other scripts through it, concatenate all the <script> tags into that one value rather than adding separate scriptInjection.mainHead= lines — the last one overrides the rest.
The explicit starter.js form still works but is deprecated in favor of the single-tag live-reports.js form above (removal is planned for a future major version):
scriptInjection.mainHead=<script src="/polarion/pdf-exporter/js/starter.js"></script>
With the script injected, open a project and the Live Report you wish to export, then click "Expand Tools" on top of the page. An "Export to PDF" button appears in the report's toolbar (view mode only) — click it to open the PDF Exporter view in a popup and proceed with exporting the report. Be aware that in report's context limited set of properties are available for configuration in PDF popup, the rest of them are relevant only in Live Document context.
Polarion collapses the report toolbar again on every page open. To keep it always expanded (so the "Export to PDF" button is permanently visible), opt in with the data-expand-tools attribute:
scriptInjection.mainHead=<script src="/polarion/pdf-exporter/js/live-reports.js" data-expand-tools="true"></script>
Alternatively (the pre-v13.5 way, still supported), the "Export to PDF Button" widget can be embedded into the report itself: click "Edit" in the report's toolbar, add an empty region on top of the report, place the cursor there, choose "PDF Export" tag on "Widgets" sidebar on right hand side of the page, find "Export to PDF Button" widget there and click it to add to the report. Then save the report clicking 💾 in a toolbar and return to view mode clicking "Back". The widget's button opens the same popup as the toolbar button.
For better problem analyses extended logging can be configured in Polarion. By default, Polarion log level is set to INFO. It can be changed to debug in log4j2.xml file.
Find /opt/polarion/polarion/plugins/com.polarion.core.util_<version>/log4j2.xml file and add the following line into Loggerssection:
<Logger name="ch.sbb.polarion.extension" level="debug"/>
It is also possible to write all messages of SBB extensions info separate log file which can be useful to report a problem. In this case new Appender should be added:
<RollingFile name="SBB" fileName="${sys:logDir}/log4j-sbb${fileNameSuffix}" filePattern="${sys:logDir}/log4j-sbb${filePatternSuffix}">
<PatternLayout pattern="${layoutPattern}"/>
<Policies>
<TimeBasedTriggeringPolicy interval="1"/>
</Policies>
</RollingFile>
and the following Logger:
<Logger name="ch.sbb.polarion.extension" level="debug">
<AppenderRef ref="SBB"/>
</Logger>
Cross-Origin Resource Sharing could be enabled using standard configuration of Polarion REST API. In polarion.properties the following lines should be added:
com.siemens.polarion.rest.enabled=true
com.siemens.polarion.rest.cors.allowedOrigins=http://localhost:8888,https://anotherdomain.com
By default, webhooks functionality is not enabled in PDF Exporter. If you want to make it available the following line should be added in polarion.properties:
ch.sbb.polarion.extension.pdf-exporter.webhooks.enabled=true
The exporter can embed certain file types as full-size images (raster formats, SVG, convertible diagrams like Visio).
For these file extensions the thumbnail query parameter is stripped so Polarion returns the full-size resource instead of an icon preview.
All other attachment types (spreadsheets, documents, archives, unknown formats) keep thumbnail so Polarion returns a small icon that can be shown inside an <img> tag.
The default set of renderable image extensions is: png, jpg, jpeg, gif, bmp, svg, webp, avif, ico, cur, tif, tiff, vsdx.
To override this list, adjust the following property in the polarion.properties file:
ch.sbb.polarion.extension.pdf-exporter.renderable.image.extensions=png, jpg, jpeg, gif, bmp, svg, webp, avif, ico, cur, tif, tiff, vsdx
A document can reference an image, a font or a stylesheet by an absolute URL. The extension loads such a
resource and embeds it into the exported PDF. Because a document editor controls that URL, the request is
restricted. By default the extension rejects every address which is not public: loopback, private ranges,
link local addresses including the cloud metadata address 169.254.169.254, and their IPv6 equivalents.
The Polarion server itself, as configured by base.url, always stays reachable.
To load resources from an internal host, list its origin explicitly:
ch.sbb.polarion.extension.pdf-exporter.externalResources.allowedOrigins=cdn.intranet,https://images.intranet:8443
An entry is written [scheme://]host[:port], and what it leaves out is not compared:
| Entry | What it allows |
|---|---|
cdn.intranet |
that host under either scheme, on any port |
cdn.intranet:8443 |
that host on port 8443, under either scheme |
https://cdn.intranet |
that host under https, on port 443 |
https://cdn.intranet:8443 |
that host under https, on port 8443 |
A reference written //host/path takes the scheme of base.url first and the other one after, so it
reaches the host under whichever scheme an entry names.
The policy itself can be changed. The value is one of these three names, written exactly so:
# BLOCK_INTERNAL (default) - public addresses, the Polarion server and the allowed origins
# ALLOWLIST_ONLY - only the Polarion server and the allowed origins
# ALLOW_ALL - no restriction, this exposes the server's network to document editors
ch.sbb.polarion.extension.pdf-exporter.externalResources.policy=ALLOWLIST_ONLY
A loaded resource must be served as an image, a font or a stylesheet. Where the sender says nothing about
the content, or calls it application/octet-stream, the content itself decides and must be recognizable as
one of the three: a text of any other kind is refused, and so is a body nothing could be detected in.
A resource may not exceed 16 MB. To change the size limit:
ch.sbb.polarion.extension.pdf-exporter.externalResources.maxSizeMB=32
A stylesheet which names an address that nothing in it accounts for is dropped whole, and the log says
which one. That is the fail-closed direction: such an address would be read by the conversion service
itself. A custom property holding an address, --api: https://service.example, is such a case, so a
stylesheet using one loses its styling in the export.
A CSS @import is removed, whatever it names and wherever it stands. An at-rule cannot be embedded,
so WeasyPrint would have to load it itself, past every check above. Reference such a stylesheet
with a <link rel="stylesheet"> instead, the extension loads and embeds that one.
A configured JVM proxy (http.proxyHost and friends) is used for these requests. A proxy resolves the
host name itself, so a request routed through one cannot be pinned to a checked address. Such a request
is therefore only made for a host the configuration trusts as such: the Polarion server and the origins
listed above. Everything else is loaded directly, with the address check binding, or not at all. Hosts
in http.nonProxyHosts are loaded directly and keep the address check.
Note what this costs: where a proxy is configured for every destination, BLOCK_INTERNAL behaves
as ALLOWLIST_ONLY, since a proxied request is made only for the Polarion server and the origins
listed above.
A SOCKS proxy needs no such gate. It is no route the client plans, the JVM applies it at the socket, and the socket is connected to the address the check approved, not to a host name the proxy would resolve. So a request does traverse the SOCKS proxy, and its destination is still the vetted address.
Blocked resources are reported in the Polarion log. The document is exported without them.
This extension makes intensive HTML processing to extend similar standard Polarion functionality. There is a possibility to log
original and resulting HTML to see potential problems in this processing. This logging can be switched on (true value)
and off (false value) with help of following property in file polarion.properties:
ch.sbb.polarion.extension.pdf-exporter.debug=true
If HTML logging is switched on, then in standard polarion log file there will be following lines:
2023-09-20 08:42:13,911 [ForkJoinPool.commonPool-worker-2] INFO util.ch.sbb.polarion.extension.pdf_exporter.util.HtmlLogger - Original HTML fragment provided by Polarion was stored in file /tmp/pdf-exporter10000032892830031969/original-4734772539141140796.html
2023-09-20 08:42:13,914 [ForkJoinPool.commonPool-worker-2] INFO util.ch.sbb.polarion.extension.pdf_exporter.util.HtmlLogger - Final HTML page obtained as a result of PDF exporter processing was stored in file /tmp/pdf-exporter10000032892830031969/processed-5773281490308773124.html
2023-09-20 08:42:14,015 [ForkJoinPool.commonPool-worker-2] INFO util.ch.sbb.polarion.extension.pdf_exporter.util.HtmlLogger - Timing report was stored in file /tmp/pdf-exporter10000032892830031969/timing-report-1234567890.txt
Here you can find out in which files HTML and timing report were stored.
When debug mode is enabled, a detailed timing report is generated showing the duration of each PDF generation stage. This helps identify performance bottlenecks. The report includes:
It is possible to configure the workflow function which exports a PDF file and attaches it to a newly created or already existing work item.
To create workflow functions do following:
Edit or Create button for it.archive (or create a new one) and click Edit for it.Close.
Then again Close on previous popup and finally Save when you will be back on Workflow Designer page.Supported function parameters:
| Parameter | Required | Description | Default value |
|---|---|---|---|
| existing_wi_id | yes (*) | Workitem ID to reuse | - |
| create_wi_type_id | yes (*) | Type ID of workitem to create | - |
| create_wi_title | no | Value to set as a workitem title (used only with 'create_wi_type_id') | Value like "modified document title with space -> target status name" (e.g., "Specification / Product Specification -> Archived") |
| create_wi_description | no | Value to set as a workitem description (used only with 'create_wi_type_id') | "This item was created automatically. Check 'Attachments' section for the generated PDF document." |
| project_id | no | Project ID where to create or search for the target work item | Project ID of the modified document |
| attachment_title | no | The title of the attached file | The name of the generated file (without '.pdf' at the end) |
| style_package | no | The name of the style package to use | Default |
| prefer_last_baseline | no | Use the last baseline revision instead of the last document's revision | false |
| (*) - either 'existing_wi_id' or 'create_wi_type_id' parameter required. | |||
| Providing the first one means reuse already existing workitem to attach the file whereas the second will create a new workitem with the specified type. | |||
| In case if both of them specified 'existing_wi_id' has higher priority. |
PDF Export. There are expandable sub-menus with different configuration options for PDF Exporter.Quick Help section available with short description of appropriate option. For the rest
(Style package, Style package weights, CSS) there's no Quick Help section as their content is self-evident.Save button.By default a project offers its own style packages plus the ones defined on the global level. Section
Style Package of the administration pages carries a Change visibility button next to Add new. It opens
a dialog which explains the two levels, offers the switch Hide style packages defined on the global level
and stores it with Change. The switch is off - the behavior described above - unless an administrator
ticks it. It is a configuration of its own, above all style packages of the scope, so it belongs to no
single style package.
With the switch on for a project:
Style Package and Style Package Weights.Default is offered.The style package named Default can never be missing. While a project that hides the global level has no
Default of its own, that name stands for the built-in values of the extension - not for the Default of the
global level, which is hidden like every other style package there. Save a Default on the project to decide
what it contains.
Ticked on the global scope the switch applies to every project which does not set it itself, which makes it the installation-wide default. The global scope keeps listing its own style packages.
If you export PDF to be printed as a booklet, then you may need to alternate blocks in header/footer depending on the fact if it's even or odd page. This can be achieved (since version 8.1.0) by CSS modification. Let us give you an example. Find following definition in standard CSS of the extension:
@page :left {
@top-left {
content: element(top-left);
}
@top-right {
content: element(top-right);
}
@bottom-left {
content: element(bottom-left);
}
@bottom-right {
content: element(bottom-right);
}
}
...and replace it by this code:
@page :left {
@top-left {
content: element(top-right);
}
@top-right {
content: element(top-left);
}
@bottom-left {
content: element(bottom-right);
}
@bottom-right {
content: element(bottom-left);
}
}
As a result blocks in header and footer which in normal case are displayed at right side of the header/footer will be displayed at left side and vice versa. This is only an example to illustrate an idea, if your use case is different feel free to modify this code according to your requirements.
PDF Exporter block and click Export to PDF.
For the options details please refer user guide.This extension provides REST API. OpenAPI Specification can be obtained here.
This extension provides REST API to export PDF asynchronously. Using this API, it is possible to start export job, observe their status and get result.
Finished (succeed or failed) and in-progress export jobs will be preserved in memory until configured timeout. To change this timeout, adjust the following property in the local pdf-converter-jobs.properties file:
# Timeout in minutes to keep finished async conversion jobs results in memory
jobs.timeout.finished.minutes=30
# Timeout in minutes to wait until async conversion jobs is finished
jobs.timeout.in-progress.minutes=60
The weasyprint-service container requires a minimum of 2 GB of memory. Actual consumption depends on document size, images, and concurrency.
Benchmarks (generated Polarion documents):
| Document | Work Items | Images | Peak RAM | PDF Size |
|---|---|---|---|---|
| Small with images | 500 | 0–2 random SVG per WI (100–300 px) | 1.8 GB | 1.0 MB |
| Large without images | ~2000 | none | 2.6 GB | 4.3 MB |
| Large with images | ~2000 | 1 SVG per WI (1920×1080 px) | 2.8 GB | 18 MB |
Each concurrent conversion requires additional memory proportional to the values above. For example, 3 concurrent conversions of large documents with images: approximately 1.7 + 3 × 1.2 ≈ 5.3 GB.
After a conversion completes, container memory (RSS) may not decrease — this is normal Python/glibc behavior, not a leak. To reclaim memory after traffic spikes, enable RECLAIM_MEMORY_AFTER_CONVERSION=true in weasyprint-service (runs gc.collect + malloc_trim after each conversion). See weasyprint-service README for details.
See also Limitations and workarounds for content-specific, by-design behaviour and the settings and workarounds you can apply to adjust it.
PDF/A "A" (accessible) variants require that characters from Unicode Private Use Area (PUA) have ActualText entries for accessibility.
Icon fonts like FontAwesome use PUA codepoints, which causes validation failures with VeraPDF for:
pdf/a-1apdf/a-2apdf/a-3aWorkaround: If your documents contain icon fonts (e.g., FontAwesome icons from Polarion), use "B" or "U" variants instead:
pdf/a-1b instead of pdf/a-1apdf/a-2b or pdf/a-2u instead of pdf/a-2apdf/a-3b or pdf/a-3u instead of pdf/a-3aWhen exporting documents with comments rendered as native PDF annotations (sticky notes), the resulting PDF will fail PDF/A validation. This affects all PDF/A variants (pdf/a-1*, pdf/a-2*, pdf/a-3*, pdf/a-4*).
VeraPDF reports the following errors for PDF/A-2b:
6.2.10-2 - Annotation appearance stream missing6.1.3-1 - Info dictionary issues6.2.4.3-2 - OutputIntent issues6.3.2-1 - Font embedding issues6.6.2.1-1 - Annotation flags issuesThis happens because PDF/A standards require all annotations to have complete appearance streams (AP entry with N key), which WeasyPrint-generated sticky notes do not provide.
Workaround: If you need PDF/A-compliant documents with comments, use inline comment rendering (disable "as sticky notes" option). Inline comments are rendered as regular HTML content and do not affect PDF/A compliance.
WeasyPrint 67.0 has incomplete support for PDF/UA-2 (ISO 14289-2:2024). The following issues are known:
| Issue | Description | Status |
|---|---|---|
| Structure destinations | Internal links must use structure destinations instead of page destinations (clause 8.8) | Requires WeasyPrint fix |
| PDF 2.0 namespace | Document element requires PDF 2.0 namespace (clause 8.2.5.2) | Requires WeasyPrint fix |
| Document-Span restriction | Document shall not contain Span directly (ISO 32005:2023) | Requires WeasyPrint fix |
| ListNumbering attribute | Lists with Lbl elements require ListNumbering attribute (clause 8.2.5.25) | Requires WeasyPrint fix |
The pdfuaid:rev metadata issue (four-digit year requirement) is fixed automatically via post-processing.
Workaround: Use pdf/ua-1 instead of pdf/ua-2 if full PDF/UA compliance is required.
WeasyPrint 67.0 introduced breaking changes in PDF variant support:
Removed variant:
pdf/a-4b - no longer supported by WeasyPrint 67.0New variants added:
pdf/a-1a - Accessible PDF/A-1 (tagged, Unicode)pdf/a-2a - Accessible PDF/A-2 (tagged, Unicode, modern features)pdf/a-3a - Accessible PDF/A-3 (tagged, Unicode, file attachments)pdf/a-4e - PDF/A-4 for engineering documents (allows 3D, RichMedia)pdf/a-4f - PDF/A-4 with embedded files (requires attachments in document)pdf/ua-2 - Accessible PDF for assistive technologies (ISO 14289-2:2024) - partial support, see LimitationsPost-processing applied automatically:
The extension applies post-processing to ensure PDF/A and PDF/UA compliance:
| PDF Variant | Post-processing |
|---|---|
| PDF/A-1a, PDF/A-1b | Removes transparency masks (SMask, Mask) from images; adds RoleMap for TBody, THead, TFoot structure types; conformance level passed to processor |
| PDF/A-4e, PDF/A-4f, PDF/A-4u | Sets PDF version to 2.0; fixes pdfaid:rev to "2020"; ensures OutputIntent; handles conformance level |
| PDF/UA-2 | Fixes pdfuaid:rev to "2024" |
Migration steps:
pdf/a-4b variant, switch to pdf/a-4f or pdf/a-4e insteadPDF_A_4B to use PDF_A_4F or PDF_A_4Epdf/a-4f requires documents to have attachments (embedded files) per ISO 19005-4:2020 clause 6.9In version 12.0.0 Font Awesome has been upgraded from version 4.0.3 to version 6.2.0 to support Polarion 2512.
What changed:
/polarion/ria/fontawesome-6.2.0/css/all.min.css instead of /polarion/ria/font-awesome-4.0.3/css/font-awesome.cssAction required:
If you have custom CSS settings that include Font Awesome 4 @font-face definitions, you need to update them to Font Awesome 6:
/* Old Font Awesome 4 (remove this) */
@font-face {
font-family: 'FontAwesome';
src: url('/polarion/ria/font-awesome-4.0.3/fonts/fontawesome-webfont.woff') format('woff'),
url('/polarion/ria/font-awesome-4.0.3/fonts/fontawesome-webfont.ttf') format('truetype');
}
/* New Font Awesome 6 (add this) */
@font-face {
font-family: 'Font Awesome 6 Free';
font-style: normal;
font-weight: 900;
src: url('/polarion/ria/fontawesome-6.2.0/webfonts/fa-solid-900.woff2') format('woff2'),
url('/polarion/ria/fontawesome-6.2.0/webfonts/fa-solid-900.ttf') format('truetype');
}
@font-face {
font-family: 'Font Awesome 6 Free';
font-style: normal;
font-weight: 400;
src: url('/polarion/ria/fontawesome-6.2.0/webfonts/fa-regular-400.woff2') format('woff2'),
url('/polarion/ria/fontawesome-6.2.0/webfonts/fa-regular-400.ttf') format('truetype');
}
@font-face {
font-family: 'Font Awesome 6 Brands';
font-style: normal;
font-weight: 400;
src: url('/polarion/ria/fontawesome-6.2.0/webfonts/fa-brands-400.woff2') format('woff2'),
url('/polarion/ria/fontawesome-6.2.0/webfonts/fa-brands-400.ttf') format('truetype');
}
Due to a conflict of HTML elements' IDs in default cover page templates, their HTML/CSS were modified to make IDs more unique and to replace IDs by classes where relevant. If you ever created your custom cover page templates based on default ones, you can be interested in revising these changes and replicate them in your custom templates. Otherwise, if you always used either default template(-s) or/and custom templates not inherited from default ones, no additional actions required.
In version 9.0.0 support for Polarion 2410 and older has been dropped. This extension supports only Polarion 2506.
PDF variant configuration has been moved to style package instead of using configuration properties.
Sections Cover page, CSS, Header and Footer, Filename template were modified to split custom values (provided by user) and default values (provided by application, which can't be modified by user). For a smooth migration from previous version we consider all already stored settings as custom, even if they contained default values, not to erase all your already stored settings. Be aware that you'll need to tidy this up, storing explicitly either your custom values or switching to use default values.
In version 8.0.0 support for Polarion 2404 and older has been dropped. This extension supports only Polarion 2410. Recommended version of WeasyPrint Service is 63.1.0.
In version 7.0.0 /export-filename REST API endpoint changed. As a result, if the endpoint has been used, it's required to adjust the calls accordingly.
DocumentType enum in ExportParams has been changed. As a result, if enum values have been used, it's required to adjust the calls accordingly.
Main package has been renamed from ch.sbb.polarion.extension.pdf.exporter to ch.sbb.polarion.extension.pdf_exporter. As a result, if the extension has been used in another OSGi bundles, it's required to adjust the package imports accordingly.
There was also added a CSS fragment for better display of Test Run pages in PDF, please add this fragment to your CSS definitions if they differ from default one, or update your CSS definitions via UI clicking button "Default" and later saving it. Here is this fragment:
#polarion-rp-widget-content > .polarion-TestRunOverviewWidget-table > tbody > tr > td:first-child {
width: 46% !important;
}
.polarion-TestRunOverviewWidget-buttonName {
padding-top: 20px;
}
In version 7.1.0 the property ch.sbb.polarion.extension.pdf-exporter.internalizeExternalCss has been removed. polarion.properties should be updated accordingly.
In version 6.0.0 WeasyPrint CLI support was removed. As a result, if WeasyPrint CLI has been using to generate PDFs, it's required to switch to WeasyPrint Service.
The configuration properties ch.sbb.polarion.extension.pdf-exporter.weasyprint.connector and ch.sbb.polarion.extension.pdf-exporter.weasyprint.executable have been removed due to the removal of WeasyPrint CLI support. polarion.properties should be updated accordingly.
In version 5.0.0 not only label of configuration parameter "Fit images and tables to page width" was modified to be "Fit images and tables to page", but also underlying parameter was renamed to reflect this change. As a result if you had "Fit images and tables to page width" ticked in your configuration prior to version 5.0.0, after installation of this version you will have to go to configuration again and re-tick property "Fit images and tables to page", both on global repository level and on level of projects.
Another change is default CSS which was modified to reflect different possible paper sizes as well as additional styling for images to jump into next page if they can't be fully displayed on current one. Thus please either reset your saved CSS into last version if you didn't have your own CSS definitions or merge your saved version with new default version.