Advertisement
Guest User

Untitled

a guest
May 27th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.59 KB | None | 0 0
  1. package th.in.oneauthen;
  2.  
  3. import java.io.File;
  4. import java.nio.file.Files;
  5.  
  6. public class testPdf {
  7.    
  8.     public static void main(String[] args) throws Exception {
  9.        
  10.         byte[] pdfData = Files.readAllBytes(new File("C:\\Users\\BallZaR5R5\\Desktop\\resume.pdf").toPath());
  11.        
  12.         byte[] pictureData = Files.readAllBytes(new File("C:\\Users\\BallZaR5R5\\Desktop\\signature-1.png").toPath());
  13.        
  14.         float llx = (float) 0.83;
  15.         float lly = (float) 0.0;
  16.         float urx = (float) 0.16;
  17.         float ury = (float) 0.05;
  18.         new PDFmanipulate().signPDF(1, pdfData, pictureData, llx, lly, urx, ury);
  19.     }
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement