We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc7a544 commit e114c8cCopy full SHA for e114c8c
forms/src/main/java/com/itextpdf/forms/fields/PdfFormField.java
@@ -1532,7 +1532,11 @@ public PdfFormField setDefaultAppearance(String defaultAppearance) {
1532
* @return the current justification attribute
1533
*/
1534
public Integer getJustification() {
1535
- return getPdfObject().getAsInt(PdfName.Q);
+ Integer justification = getPdfObject().getAsInt(PdfName.Q);
1536
+ if (justification == null && getParent() != null) {
1537
+ justification = getParent().getAsInt(PdfName.Q);
1538
+ }
1539
+ return justification;
1540
}
1541
1542
/**
0 commit comments