Factors such as:
- The Printer: There are thousands of printers out there, each one may handle spooling and a document different
- Print colour profiles can change from printer to printer
- Windows and Linux variations in colour, depth etc.
- The print driver language installed will make a difference, e.g. PostScript, PCL5, PCL6 etc.
- Paper quality
- Available font
- Graphics quality inside your document
- One print library will render the same PDF print job differently to another.
- Usually each printer has a multitude of settings which can be tweaked, which ones make a difference?
Below are some of the various means I have used in the past to print PDF documents through Java. I have used a few of the below libraries in production before, changing when better alternatives are found or problems come up. You can print document directly through the java.x.print libraries which come with the JDK but these libraries don't handle PDF's very well. (or atleast the PDF's I have had to print) I think the problem with most of these libraries boils down to the interpretation from PDF to the required print language.
Adobe Reader (Free)
I have once used this in a production environment but if you start to print large volumes of documents problems soon start to arise. A common issue I have experienced is that Adobe Reader doesn't shut down properly and after several days running the windows box running the application crashed due to memory issues. Its not an scalable or elegant solution to a problems that can be complex in reality.
ICEPdf Printing ($)
I have used this in production before and is a comprehensive library however incompatibilities arrose when new printers where purchased and thus we have moved away from ICEPdf.
JPDF Printing ($)
JPDF is a simple to use and good quality library from my experience. It produces good a quality output and also can render POSTSCRIPT files with ease.
I have never had much look with the two libraries below and have only evaluated what can be achieved. Having never been able to produce a suitable output Apache PDFBox and PdfRenderer are not suitable for printing production documents.
Apache PDFBox (OSS) - Source link
PdfRenderer (OSS) - Source Link
In know way am I trying to promote or sell any of the above libraries, I know lots of hard work and hours have been spent designing and developing them. My aim is to simple speed up the process of evaluation for people. All examples from this post can be downloaded form my GitHub account here.
James
Really i appreciate the effort you made to share the knowledge.The topic here i found was really effective to the topic which i was researching for a long time! Lisa Drivers Download
ReplyDeletedissertation help
ReplyDeleteI have never had much look with the two libraries below and have only evaluated what can be achieved. Having never been able to produce a suitable output Apache PDFBox and PdfRenderer are not suitable for printing production documents.