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

nferraro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 353d180968b2a63823a4ed5427eccf9def4b6598
Author: Andrea Cosentino <[email protected]>
AuthorDate: Wed Apr 14 18:21:04 2021 +0200

    Added a PDF Action Kamelet
---
 pdf-action.kamelet.yaml | 44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

diff --git a/pdf-action.kamelet.yaml b/pdf-action.kamelet.yaml
new file mode 100644
index 0000000..a3293ea
--- /dev/null
+++ b/pdf-action.kamelet.yaml
@@ -0,0 +1,44 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+  name: pdf-action
+  annotations:
+    camel.apache.org/kamelet.icon: 
"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPg0KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCINCgkgdmlld0JveD0iMCAwIDMwMy4xODggMzAzLjE4OCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW
 [...]
+    camel.apache.org/provider: "Apache Software Foundation"
+  labels:
+    camel.apache.org/kamelet.type: "action"
+spec:
+  definition:
+    title: "PDF Action"
+    description: |-
+      Create a PDF
+    required:
+      - font
+      - fontSize
+      - pageSize
+    properties:
+      font:
+        title: Font
+        description: The font to use while generating the PDF. One of Courier, 
Courier-Bold, Courier-Oblique, Courier-BoldOblique, Helvetica, Helvetica-Bold, 
Helvetica-Oblique, Helvetica-BoldOblique, Times-Roman, Times-Bold, 
Times-Italic, Times-BoldItalic, Symbol, ZapfDingbats
+        type: string
+        default: Helvetica
+      fontSize:
+        title: Font Size
+        description: The Font size to use while generating the PDF
+        type: string
+        default: 14.0
+      pageSize:
+        title: Page Size
+        description: The Page size to use while generating the PDF. One of 
LETTER, LEGAL, A0, A1, A2, A3, A4, A5, A6
+        type: string
+        default: A4
+  flow:
+    from:
+      uri: "kamelet:source"
+      steps:
+      - to:
+          uri: "pdf://create"
+          parameters:
+            font: "{{font}}"
+            fontSize: "{{fontSize}}"
+            pageSize: "{{pageSize}}"

Reply via email to