Thursday, June 7, 2012

Creating and Writing into PDF file android

Creating and writing a data into the PDF file on SD Card. It works for me. Any queries comment down.

byte[]= bytes;

File createfile = new File("/sdcard/Acc/");
File outputFile = new File(createfile, "Payslip.pdf");
  FileOutputStream fos = new FileOutputStream(outputFile);
 bytes = Base64.decode(strBinaryString, Base64.DEFAULT);
 String filepath = "/sdcard/Acc/Payslip.pdf";
 OutputStream pdffos;
 pdffos = new FileOutputStream(filepath);
 catch (FileNotFoundException e) 
 catch (IOException e) 

No comments:

Post a Comment