Skip to content

Commit

Permalink
Alignment fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mandar-Beehyv committed Nov 25, 2024
1 parent a638821 commit 7182aa4
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -485,9 +485,9 @@ private void generateTeluguCertificate(PDDocument document, PDFont textFont, Str
float mobileNoY = (mediaBox1.getHeight()/3+14) ;

float signatureY = (mediaBox1.getHeight()/5+ 60);
float signatureX1 = rchIdX;
float signatureX2 = mediaBox1.getWidth()/2;
float signatureX3 = mediaBox1.getWidth()/2 + 80;
float signatureX1 = rchIdX + 5;
float signatureX2 = mediaBox1.getWidth()/2 - 5;
float signatureX3 = mediaBox1.getWidth()/2 + 75;


SimpleDateFormat formatter = new SimpleDateFormat("dd-MM-yyyy");
Expand Down Expand Up @@ -537,8 +537,8 @@ private void generateTeluguCertificate(PDDocument document, PDFont textFont, Str
is3.close();
bin3.close();

float imageWidth3 = 120;
float imageHeight3 = 100;
float imageWidth3 = 125;
float imageHeight3 = 105;
image3 = image3.scaleByWidth(imageWidth3);
image3 = image3.scaleByHeight(imageHeight3);
image3.draw(document, contents1, signatureX3, signatureY - 17);
Expand Down

0 comments on commit 7182aa4

Please sign in to comment.