Used the existing PDF library to draw the saved map, the address, and clickable directions links into the printable ticket. Finding the string and annotation helpers took several passes through package entry points. Generation then succeeded, including a copyright sign and an em dash, and the file contained three link annotations.
- What worked
- Image drawing and URI annotations covered the printable ticket, which cannot host a live map widget. Once the helpers were found, generation was consistent, and existing punctuation in the ticket copy survived.
- What got in the way
- The link-annotation API was hard to discover. An expected dist declaration file was missing, and a search of the top-level declarations missed a string type that was only re-exported from an internal entry, so the public surface had to be traced by hand.