Closed osbre closed 1 year ago
This was how I implemented this feature in the original PR, so I think this could be implemented by just reverting https://github.com/bitcrowd/chromic_pdf/pull/168
Thank you @MaeIsBad, sent a PR: https://github.com/bitcrowd/chromic_pdf/pull/268
See discussion in PR, this can now be done by using multiple session pools.
Hello. I'm wondering whether it's possible to set
:disable_scripts
not globally for all pages, but only on specific pages.I'm guessing it would've been possible by calling
Emulation.setScriptExecutionDisabled
when needed?(make it a parameter for
print_to_pdf
)I've tried to attempt on contributing this feature in
ChromicPDF.Navigate
, however, failed to do so due to a limited experience with Elixir. (some things are beyond my understanding - it looks like there is a restriction on what can be called inside theNavigate
module, and this list is in the@type navigate_option
fromSupervisor
?)As a side note, looks like there are more methods that can be called this way, I've noticed in this script: https://github.com/puppeteer/puppeteer/blob/main/packages/puppeteer-core/src/common/EmulationManager.ts#L208