This content has been marked as final. Show 4 replies
You've found a print service that can print GIFs, and you're passing it a pdf - not surprising it doesn't work
DocFlavor flavor = DocFlavor.INPUT_STREAM.GIF; with DocFlavor flavor = DocFlavor.INPUT_STREAM.PDF;
I tried with different combination. I tried both as pdf. But it was not at all recognizing the printer itself. It was telling that printer not installed. I tried both GIF that time printer was detected but printing a blank page. I dried AUTOSENSE also. That didn't work
It's telling you your printer driver cannot render PDF directly. Not surprising, really. You need to use something like iText to render to an Image, and then print that.