Овај сајт ће имати ограничену функционалност док га будемо ажурирали у циљу побољшања вашег искуства. Ако неки чланак не реши ваш проблем и желите да поставите питање, на располагању ће вам бити наше заједнице подршке @FirefoxSupport на Twitter-у и /r/firefox на Reddit-у.

Претражи подршку

Избегните преваре подршке. Никада од вас нећемо тражити да зовете или шаљете поруке на број или да делите личне податке. Пријавите сумњиве радње преко „Пријавите злоупотребу” опције.

Сазнај више

Pdf content not loading while printing using JavaScript

  • 2 одговорa
  • 2 имају овај проблем
  • 6 прегледа
  • Последњи одговор послао ankur.bhatnagar

more options

In my web app, I am trying to print a doc using JavaScript, but content of the pdf is not getting loaded, this can be seen in the below link. https://drive.google.com/file/d/0B2nqjT-VxFWwVVhsQ1hLUnJ3MFU/view?usp=sharing

Code: var printWin = window.open(this.lURL, , 'top=100, left=500, width=900, height=800, titlebar=no'); printWin.print();

"this.lURL" is link which brings the pdf file/doc.

Note: As soon as I click on cancel button of print, the content gets loaded. And if I click print blank page gets printed.

In my web app, I am trying to print a doc using JavaScript, but content of the pdf is not getting loaded, this can be seen in the below link. https://drive.google.com/file/d/0B2nqjT-VxFWwVVhsQ1hLUnJ3MFU/view?usp=sharing Code: var printWin = window.open(this.lURL, '', 'top=100, left=500, width=900, height=800, titlebar=no'); printWin.print(); "this.lURL" is link which brings the pdf file/doc. Note: As soon as I click on cancel button of print, the content gets loaded. And if I click print blank page gets printed.

Сви одговори (2)

more options

I understand that the web app that your are developing has a function to print the contents of a pdf created with javascript, :

Please first check these basic troubleshooting steps for printing:

Does this happen with the default pdf viewer or another?

Next also check with stackoverflow.com: Where to go for developer support

more options

guigs2 said

I understand that the web app that your are developing has a function to print the contents of a pdf created with javascript, : Please first check these basic troubleshooting steps for printing: Does this happen with the default pdf viewer or another? Next also check with stackoverflow.com: Where to go for developer support

I want a solution which doesn't require to reset or change the settings of the browser. Once the app is available globally everyone should be able to use this functionality without altering the settings of the browser.