20
Views
2
Comments
[Ultimate PDF] Cookie Consent issue
Question
Forge component by Leonardo Fernandes
15
Published on 08 Jan 2021

Hello!

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?

Thanks!




mvp_badge
MVP
Rank: #5

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!