Исправить текст внизу последней страницы в pdf с помощью pdfmake

Для проекта я делаю предложения и выставляю счета в формате 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?


person André Kool    schedule 30.11.2015    source источник
comment
Я открыл подобную задачу в репозитории проекта.   -  person lifeisfoo    schedule 11.01.2016