Corrected Errors in Document Creation
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user