• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

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

Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

Posts: 24654
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Too many men are afraid of being fools - Henry Ford. Foolish tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!