Created
May 27, 2020 04:08
-
-
Save mrnirva/46c385edcf2f00ad9250fad0678a51bc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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