Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. private void CreatePDF()
  2. {
  3. string file,filepatch;
  4. File plik;
  5. file = Android.OS.Environment.ExternalStorageDirectory.AbsolutePath;
  6. // filepatch = System.IO.Path.Combine(file, "test.pdf");
  7. plik = new File(file, "test.pdf");
  8. Rectangle rect = new Rectangle(516f, 720f);
  9. Document document = new Document(rect, 200f, 100f, 100f, 200f);
  10. try
  11. {
  12. OutputStream output = new FileOutputStream(plik);
  13. PdfWriter pdfwriter = PdfWriter.GetInstance(document, output);
  14.  
  15. document.Open();
  16.  
  17. }
  18. catch(FileNotFoundException ee)
  19. {
  20.  
  21. }
  22. }
  23.  
  24. PdfWriter pdfwriter = PdfWriter.GetInstance(document, output);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement