aspose file tools
The moose likes Java in General and the fly likes pdf byte to pdf file converstion Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "pdf byte to pdf file converstion" Watch "pdf byte to pdf file converstion" New topic
Author

pdf byte to pdf file converstion

sivaprasad pasupulathi
Ranch Hand

Joined: Apr 21, 2009
Posts: 36
Hi,

I have pdf bytes[].I would like to use these bytes and create the pdf.I would like to store the generated pdf in local.I am not using any servlets for this process.Please let me know how we can create a pdf file with pdf bytes.

Thanks
siva
sivaprasad pasupulathi
Ranch Hand

Joined: Apr 21, 2009
Posts: 36
This worked,hope this helps:

File someFile = new File(somefile);
FileOutputStream fos;
fos = new FileOutputStream(someFile);
fos.write(pdfBytes);
fos.flush();
fos.close();

Thanks
siva
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: pdf byte to pdf file converstion
 
Similar Threads
Using Thumbnail PDFs
wrting bytearray to xml file
PDF Files
Display Pdf Content
create pdf command line