Many Changes
This commit is contained in:
@@ -328,7 +328,7 @@ export const useCreatePdf = async (invoiceData) => {
|
||||
opacity: 1,
|
||||
maxWidth: 240
|
||||
})
|
||||
pages[pageCounter - 1].drawText("Projekt:", {
|
||||
/*pages[pageCounter - 1].drawText("Projekt:", {
|
||||
...getCoordinatesForPDFLib(126,90, page1),
|
||||
size:10,
|
||||
color:rgb(0,0,0),
|
||||
@@ -339,13 +339,13 @@ export const useCreatePdf = async (invoiceData) => {
|
||||
|
||||
pages[pageCounter - 1].drawText(invoiceData.info.project, {
|
||||
y: getCoordinatesForPDFLib(126,90, page1).y,
|
||||
x: getCoordinatesForPDFLib(126,90,page1).x + 340 - font.widthOfTextAtSize(invoiceData.info.project,10),
|
||||
x: getCoordinatesForPDFLib(126,90,page1).x + 50 /!*+ 210 - font.widthOfTextAtSize(invoiceData.info.project,10)*!/,
|
||||
size:10,
|
||||
color:rgb(0,0,0),
|
||||
lineHeight:10,
|
||||
opacity: 1,
|
||||
maxWidth: 100
|
||||
})
|
||||
maxWidth: 150
|
||||
})*/
|
||||
|
||||
/*page1.drawLine({
|
||||
start: getCoordinatesForPDFLib(125,90,page1),
|
||||
@@ -366,12 +366,12 @@ export const useCreatePdf = async (invoiceData) => {
|
||||
})*/
|
||||
|
||||
pages[pageCounter - 1].drawText(invoiceData.title, {
|
||||
...getCoordinatesForPDFLib(20,102, page1),
|
||||
size:15,
|
||||
...getCoordinatesForPDFLib(20,100, page1),
|
||||
size:13,
|
||||
color:rgb(0,0,0),
|
||||
lineHeight:15,
|
||||
opacity: 1,
|
||||
maxWidth: 240
|
||||
maxWidth: 500
|
||||
})
|
||||
|
||||
/*page1.drawLine({
|
||||
@@ -384,11 +384,11 @@ export const useCreatePdf = async (invoiceData) => {
|
||||
|
||||
pages[pageCounter - 1].drawText(invoiceData.description, {
|
||||
...getCoordinatesForPDFLib(20,112, page1),
|
||||
size:15,
|
||||
size:13,
|
||||
color:rgb(0,0,0),
|
||||
lineHeight:15,
|
||||
opacity: 1,
|
||||
maxWidth: 240
|
||||
maxWidth: 500
|
||||
})
|
||||
|
||||
pages[pageCounter - 1].drawText(invoiceData.startText,{
|
||||
@@ -674,7 +674,8 @@ export const useCreatePdf = async (invoiceData) => {
|
||||
|
||||
|
||||
//Footer
|
||||
rowHeight += 25
|
||||
console.log(rowHeight)
|
||||
//rowHeight += 25
|
||||
pages[pageCounter - 1].drawRectangle({
|
||||
...getCoordinatesForPDFLib(20,rowHeight, page1),
|
||||
width: 180 * 2.83,
|
||||
|
||||
Reference in New Issue
Block a user