[nbusers] Re: OT printing PDFs
- From: Mark Claassen <
- Subject: [nbusers] Re: OT printing PDFs
- Date: Mon, 03 Dec 2012 11:19:14 -0500
I just tried this quick on my laptop and I cannot print to my Adobe PDF printer either. However, I have a 3rd party PDF printer that does work. This is a Netbeans issue, clearly, by Oracle needs to be notified if they don’t already know.
From: Edson Richter [mailto:
Sent: Saturday, December 01, 2012 9:39 AM
br>Subject: [nbusers] Re: OT printing PDFs
Another option is to use a BufferedImage, then convert to JPG or PNG and then print it, or embed in a PDF using iText.
I don't have the code to show how to, but I made this in the past, and it works.
> Date: Sat, 1 Dec 2012 07:37:54 -0500
> Subject: [nbusers] Re: OT printing PDFs
> On 12/01/2012 05:18 AM, Andreas Ernst wrote:
> > Hi,
> > with Java 1.7.0_09 you can't use PDF printers, on an earlier version
> > this happend too.
> > Tested on XP, Win7 and Mac - no go, with Adobe PDF Suite, PDFCreator,
> > PDF24.
> > Open a bugreport?
> > I print my document with Graphics2D. I did not found any Java PDF API,
> > that supports that. Or is there an API that support converting a
> > Graphics2D object to their object/document?
> > Regards
> > Andreas<
d. Graphics/2D is essentially a flat thing.
> Once you have painted to it you can't get the sub-components out. You
> need a library that builds PDFs. With it you will add this or that thing
> to the model. Once you have that you can generally render it as a
> Graphics object and use that on screen if needed for an image or
> printing yourself. Too, if you have a viewer, then you can use that to
> view things.
> JasperReports puts out PDFs for instance. You could technically use it
> to do that and use the JasperViewer. Now, under the hood it uses Apache
> POI and iText (not Apache I think). You could grab a copy of the
> JasperReports projects sources and from there can determine what they
> specifically use and use that as an example.
> Wade Chandler
> Software Engineer and Consultant
eans Dream Team Member
About this Project