Hi Ankit Garg,
Create pdf method takes one of input as File (Selected file name along with path). then it start writtin pdf content as
public void createAndSavePdf(
String targetFileNameWithPath) {
Document document = new Document(PageSize.A4, 50, 50, 100, 72);
PdfWriter writer1 = PdfWriter.getInstance(document, new FileOutputStream(targetFileNameWithPath));
document.open();
----
----
---
document.close();
}
Regards,
Arun