OpenPDF is a free Java library for creating and editing PDF files, with a LGPL and MPL open source license. OpenPDF is based on a fork of iText. We welcome contributions from other developers. Please feel free to submit pull-requests and bugreports to this GitHub repository.
Other
3.61k
stars
597
forks
source link
PdfPCell.setHorizontalAlignment not working at all #1220
PLEASE FILL THIS TEMPLATE AS MUCH AS POSSIBLE. REMOVE IRRELEVANT PARTS.
Describe the bug
PdfPCell.setHorizontalAlignment() does not work. No matter what aligment parameter is specified, elements added are still left aligned.
To Reproduce
Code to reproduce the issue
Expected behavior
It is expected that in the pdf file, the text in cell A1, A2, A3 should be aligned respectively to left, center and right.
Screenshots
System
(please complete the following information)
Your real name
Chen Qiang (chenqiang@tsinghua.edu.cn)