PDFBox Inconsistent PDTextField Autosize Behavior after setValue
I am using Apache PDFBox for configuration of PDTextField 's on a PDF document where I load Lato onto the document using: font = PDType0Font.load( @j_pd_document, java.io.FileInputStream.new('/path/to/Lato-Regular.ttf') ) # => Lato-Regular font_name = pd_default_resources.add(font).get_name # => F4 I then pass the font_name into a default_appearance_string for the PDTextField like so: j_text_field.set_default_appearance("/#{font_name} 0 Tf 0 g") # where font_name is # passed in from above The issue now occurs when I proceed to invoke setValue on the PDTextField . Because I set the font_size in