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 6931c3d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ v1.1 [2019-05-05]
- [#f904daf](https://github.com/latera/camunda-ext/commit/f904daf) Added options to hide request & response body for RESTProcessor
- [#97ed434](https://github.com/latera/camunda-ext/commit/97ed434) Added utils: Numeric, Order
- [#8e37bf1](https://github.com/latera/camunda-ext/commit/8e37bf1) Some logging methods usage fixes
- [#50](https://github.com/latera/camunda-ext/pull/50) Add PDF conversion option to Imprint print interface

v1.0 [2018-10-22]
---------------------
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 = [:], Boolean 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 6931c3d

Please sign in to comment.