This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes PdfBox, do you have to save the .pdf to a file? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "PdfBox, do you have to save the .pdf to a file?" Watch "PdfBox, do you have to save the .pdf to a file?" New topic
Author

PdfBox, do you have to save the .pdf to a file?

Rod McLure
Greenhorn

Joined: Mar 04, 2010
Posts: 24
I was asked to see if Pdfbox can do something similar to iText in the following.
The .pdf I want to create is just text on something like a card, move text to position etc ...
I have a "Hello World" example of Pdfbox but it save the .pdf to a filename.

I have this iText code which does what I want, it creates a .pdf in the ByteArrayOutputStream (in a Struts action)
this opens on the clients browser (in an iFrame) without saving the file. The client can print the .pdf


Thanks
Paul Clapham
Sheriff

Joined: Oct 14, 2005
Posts: 19751
    
  10

Yes, it's almost unbelievable, but when you go to the Apache site for PDFBox there aren't any links to the Javadoc. I poked around a bit and managed to track it down: http://pdfbox.apache.org/apidocs/overview-summary.html.

But in terms of a basic overview of what it can do, you might be better off looking at their Cookbook page: http://pdfbox.apache.org/userguide/cookbook.html.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: PdfBox, do you have to save the .pdf to a file?
 
It's not a secret anymore!