├── INVOICE.Pdf ├── README.md ├── eclipse-workspace - Shortcut.lnk ├── pom.xml ├── src ├── main │ └── java │ │ └── Pdf │ │ └── App.java └── test │ └── java │ └── Pdf │ └── AppTest.java └── target ├── classes ├── META-INF │ ├── MANIFEST.MF │ └── maven │ │ └── 102 │ │ └── Pdf │ │ ├── pom.properties │ │ └── pom.xml └── Pdf │ └── App.class └── test-classes └── Pdf └── AppTest.class /INVOICE.Pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RajlaxmiMeshram/Invoice-Generator/c24f414c24ca3b4b8f93effaf0a8380fd1f0a1aa/INVOICE.Pdf -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Invoice-Generator 2 | This project is totally developed in java for generating automatic invoice in pdf format. 3 | -------------------------------------------------------------------------------- /eclipse-workspace - Shortcut.lnk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RajlaxmiMeshram/Invoice-Generator/c24f414c24ca3b4b8f93effaf0a8380fd1f0a1aa/eclipse-workspace - Shortcut.lnk -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4.0.0 4 | 5 | 102 6 | Pdf 7 | 0.0.1-SNAPSHOT 8 | jar 9 | 10 | Pdf 11 | http://maven.apache.org 12 | 13 | 14 | UTF-8 15 | 16 | 17 | 18 | 19 | junit 20 | junit 21 | 3.8.1 22 | test 23 | 24 | 25 | 26 | com.itextpdf 27 | itextpdf 28 | 5.5.13.2 29 | 30 | 31 | 32 | 33 | org.apache.pdfbox 34 | pdfbox 35 | 3.0.0-RC1 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /src/main/java/Pdf/App.java: -------------------------------------------------------------------------------- 1 | package Pdf; 2 | 3 | import java.io.IOException; 4 | import java.util.ArrayList; 5 | import java.util.List; 6 | import java.util.Scanner; 7 | 8 | import org.apache.pdfbox.pdmodel.PDDocument; 9 | import org.apache.pdfbox.pdmodel.PDPage; 10 | import org.apache.pdfbox.pdmodel.PDPageContentStream; 11 | import org.apache.pdfbox.pdmodel.font.PDType1Font; 12 | 13 | public class App { 14 | private static final String String = null; 15 | PDDocument invc; 16 | int n; 17 | Integer total = 0; 18 | Integer price; 19 | String CustName; 20 | String CustPh; 21 | List ProductName = new ArrayList(); 22 | List ProductPrice = new ArrayList(); 23 | List ProductQty = new ArrayList(); 24 | String InvoiceTitle = new String("Asterisc Technology Private Limited"); 25 | String SubTitle = new String("Invoice"); 26 | 27 | 28 | App() { 29 | 30 | invc = new PDDocument(); 31 | 32 | PDPage newpage = new PDPage(); 33 | 34 | invc.addPage(newpage); 35 | } 36 | 37 | 38 | void getdata() { 39 | Scanner sc = new Scanner(System.in); 40 | System.out.println("Enter the Customer Name: "); 41 | CustName = sc.nextLine(); 42 | System.out.println("Enter the Customer Phone Number: "); 43 | CustPh = sc.nextLine(); 44 | System.out.println("Enter the Number of Products: "); 45 | n = sc.nextInt(); 46 | System.out.println(); 47 | for(int i=0; i 3 | 4.0.0 4 | 5 | 102 6 | Pdf 7 | 0.0.1-SNAPSHOT 8 | jar 9 | 10 | Pdf 11 | http://maven.apache.org 12 | 13 | 14 | UTF-8 15 | 16 | 17 | 18 | 19 | junit 20 | junit 21 | 3.8.1 22 | test 23 | 24 | 25 | 26 | com.itextpdf 27 | itextpdf 28 | 5.5.13.2 29 | 30 | 31 | 32 | 33 | org.apache.pdfbox 34 | pdfbox 35 | 3.0.0-RC1 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /target/classes/Pdf/App.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RajlaxmiMeshram/Invoice-Generator/c24f414c24ca3b4b8f93effaf0a8380fd1f0a1aa/target/classes/Pdf/App.class -------------------------------------------------------------------------------- /target/test-classes/Pdf/AppTest.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RajlaxmiMeshram/Invoice-Generator/c24f414c24ca3b4b8f93effaf0a8380fd1f0a1aa/target/test-classes/Pdf/AppTest.class --------------------------------------------------------------------------------