File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Open Source Projects and the fly likes PDFBox not printing images Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "PDFBox not printing images" Watch "PDFBox not printing images" New topic

PDFBox not printing images

David Johns

Joined: Sep 02, 2011
Posts: 1
I am trying to print a .pdf file using PDFBox. Inside our app we are
running an old version (0.7.3). One of our users said that they cannot
print PDF's with an image inside the file, it just leaves the image out.
So I am looking to upgrade our app to 1.6.0. However when I attempt to
run PDFBox in command mode to print the .pdf file, it stops where the
image is located (in the header) and does not print anything on the page
other than the first part of the header underline. I have a second PDF
file with an image and it just doesn't print the image but prints all of
the text.

I am running on a Windows 7 64 bit machine. I am just running this from
the command line, although I have the same problem when running with
1.6.0 through our application.

The image was generated by creating a Birt Report sent to PDF. I attempted to attach a .pdf file but the forum would not allow me to attach a .pdf file (or a .zip) file as an attachment.

Any ideas on why the image is not printing and how to get it to print? Also, does anyone have suggestions if there is another/better way to print a .pdf stream to a printer inside my java app?

Any help or direction on the issue would be greatly appreciated.

David Johns
Software Engineer
Columbia Ultimate
I agree. Here's the link:
subject: PDFBox not printing images
jQuery in Action, 3rd edition