Hello.
I want to ask if anyone has experienced margins in PDF files disappearing when Content Security Policy is applied.
Is there a specific setting for the margins?
Hoping for a response soon. Thank you.
Hi @Carlos Dela Cruz
You can use the action 'CustomMarginSize.
Take dependency.
I hope this helps
Thanks
Hi Rupesh.
I'll try this action. Thank you for the response.
Hi Carlos
You are using which event OnReady or OnInitialize?
Because I am facing same issue so I used OnInitialize so its working properly
Since we are using a client action to download the PDF file as it is in a web block, we aren't using OnReady or OnInitialize
Your issue resolved? For action 'CustomMarginSize.
Hi Rupesh,
I tried the CustomMargin on the PrintLayout and it didn't work.
Am I missing something here?
if possible can you share oml file? will check
hi @Carlos Dela Cruz
I have attached below oml file.
Apologies for the late reply, I'll check the oml file you sent.
Thank you.
Upon further inspection, the issue seems to be due to the Factory Configuration setting for Unsafe-Inline and Unsafe-Eval CSP directives on our server.
Thank you for the help.
Regards,
Carlos