Skip to content

Commit

Permalink
fix: use "pdf/a-2b" as default value for "weasyprint.pdf.variant" con…
Browse files Browse the repository at this point in the history
…fig property (#253)

Refs: #249
  • Loading branch information
grigoriev authored Oct 9, 2024
1 parent d072afc commit 1923004
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@ public class PdfExporterExtensionConfiguration extends ExtensionConfiguration {
public static final String WEASYPRINT_SERVICE = "weasyprint.service";
public static final String WEASYPRINT_SERVICE_DEFAULT = "http://localhost:9080";
public static final String WEASYPRINT_PDF_VARIANT = "weasyprint.pdf.variant";
public static final String WEASYPRINT_PDF_VARIANT_DEFAULT = "pdf/a-2b";
public static final String WEBHOOKS_ENABLED = "webhooks.enabled";

public String getWeasyprintService() {
return SystemValueReader.getInstance().readString(getPropertyPrefix() + WEASYPRINT_SERVICE, WEASYPRINT_SERVICE_DEFAULT);
}

public String getWeasyprintPdfVariant() {
return SystemValueReader.getInstance().readString(getPropertyPrefix() + WEASYPRINT_PDF_VARIANT, null);
return SystemValueReader.getInstance().readString(getPropertyPrefix() + WEASYPRINT_PDF_VARIANT, WEASYPRINT_PDF_VARIANT_DEFAULT);
}

@NotNull
Expand Down

0 comments on commit 1923004

Please sign in to comment.