allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.mraheel48:InvoicePdf:1.0.2'
}
InvoicePdf obj = new InvoicePdf(MainActivity.this);
//Note! if the SKD < 23 it take a uses-permission otherwise it can't working
obj.setData("Pdf_Name", "Pdf_Date",
"Invoice #", "Sender_Name", "Sender_Email"
, "Sender_Address", "Receiver",
"Receiver_Email", "Receiver_Address",
description, quantity, price, amount, "this is the Short note to Save PDF");
//Note description, quantity, price, amount is array list with same Size to print table
//& price, amount also Integer..
obj.createPdf();
//Your File is Save directory (/storage/InvoicePdf/).... :-)
//Note! if you cna't understand how it work plz call the first obj.invoiceTest(); => this function is return example for more understanding..