javapdfboxpdf-form

How to change alignment value of a text box field using PDFBox 2.0.21 (Fillable form)


I would like to change the text box property values of alignment property using pdf box.

Any ideas?


Solution

  • Try quadding

    textBox.setQ(PDVariableText.QUADDING_CENTERED);