Thank you for getting back to me so quickly Jan Blaha,
Reading that article from 2020 I would hope its fully supported almost 2 years later, I noticed it states:
"This feature also works with Chrome Headless when you use both the --print-to-pdf
and --export-tagged-pdf
flags."
and I've tried adding them to my config:
"extensions": {
"chrome-pdf": {
"launchOptions": {
"args": ["--print-to-pdf", "--export-tagged-pdf"]
}
}
}
but this causes an error in chromium (I tried with --no-sandbox
as well).
Report "directoryTemplate" render failed.
Failed to launch the browser process!
[0307/181932.010233:ERROR:headless_shell.cc(199)] Print to PDF is disabled when remote debugging is enabled.
TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md
Error: Failed to launch the browser process!
[0307/181932.010233:ERROR:headless_shell.cc(199)] Print to PDF is disabled when remote debugging is enabled.
TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md
at onClose (/app/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:229:20)
at Interface.<anonymous> (/app/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:219:68)
at Interface.emit (node:events:532:35)
at Interface.emit (node:domain:537:15)
at Interface.close (node:readline:586:8)
at Socket.onend (node:readline:277:10)
at Socket.emit (node:events:532:35)
at Socket.emit (node:domain:537:15)
at endReadableNT (node:internal/streams/readable:1346:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
The history of that flag is a bit confusing per this PR it was merged awhile ago to puppeteer but subsequently removed as it was to be supported by default and this bug says its always enabled be default as of 3 days ago. This chromium bug was also fixed saying headless will always include tags last Nov.
Do you know of any workarounds to get the accessibility tags into the PDF?
Otherwise I just need to watch this and hope it reaches 101 soon? Once it does will jsreports be using it right away or do I need to request an update?
Thank you for your help with this issue!