Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

print pdf strange behavior

843810Apr 11 2005 — edited Oct 28 2005
HI,

I am using the java 1.5 to print a pdf file in a java app. The printing is working and I am kind of wondering why. When I call up
PrintServiceLookup.lookupPrintServices()
with a flavor DocFlavor.INPUT_STREAM.PDF i find nothing. When I call up
PrintServiceLookup.lookupPrintServices() with flavor DocFlavor.INPUT_STREAM.AUTOSENSE I find three printers. When I send the pdf to my default printer it is printed perfect.

Is this a bug in the print API? Is this because my printer supports direct pdf print or does this behavior occures with every printer? I mean does java change the content to a standard print calls or does it send the pdf thee way it is?

Thanks in advance,
Patrick
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 25 2005
Added on Apr 11 2005
3 comments
238 views