Corrected Errors in Document Creation

This commit is contained in:
2024-11-25 19:43:57 +01:00
parent 5928c34b03
commit 9993217ed1
5 changed files with 104 additions and 65 deletions

View File

@@ -900,7 +900,7 @@ export const useCreatePdf = async (invoiceData,backgroundSourceBuffer) => {
if(row.descriptionText) {
pages[pageCounter - 1].drawText(row.descriptionText.match(/.{1,80}/g).join("\n"), {
pages[pageCounter - 1].drawText(row.descriptionText.match(/.{1,100}/g).join("\n"), {
...getCoordinatesForPDFLib(21,rowHeight + ( textAutoLines * 4), page1),
size:10,
color:rgb(0,0,0),
@@ -1015,7 +1015,6 @@ export const useCreatePdf = async (invoiceData,backgroundSourceBuffer) => {
}
pages[pageCounter - 1].drawText(invoiceData.endText,{
...getCoordinatesForPDFLib(20,rowHeight+22, page1),
size: 10,