gettalong / hexapdf

Versatile PDF creation and manipulation for Ruby
https://hexapdf.gettalong.org
Other
1.25k stars 70 forks source link

Allow create_widget to accept a padding parameter #292

Closed serene closed 8 months ago

serene commented 8 months ago

Pass in a padding value or default to the border size.

gettalong commented 8 months ago

The appearance generator tries to mimic the behaviour of Adobe Acrobat and other tools so that the generated appearance streams look similar. Therefore it is not intended to be customizable. If you want to change how the appearance generator works, please subclass it and override the needed methods.

Furthermore, the @widget object is a PDF object. This means it should not be abused like in this pull request because the key-value pair will appear in the PDF output.

Thanks for finding the typo - I have fixed with a separate commit.