download: 'open' property for export pdf is not supported in IE/edge

download: 'open' property for export pdf is not supported in IE/edge

WamakshiWamakshi Posts: 11Questions: 4Answers: 1

Hi
I have used the below property download: 'open' in export pdf -
The code -

 {
                         extend: "pdfHtml5",
                         exportOptions: { orthogonal: "customPdf" },
                         download: 'open',
//among other properties
}

However, it is throwing the permission error - in IE
Message: Error: Permission denied in pdfmake.min.js

Here's the known issue listed
https://github.com/bpampuch/pdfmake/issues/827

Is there any solution available for this yet?

Thanks in advance!

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,118Questions: 1Answers: 2,583

    Hi @Wamakshi ,

    That's not a known problem. I just tried this page in IE11, and the PDF generation worked as expected, so this is going to be something with your implementation.

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

  • allanallan Posts: 61,446Questions: 1Answers: 10,054 Site admin

    It won't work in older versions of IE. That's expected and noted in the pdfHtml5 documentation - IE10+ only.

    Allan

  • WamakshiWamakshi Posts: 11Questions: 4Answers: 1

    Hi @colin and @allan

    PDF export works perfectly in IE11/Edge. But as soon as I add this property:

    download: 'open'
    

    That throws an error in both IE11/Edge.

    Here's the example I tried: https://jsbin.com/vohosoj/edit?html,js,console,output
    And, here's the screenshot of what I see in IE11.

    Thanks!

  • colincolin Posts: 15,118Questions: 1Answers: 2,583
    Answer ✓

    Hi @Wamakshi ,

    Ah yep, I see that. I've raised it internally (DD-1200 for my reference) and we'll report back here when there's an update.

    Cheers,

    Colin

  • allanallan Posts: 61,446Questions: 1Answers: 10,054 Site admin

    Looks like its a known issue in pdfmake.

    Allan

This discussion has been closed.