gettalong / hexapdf

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

Allow create_widget to accept a padding parameter #292

Closed serene closed 5 months ago

serene commented 5 months ago

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

gettalong commented 5 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.