Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
pdf")
log.error("${existingDoc}")
document(
margin: [top: (8.5).inches, bottom: 0.inch],
pageCount: 1
){
table( columns: (1..ncol).collect{25}, padding:1, font:[size:5.px],
border:[size:1]){
(1..nrow).each{
row{
(1..ncol).each{
x = signerList?[counter]
log.error("x ${x}")
if (x && counter<=currentSigner){
cell{
text "Per ${x.signtype}"
lineBreak()
text "${x.role}"
lineBreak()
text "${x.fullname}", font: [italic: true,
bold:true]
}
} else{
cell ""
}
counter++
}
}
}
}
}
}
}
def tempFile
log.error("whicPages ${whichPages}")
log.error("allPages ${allPages}")
log.error("allPages size ${allPages.size()}")
allPages.each {
//Extract single page
singlePage = pdf.extractPageRange(pdfResource, it, it)
return tempFile
}