Skip to content

Commit 2459097

Browse files
committed
Move PDF actions to separate file
1 parent 5d25bda commit 2459097

File tree

3 files changed

+25
-20
lines changed

3 files changed

+25
-20
lines changed

actions/documents.cherri

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -105,23 +105,10 @@ enum fileSizeFormat {
105105

106106
/* Printing */
107107

108-
enum PDFMergeBehaviors {
109-
'Append',
110-
'Shuffle',
111-
}
112-
113-
#define action makePDF(
114-
variable input: 'WFInput',
115-
bool ?includeMargin: 'WFPDFIncludeMargin' = false,
116-
PDFMergeBehaviors ?mergeBehavior: 'WFPDFDocumentMergeBehavior' = "Append"
117-
)
118108

119-
#define action 'compresspdf' optimizePDF(variable pdfFile: 'WFInput')
120109

121110
#define action print(variable input: 'WFInput')
122111

123-
#define action splitPDF(variable pdf: 'WFInput')
124-
125112
/* QR Codes */
126113

127114
enum QRCodeErrorCorrection {

actions/images.cherri

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,6 @@ enum imageDetail {
129129

130130
#define action 'properties.images' getImageDetail(variable image: 'WFInput', imageDetail detail: 'WFContentItemPropertyName')
131131

132-
enum colorSpace {
133-
'RGB',
134-
'Gray',
135-
}
136-
137-
#define action makeImageFromPDFPage(variable pdf: 'WFInput', colorSpace ?colorSpace: 'WFMakeImageFromPDFPageColorspace' = "RGB", text ?pageResolution: 'WFMakeImageFromPDFPageResolution' = "300")
138-
139132
#define action makeImageFromRichText(variable pdf: 'WFInput', text width: 'WFWidth', text height: 'WFHeight')
140133

141134
#define action 'extracttextfromimage' extractImageText(variable image: 'WFImage')

actions/pdf.cherri

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
PDF Actions
3+
*/
4+
5+
enum PDFMergeBehaviors {
6+
'Append',
7+
'Shuffle',
8+
}
9+
10+
#define action makePDF(
11+
variable input: 'WFInput',
12+
bool ?includeMargin: 'WFPDFIncludeMargin' = false,
13+
PDFMergeBehaviors ?mergeBehavior: 'WFPDFDocumentMergeBehavior' = "Append"
14+
)
15+
16+
#define action 'compresspdf' optimizePDF(variable pdfFile: 'WFInput')
17+
18+
#define action splitPDF(variable pdf: 'WFInput')
19+
20+
enum colorSpace {
21+
'RGB',
22+
'Gray',
23+
}
24+
25+
#define action makeImageFromPDFPage(variable pdf: 'WFInput', colorSpace ?colorSpace: 'WFMakeImageFromPDFPageColorspace' = "RGB", text ?pageResolution: 'WFMakeImageFromPDFPageResolution' = "300")

0 commit comments

Comments
 (0)