Is there any way to add a 2nd page into the PDF as plain text ? ( just with the terms and conditions )?
thanks
Is there any way to add a 2nd page into the PDF as plain text ? ( just with the terms and conditions )?
thanks
This should be doable by customizing the design, you can use "pageBreak": "after"
to create the 2nd page.
https://github.com/bpampuch/pdfmake/issues/25
Let me know which design you’re using if you’d like more specifics.
i am using PLAIN template
can i just add text there or do i need to speficicly set that up in another way ?
its allmost 1 full a4 paper in text
maybe there is a good way just to do the page break and include a .doc file ?
Here’s an example of the plain design with a second page with additional text.
On the ‘Customize Design’ page switch from ‘Form’ to ‘Code’ and paste in the text below
[{“columns”:[{“stack”:"$accountDetails"},{“stack”:"$accountAddress"},[{“image”:"$accountLogo",“fit”:[120,80]}]]},{“columns”:[{“width”:340,“stack”:"$clientDetails",“margin”:[0,40,0,0]},{“width”:200,“table”:{“body”:"$invoiceDetails"},“layout”:{“hLineWidth”:"$none",“vLineWidth”:"$none",“hLineColor”:"#E6E6E6",“paddingLeft”:"$amount:10",“paddingRight”:"$amount:10"}}]},{“canvas”:[{“type”:“rect”,“x”:0,“y”:0,“w”:515,“h”:25,“r”:0,“lineWidth”:1,“color”:"#e6e6e6"}],“width”:10,“margin”:[0,30,0,-43]},{“style”:“invoiceLineItemsTable”,“table”:{“headerRows”:1,“widths”:"$invoiceLineItemColumns",“body”:"$invoiceLineItems"},“layout”:{“hLineWidth”:"$notFirst:1",“vLineWidth”:"$none",“hLineColor”:"#e6e6e6",“paddingLeft”:"$amount:8",“paddingRight”:"$amount:8",“paddingTop”:"$amount:8",“paddingBottom”:"$amount:8"}},{“pageBreak”:“after”,“columns”:["$notesAndTerms",{“width”:160,“style”:“subtotals”,“table”:{“widths”:[60,60],“body”:"$subtotals"},“layout”:{“hLineWidth”:"$none",“vLineWidth”:"$none",“paddingLeft”:"$amount:10",“paddingRight”:"$amount:10",“paddingTop”:"$amount:4",“paddingBottom”:"$amount:4"}}]},“Some text”]
i cant paste this in completely as it is
i managed to do it with the help that the code in the email was displayed correctly,
onfortunatly i cant copy paste everything in the document as it gives errors,
can i put in a document instead of text ? so that i put the back info text in a .doc on the root folder of my invoiceninja install and that it fetches that with every PDF creation ?
thanks
Sorry, we don’t support .doc files.
I think the problem is with the quotes, try the following:
[{"columns":[{"stack":"$accountDetails"},{"stack":"$accountAddress"},[{"image":"$accountLogo","fit":[120,80]}]]},{"columns":[{"width":340,"stack":"$clientDetails","margin":[0,40,0,0]},{"width":200,"table":{"body":"$invoiceDetails"},"layout":{"hLineWidth":"$none","vLineWidth":"$none","hLineColor":"#E6E6E6","paddingLeft":"$amount:10","paddingRight":"$amount:10"}}]},{"canvas":[{"type":"rect","x":0,"y":0,"w":515,"h":25,"r":0,"lineWidth":1,"color":"#e6e6e6"}],"width":10,"margin":[0,30,0,-43]},{"style":"invoiceLineItemsTable","table":{"headerRows":1,"widths":"$invoiceLineItemColumns","body":"$invoiceLineItems"},"layout":{"hLineWidth":"$notFirst:1","vLineWidth":"$none","hLineColor":"#e6e6e6","paddingLeft":"$amount:8","paddingRight":"$amount:8","paddingTop":"$amount:8","paddingBottom":"$amount:8"}},{"pageBreak":"after","columns":["$notesAndTerms",{"width":160,"style":"subtotals","table":{"widths":[60,60],"body":"$subtotals"},"layout":{"hLineWidth":"$none","vLineWidth":"$none","paddingLeft":"$amount:10","paddingRight":"$amount:10","paddingTop":"$amount:4","paddingBottom":"$amount:4"}}]},"Some text"]
i managed to do it with this !
thanks
for pple wanting to do it aswell
to create a new line do following
“textline”,
“textline2”,
" ", (skipping line)
Wanting to use zapier to pass across lines from a google sheet to form lines of an invoice.
am i right that i can only create a whole new invoice per line at present?
any plans to allow zaps to add lines to an invoice?
We support multiple line items using arrays
Supported by Invoice Ninja and Event Schedule