Welcome Guest Search | Active Topics | Sign In | Register

Javascript still executing even though NoScript set to true Options
brixer
Posted: Tuesday, October 11, 2016 1:53:28 AM
Rank: Newbie
Groups: Member

Joined: 10/11/2016
Posts: 3
I've just upgraded to the latest version of EO.Pdf (v16.2.23.0) and I've noticed that the javascript is executing even though I pass through the pdf option NoScript = true.

I have only referenced in the EO.Pdf.dll.

Code: C#
var pdfStream = new MemoryStream();
var pdfOption = new HtmlToPdfOptions
{
    NoScript = true,
    OutputArea = new RectangleF(0, 0, PdfPageSizes.A4.Height, PdfPageSizes.A4.Width),
    PageSize = new SizeF(PdfPageSizes.A4.Height,  PdfPageSizes.A4.Width),
    ZoomLevel = 1.312f
};
HtmlToPdf.ConvertHtml(html, pdfStream, pdfOption);


I've also tried to set NoScript globally using the following code with no difference in result.

Code: C#
HtmlToPdf.Options.NoScript = true;


It seems as if the NoScript setting is being ignored. I've tested with and without and am returned with the same result.

A work around for this has been to include the EO.Pdf.Classic dll file and add the line HtmlToPdf.UseClassicEngine(); However I'm not quite happy with this solution and I think there may be a bug in the system.

Any ideas if this is a bug or am I configuring it incorrectly?

eo_support
Posted: Tuesday, October 11, 2016 10:15:22 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

We have confirmed this to be a bug on our side. We will fix it as soon as possible.

Thanks!
eo_support
Posted: Thursday, October 13, 2016 4:27:58 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

We have posted a new build that should fix this issue. You can download the new build from our download page. Please take a look and let us know how it goes.

Thanks!
brixer
Posted: Tuesday, October 18, 2016 10:10:30 PM
Rank: Newbie
Groups: Member

Joined: 10/11/2016
Posts: 3
I can confirm that NoScript option works now.

Thanks!
eo_support
Posted: Wednesday, October 19, 2016 8:28:19 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Great. Thanks for confirming the fix!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.