Configure Chrome flags for local assets
mainWhen your PDF templates reference local assets like CSS, images, or fonts, Chrome may block them due to security restrictions. To resolve this, use withBrowsershot to pass specific Chrome flags to the instance.
Commonly used flags include:
--disable-web-security: Disables Chrome's same-origin policy and other web security features.--allow-file-access-from-files: Allows local files to access other local files.