This repository has two branches:
itext-5: implementation using iText 5itext-8+: implementation using iText 8+ (kernel/layout API)
Utility helpers to build SINAN (Sistema de Informação de Agravos de Notificação) PDF fields (number box, legends, option grids, etc.).
- Java (JDK)
- Gradle (via the included Gradle Wrapper)
- iText (configured as a Gradle dependency)
From the project root:
./gradlew.bat clean build
./gradlew.bat runThe example app generates relatorio_exemplo.pdf in the project root.
Copy src/main/java/com/vitorhugo1207/pdffieldssisanutils/PdfFieldUtils.java into your project and add the corresponding iText dependency in your build.