Skip to content

Commit

Permalink
HCX-58 Add PDF conversion option to Imprint print interface
Browse files Browse the repository at this point in the history
  • Loading branch information
TimAle committed Mar 16, 2020
1 parent c15bc61 commit 7e4d500
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/org/camunda/latera/bss/connectors/Imprint.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Imprint {
)
}

def print(CharSequence template, Map data = [:]) {
def print(CharSequence template, Map data = [:], convertToPDF = false) {
logger.info('Printing begin...')
if (!data) {
data = Order.getData(execution)
Expand All @@ -54,7 +54,8 @@ class Imprint {
monthFull : format(now, MONTH_FULL_FORMAT, this.locale),
todayFull : format(now, FULL_DATE_FORMAT, this.locale),
homsOrderCode : execution.getVariable('homsOrderCode')
] + data
] + data,
options : [ convert_to_pdf : convertToPDF ]
]
try {
return this.http.sendRequest(
Expand All @@ -71,4 +72,4 @@ class Imprint {
def print(Map data, CharSequence template) {
return this.print(template, data)
}
}
}

0 comments on commit 7e4d500

Please sign in to comment.