You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ms...@apache.org on 2020/10/26 18:44:58 UTC
svn commit: r1882883 -
/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/AppearanceGeneratorHelper.java
Author: msahyoun
Date: Mon Oct 26 18:44:58 2020
New Revision: 1882883
URL: http://svn.apache.org/viewvc?rev=1882883&view=rev
Log:
PDFBOX-4984: add some information about the handling into the source; closes #87
Modified:
pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/AppearanceGeneratorHelper.java
Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/AppearanceGeneratorHelper.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/AppearanceGeneratorHelper.java?rev=1882883&r1=1882882&r2=1882883&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/AppearanceGeneratorHelper.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/AppearanceGeneratorHelper.java Mon Oct 26 18:44:58 2020
@@ -572,6 +572,12 @@ class AppearanceGeneratorHelper
}
}
+ /*
+ * PDFBox handles a widget with a joined in field dictionary and without
+ * an individual name as a widget only. As a result - as a widget can't have a
+ * quadding /Q entry we need to do a low level access to the dictionary and
+ * otherwise get the quadding from the field.
+ */
private int getTextAlign(PDAnnotationWidget widget)
{
// Use quadding value from joined field/widget if set, else use from field.