Boxable New! Download Jar Access
: Includes features like horizontal and vertical alignment, images inside/outside cells, and rotated text.
To use Boxable, you must include it in your project's build configuration. This ensures that all necessary transitive dependencies (like PDFBox) are also included. Maven Configuration Add the following dependency to your pom.xml file:
: Provides a convenient way to build and download the JAR directly from the GitHub source. How to Add Boxable to Your Project boxable download jar
: The official Boxable GitHub repository hosts all historical releases, where you can download the JAR under the "Assets" section of each version.
is a popular open-source Java library designed to simplify the creation of complex tables within PDF documents. Built on top of the Apache PDFBox API, it provides a high-level interface that spares developers from the tedious manual calculations of coordinates normally required for drawing PDF lines and text. Where to Download Boxable JAR : Includes features like horizontal and vertical alignment,
// Create a new PDF document and page PDDocument doc = new PDDocument(); PDPage page = new PDPage(); doc.addPage(page); // Initialize a BaseTable float margin = 50; float yStart = page.getMediaBox().getHeight() - margin; float tableWidth = page.getMediaBox().getWidth() - (2 * margin); BaseTable table = new BaseTable(yStart, yStart, 10, tableWidth, margin, doc, page, true, true); // Create a Row and add Cells Row headerRow = table.createRow(15f); Cell cell = headerRow.createCell(100, "Header Content"); cell.setFont(PDType1Font.HELVETICA_BOLD); // Draw the table table.draw(); doc.save("example.pdf"); doc.close(); Use code with caution.
You can download the Boxable JAR files from several major repositories. The current stable version is . Maven Configuration Add the following dependency to your pom
: The most reliable way to get the latest JAR and its dependencies. You can download the .jar directly or use the dependency snippet for automated builds.
: Automatically handles multi-page tables, including repeating header rows on new pages. Basic Usage Example