Set tab order when document is tagged#1449
Conversation
insightfuls
left a comment
There was a problem hiding this comment.
@acrollet , firstly, let me say thanks for putting this together. Despite being simple, I hadn't managed to look at it, and having something concrete to look at is really helpful. This is certainly put together well, and it's good to see that it's tested. For a couple of reasons I'll explain inline, I think a slightly different approach would be preferable, though. I think it should be easy to adjust, if you can spare a little more time for this.
insightfuls
left a comment
There was a problem hiding this comment.
Thanks @acrollet , overall, this looks great. There's nothing wrong with it, so I'm happy to give an approving review. I've left a comment inline, however, suggesting simplifying a condition, which also makes it more consistent with nearby code.
acrollet
left a comment
There was a problem hiding this comment.
Adding suggestion
|
@blikblum , I'm happy for this to be merged if you are, or would you like @liborm85 or @devongovett to give it a review as well? |
|
|
Hi folks, just wondering if there's anything else needed on this PR. Thanks! 🙂 |
|
@blikblum @insightfuls just wondering if there's anything else needed or if this could be merged? Thanks! |
|
I'm using PDFKit with TypeScript. For a single-page document (which is what I am working with right now), the suggested fix works for me as follows: Adding Any idea when this pull request will be merged and made part of a general release? |
|
Hi @CarlBohman, thanks for your suggestion. It seems like your suggest approach works for single page PDFs. I was wondering if there is a way to do it for multiple pages. I'm thinking of the following approach. I have scenarios where I'll be generating multiple pages. Regardless, I will check it myself to see if this makes a difference. Ideally, I'd like this PR to be merged so this can be handled by the library itself. Thanks :) |
|
UPDATE: The above mentioned snippet works for multiple pages. |
|
Merged. Thanks. |
(foliojs#1449) * Set tab order when document is tagged * Update approach and add inverse test * Revert page dictionary setup * Update lib/mixins/markings.js * Update kitchen-sink-accessible.pdf * Update CHANGELOG.md --------- Co-authored-by: Libor M. <liborm85@gmail.com>
Changes
fixes #1260
relates to department-of-veterans-affairs/va.gov-team#58587
This PR sets tab order to "Structure" when a document is tagged.