[Ultimate PDF] Cookie Consent issue

Forge Component
Published on 23 May by Leonardo Fernandes
14 votes
Published on 23 May by Leonardo Fernandes


The application that I am currently working on has OneTrust cookies associated with it. The problem is that everytime I try to convert a screen into a PDF, the OneTrust Cookie Consent message gets overlayed above the page.

The HtmlToPdfConverter component has an "OtherArgs" input parameter, where you can pass the OptanonAlertBoxClosed cookie and which solves this issue.

Is there also a way to solve the same issue with the Ultimate PDF component?


Hi Pedro Gonçalves. Could you share the URL of the screen you want to print? Is it a javascript alert box?

Hi Leonardo!

We already found a workaround that solved our problem by simply adding this code on the PDF print screen.

SyntaxEditor Code Snippet

Optanon = undefined;

But thanks anyway!