Skip to content

Instantly share code, notes, and snippets.

@mrnirva
Created May 27, 2020 04:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrnirva/46c385edcf2f00ad9250fad0678a51bc to your computer and use it in GitHub Desktop.
Save mrnirva/46c385edcf2f00ad9250fad0678a51bc to your computer and use it in GitHub Desktop.
try {
// Document pdfDosyam = new Document();
// pdfDosyam isimli dosyayı yukarıdaki gibi önce oluşturmalıyız.
// Oluşturmadan sonra aşağıdaki gibi kaydediyoruz
PdfWriter.getInstance(pdfDosyam, new FileOutputStream(new
File(Environment.getExternalStorageDirectory(),"test.pdf")));
} catch (DocumentException | FileNotFoundException e) {
e.printStackTrace();
}
// Son olarak içini açıyoruz
pdfDosyam.open();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment