59
Views
2
Comments
[Ultimate PDF] Cookie Consent issue
Question
ultimate-pdf
Reactive icon
Forge asset by Leonardo Fernandes

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!




2019-07-08 11-04-35
Leonardo Fernandes
 
MVP

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

UserImage.jpg
Pedro Gonçalves

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!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.