yzane / vscode-markdown-pdf

Markdown converter for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=yzane.markdown-pdf
Other
991 stars 204 forks source link

Create tagged PDFs #239

Open rahji opened 3 years ago

rahji commented 3 years ago

It would be great if this extension created tagged PDFs. I assumed that it did, since my markdown documents already have a structure that could easily be transferred to a PDF (eg: heading of various levels), until I saw that all of my PDFs are being labeled as having very low accessibility for people with disabilities. I'd love to not have to go into Acrobat and manually tag my documents, considering I've already done the work of making sure they have an intelligible structure inside the markdown. Thank you for an excellent extension!

rahji commented 2 years ago

This extension will create tagged PDFs. The default for this extension is to use its own installation of Chromium, which is probably old enough that it doesn't create tagged PDFs. To get tagged PDFs, change the Markdown-pdf "Executable Path" setting (blank by default) to point to your own Chrome binary (eg: C:\Program Files (x86)\Google\Chrome\Application).

chenjm1109 commented 1 year ago

This extension will create tagged PDFs. The default for this extension is to use its own installation of Chromium, which is probably old enough that it doesn't create tagged PDFs. To get tagged PDFs, change the Markdown-pdf "Executable Path" setting (blank by default) to point to your own Chrome binary (eg: C:\Program Files (x86)\Google\Chrome\Application).

Same problem. I installed the newest Chrome and did the same thing as you, but the PDF I obtained still doesn't have tags.

rahji commented 1 year ago

How are you checking for tags? They're not normally visible. You can do an accessibility check with Acrobat Pro. For me, I was seeing PDFs flagged as not-accessible with Canvas LMS. Just making sure that you are aware that tags are for accessibility within the file and nothing to do with bookmarks, table of contents, etc. I just double checked and all of the PDFs I have been exporting with this extension are definitely creating accessiblity tags.