[ 
https://issues.apache.org/jira/browse/PDFBOX-5256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17398152#comment-17398152
 ] 

Tilman Hausherr commented on PDFBOX-5256:
-----------------------------------------

This change worked for me: add a textAlign parameter in 
{{insertGeneratedCombAppearance}} and add this code before the loop
{code}
if (textAlign == 2)
{
        contents.newLineAtOffset(combWidth * (maxLen - numChars), 0);
}
else if (textAlign == 1)
{
        contents.newLineAtOffset(combWidth * ((maxLen - numChars) / 2), 0);
}
{code}

> PDFBox should use the quadding for fields with the comb flag
> ------------------------------------------------------------
>
>                 Key: PDFBOX-5256
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5256
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: AcroForm
>    Affects Versions: 2.0.24, 3.0.0 PDFBox
>            Reporter: Tilman Hausherr
>            Priority: Major
>              Labels: Appearance
>         Attachments: CombTest.pdf, SO68727956-saved.pdf, SO68727956.pdf
>
>
> Lower field has comb flag set and Q = 2 but the content is left aligned.
> (Update: I see that's a TODO)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to