Software Development

Java – Generate PDF in Specific Version using JasperReports

java Sort Enum Properties Monitor Directory File Lambda Expression parameter return types Validate XML String XSD ExecutorService AutoCloseable Try-With-Resources Convert LocalDateTime OffsetDateTime Run Codes Before Shutdown XML Tag Lambda PostgreSQL JDBC invoke JavaScript Applet SFTP Batch hang block main thread MySQL JDBC try-with-resources delete Unencrypted SoapFault Apache CXF Remove XML Element XSLT skip execute finally public static void main constructor fields Eclipse convert Iterator Stream StreamSupport XMLEncoder XMLDecoder rename P6Spy JDBC Example PDF Version JasperReports Run from Ant iReport Page Numbers Count entities persistence context hibernate

Some devices can only process specific versions of PDFs. This post shows how to generate specific PDF versions in Java and JasperReports. If our devices are considerably old, chances are they can only process older versions of PDF documents.

Java, JasperReports, and Other Requirements

We used the following items for this post and most of them are already old in 2021. Using specific requirements could help us port the solution to newer platforms or tools.

  • Windows 7 Professional SP1
  • Eclipse – Kepler Release
  • Java 1.7 (1.7.0_67 – Windows x86)
    1. NOTE: Set source target and level is Java 1.6
    2. We have not tested it yet with source target and level 1.7
  • JasperReport 3.1.4

Java Codes To Generate Specific PDF Version


Got comments, or suggestions? Please visit our Facebook page!

You Might Also Like