This is an archived forum post. The information may be outdated. Contact us if you have any questions.

Internet Explorer Error?

jonahphillips64 wrote on 2013-04-05:
I'm using the PDFCrowd API and it works for all browsers except (wait for it...) Internet Explorer. I've checked versions 8-10, I'm having issues with all of them.

Here's a sample href I'm using, it's the same across browsers so that shouldn't be the issue:
http://pdfcrowd.com/url_to_pdf/?use_print_media=1&pdf_name=The%20Lesson%20Builder%20%2D%20What+Isn%27t+Motion%3F

Is this a known issue?
support wrote on 2013-04-08:
Hello,

IE versions 8 and later should work. It is known that some IE 7 installations do not work because they do not send the referrer string.

Do you have some IE add-ons installed?
jonahphillips64 wrote on 2013-04-11:
I disabled all add-ons and tested again - still doesn't work in IE.

I've narrowed the problem down: I use .htaccess to change the page from domain.com/page.php?page_id=123 to domain.com/page/123 - for IE it works if I click the link from domain.com/page.php?page_id=123 but not if I click the link from domain.com/page/123, while for other browsers they work equally.

Is it possible IE sends a different referer_url than other browsers in these cases? I would imagine this would happen for all your clients who clean their urls with .htaccess.

Thanks,
Jonah
support wrote on 2013-04-15:
Hello Jonah,

Let us know the URL that does not work and we will look into it.
jonahphillips64 wrote on 2013-04-15:
Here's an example page. The 'Save as PDF button is on the right, works properly in non-IE browsers:
http://thelessonbuilder.org/lesson_plan/818
support wrote on 2013-04-19:
Hello Jonah,

The problem seems to be caused by the fact that IE does not send the referrer string when a URL is opened via window.open().

There is a workaround but IE blocks the PDF download anyway ("To help protect your security, Internet Explorer blocked this site from downloading files to your computer ...").

If you want to download generated PDF in a new window, I'm not aware of any portable solution.
jonahphillips64 wrote on 2013-04-19:
Ha - I'd switched it from a link to using window.open to get around an IE8 bug in the first place - I guess I'll find a different workaround.

Thanks for looking into this.

Jonah
jonahphillips64 wrote on 2013-04-23:
In case anyone else has this issue: the workaround that worked for me was changing the method of submission from a link with the href constructed with the GET variables I wanted, to a form that looked something like this:

<form target="_blank" method="get" action="http://pdfcrowd.com/url_to_pdf/">
<input type="hidden" name="use_print_media" value="1"/>
<input type="hidden" name="pdf_name" value="This PDF Name"/>
<input type="submit" value="Save As PDF"/>
</form>