Link

What are the advanced Java printing features in JPedal?

Printing PDF files is built into JPedal. Java offers a generic printing solution called Java Printing Services and JPedal extends this to add print support to Java.

What can it do?

Print PDF files as high-quality output both with or without user interaction. It offers all the PDF print modes available in Acrobat (there are over 50 combinations).

  • Client PDF printing with user-selectable options
  • Server PDF printing with no user intervention
  • Optimizations for PCL printers
  • Define multiple page sizes
  • Multiple scaling options (no scaling, rotate and fit to page, scale to paper size)
  • Print ranges of PDF pages, only odd, only even pages
  • Standard Java printing dialog or custom ‘Acrobat-style’ PDF print dialog
  • Modes to use Java fonts for standard fonts to speed-up PDF printing and improve quality on low-resolution devices.
  • Replace PDF form components in printing with your own customized version

List of code examples

The links below provide links to Javadoc and the complete example source code. So you can run directly from the jar or reuse the code in your own programs and tailor it to your exact requirements.

  • PrintPdfPages - Source code provide an example of how to print PDF files automatically from Java.
  • Viewer example - Source code also includes code for PDF printing and contains a custom printDialog

PDF Printing tutorials

The tutorials show you how to easily add Print PDF capabilities to your Java software and customize it with JPedal.