You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2018/01/28 19:05:47 UTC

[camel] 04/04: CAMEL-11976: Fixed enum types for docs was wrong after upgrade

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch camel-2.19.x
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 4c717629fdfd2bd6e4423057fdbc2b3b18474046
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Sun Jan 28 20:01:23 2018 +0100

    CAMEL-11976: Fixed enum types for docs was wrong after upgrade
---
 components/camel-pdf/src/main/docs/pdf-component.adoc                   | 2 +-
 .../src/main/java/org/apache/camel/component/pdf/PdfConfiguration.java  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/components/camel-pdf/src/main/docs/pdf-component.adoc b/components/camel-pdf/src/main/docs/pdf-component.adoc
index 452f850..a65e66e 100644
--- a/components/camel-pdf/src/main/docs/pdf-component.adoc
+++ b/components/camel-pdf/src/main/docs/pdf-component.adoc
@@ -65,7 +65,7 @@ with the following path and query parameters:
 | **marginLeft** (producer) | Margin left in pixels | 20 | int
 | **marginRight** (producer) | Margin right in pixels | 40 | int
 | **marginTop** (producer) | Margin top in pixels | 20 | int
-| **pageSize** (producer) | Page size | PAGE_SIZE_A4 | PDRectangle
+| **pageSize** (producer) | Page size | A4 | PDRectangle
 | **textProcessingFactory** (producer) | Text processing to use. autoFormatting: Text is getting sliced by words then max amount of words that fits in the line will be written into pdf document. With this strategy all words that doesn't fit in the line will be moved to the new line. lineTermination: Builds set of classes for line-termination writing strategy. Text getting sliced by line termination symbol and then it will be written regardless it fits in the line or not. | lineTerminatio [...]
 | **synchronous** (advanced) | Sets whether synchronous processing should be strictly used or Camel is allowed to use asynchronous processing (if supported). | false | boolean
 |=======================================================================
diff --git a/components/camel-pdf/src/main/java/org/apache/camel/component/pdf/PdfConfiguration.java b/components/camel-pdf/src/main/java/org/apache/camel/component/pdf/PdfConfiguration.java
index a836540..fe9cdba 100644
--- a/components/camel-pdf/src/main/java/org/apache/camel/component/pdf/PdfConfiguration.java
+++ b/components/camel-pdf/src/main/java/org/apache/camel/component/pdf/PdfConfiguration.java
@@ -68,7 +68,7 @@ public class PdfConfiguration {
     private int marginRight = 40;
     @UriParam(defaultValue = "14")
     private float fontSize = 14;
-    @UriParam(defaultValue = "PAGE_SIZE_A4", enums = "PAGE_SIZE_A0,PAGE_SIZE_A1,PAGE_SIZE_A2,PAGE_SIZE_A3,PAGE_SIZE_A4,PAGE_SIZE_A5,PAGE_SIZE_A6,PAGE_SIZE_LETTER")
+    @UriParam(defaultValue = "A4", enums = "LETTER,LEGAL,A0,A1,A2,A3,A4,A5,A6")
     private PDRectangle pageSize = PDRectangle.A4;
     @UriParam(defaultValue = "Helvetica")
     private PDFont font = PDType1Font.HELVETICA;

-- 
To stop receiving notification emails like this one, please contact
davsclaus@apache.org.