unidoc / unipdf

Golang PDF library for creating and processing PDF files (pure go)
https://unidoc.io
Other
2.54k stars 250 forks source link

[FEATURE] Add State/Province support for creator/invoice address block #332

Closed lilith-writes-code closed 4 years ago

lilith-writes-code commented 4 years ago

Is your feature request related to a problem? Please describe. The invoice.drawAddress functionality has support for most of the address parts but is currently lacking a state/province type functionality

Describe the solution you'd like It would be great if state/province could be added. This might break current assumptions around formatting city + zip, since regional rules would like addresses to be formatted with City State Zip

Additional context Example US address block:

JANE L MILLER [mailto] MILLER ASSOCIATES [companyname] Suite #134569 [street1] 1960 W CHELSEA AVE STE 2006R [street2] ALLENTOWN PA 18104 [city state zip]