x-easypdf is a pdf construction tool based on pdfbox, which greatly reduces the threshold of use and builds pdf in a componentized form. Simple and easy to use, only one line of code is needed to complete the PDF operation.
1. Lightweight
Add only pdfbox related dependencies, no other dependencies
2. Simple and easy to use
With just one line of code, you can complete the PDF operation
3. Automatic line wrapping and paging
When the text exceeds the display of a single line, it can automatically wrap; when the content exceeds the display of a single page, it can automatically break into pages.
4. Template filling
Provides built-in methods for easy template filling
5. Componentization
All content on the page is constructed in component form. Using different component combinations, you can construct an ideal document
6. Flexible expansion
Just implement the interface provided by the system to complete the customized component expansion
1. document: PDF document
2. Page: Several pages form a PDF document
3. Watermark: Each page can set an independent watermark at the page level or a global watermark at the document level. The priority is: page level > document level.
4. Header: Each page can set an independent header at the page level or a global header at the document level. The priority is: page level > document level.
5. Footer: Each page can set an independent footer at the page level or a global footer at the document level. The priority is: page level > document level.
6. Component: core, each page is composed of several components
text (text component): provided, text writing component
line (line component): provided, line writing component
image (picture component): provided, picture writing component
table (table component): provided, table writing component, cell (cell)->row (row)->table (table)
rect (square component): provided, square writing component
More other convenient and practical components will be added in the future. . .
x-easypdf installation tutorial
mvn clean install
v2.9.9
new features
Added a method to enable automatic scaling of font size in cell components
Added a method to enable automatic scaling of font size in the table row component
Added a method to enable automatic scaling of font size in the table component
Added text subscript component
Added text extension component
Added method to set temporary directory for document signature
Add a method to batch sign documents
Added pdf assistant method to add fonts (customized loading fonts)
Original changes
Adjust font mapping logic to use default fonts instead of unknown fonts
Adjust the drawing logic of headers and footers, background images, and background colors (the original pages will also be added and can be closed by yourself)
Bug fixes
Fix document signature page error issue
v2.9.8
Added text style settings (normal/hollow/bold/thin/hidden (invisible)/italic/italic hollow/italic bold/italic thin)
Added method to read documents through password
Adjust text component drawing logic
Fixed the problem of abnormal display of barcode width and height
v2.9.2
Replace the default font with Huawei Hongmeng font
Modify table component header parameter inheritance logic
Added form filler font size setting
v2.8.5
Fix font loading issue
Fix digital signature issue
Optimize code
v2.8.1
Modify the null pointer issue after filling the form without setting the security policy
Add a form filler to enable read-only mode
Add bookmark analysis method
Added method for document extractor cleanup area
v2.8.0
new features
1. Added new document analyzer XEasyPdfDocumentAnalyzer
2. The XEasyPdfPage page adds a new method for obtaining documents and obtaining pixels per millimeter.
3. XEasyPdfPage page adds a new method to obtain the page width.
4. XEasyPdfPage page adds a new method to obtain the page height.
5. XEasyPdfPage page adds a new method to obtain page size
6. The XEasyPdfPage page has a new method to obtain the index placeholder of the current page.
7. XEasyPdfHeader header adds a method to obtain the total page number placeholder
8. XEasyPdfHeader header is added to obtain the current page number placeholder.
9. XEasyPdfFooter footer adds a method to obtain the total page number placeholder
10. XEasyPdfFooter footer adds a placeholder to obtain the current page number.
11. XEasyPdfText text component adds a new method to set the maximum height.
12. XEasyPdfText text component adds a new method to obtain the font path
13. The XEasyPdfTable table component adds a new method to turn off automatic row splitting (automatic splitting of row data during paging), which is enabled by default.
14. XEasyPdfTable table component adds a new method to insert table rows
Original changes
1. Optimize the XEasyPdfPage page to obtain the latest page logic
2. How to remove each component and whether the drawing is completed
3. How to remove the XEasyPdfImage image component and set the image compression mode
4. Remove the PDFont font attribute in each component
5. pdfbox dependency updated to 2.0.26
Bug fixes
1. Fix the problem of getting the total page number
2. Fix the cross-page display error problem of XEasyPdfTable table component