2

プロジェクトの場合、javascript で pdfmake を使用してオンザフライでオファーと請求書の PDF を作成します。署名フィールドを含む最後のテキストブロックを最後のページの下部に添付したいと思います。

私の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 の最後のページの下部に添付するにはどうすればよいですか?

4

1 に答える 1