Для проекта я делаю предложения и выставляю счета в формате PDF на лету, используя pdfmake в javascript. Я хотел бы прикрепить последний текстовый блок, содержащий поля подписи, к нижней части последней страницы.
Мой pdf docDefinition построен следующим образом:
return {
content: [
getOfferLogo(), //Get the logo or empty string
getHeading(), //get the customer and business data (adress etc)
//the above is always the same
getText(), //get the textblock, created by user and always different
getSpecifics(), //get a table of payment specifications
getSignature() //get last textblock contaning signature fields etc, always the same
],
styles: {
subheader: {
fontSize: 15,
bold: true,
alignment: 'center'
}
},
defaultStyle: {
columnGap: 20,
fontSize: 12
}
};
Как я могу прикрепить последний текстовый блок, который я получаю от вызова getSignature(), к нижней части последней страницы pdf?