為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Firefox print to PDF now inserts huge numbers of blank pages in the pdf at random places

  • 3 回覆
  • 1 有這個問題
  • 23 次檢視
  • 最近回覆由 markwarner22

more options

For years, I have used print to pdf in Firefox to generate pdf files of long web pages. It always worked. But lately, I noticed that huge numbers of blank pages are inserted in the pdf file, seemingly at random. I looked at the HTML source, and could not see anything that obviously triggers the blank pages. For example, a web page that ought to print to about 35 pages generates a file of more than 600 pages, with most of them blank.

I can use Microsoft Edge as an alternative, but pdf files from that browser strip out all the color, and are nevertheless super huge, about ten times larger than the ones from Firefox. E.g. the file mentioned above, about 35 pages, would be about 1.3 MB from firefox, and 12 MB from Edge. So getting the file from Firefox would be nice.

Is there a reason why print to pdf is behaving in this strange way, and anything I can do about it?

For years, I have used print to pdf in Firefox to generate pdf files of long web pages. It always worked. But lately, I noticed that huge numbers of blank pages are inserted in the pdf file, seemingly at random. I looked at the HTML source, and could not see anything that obviously triggers the blank pages. For example, a web page that ought to print to about 35 pages generates a file of more than 600 pages, with most of them blank. I can use Microsoft Edge as an alternative, but pdf files from that browser strip out all the color, and are nevertheless super huge, about ten times larger than the ones from Firefox. E.g. the file mentioned above, about 35 pages, would be about 1.3 MB from firefox, and 12 MB from Edge. So getting the file from Firefox would be nice. Is there a reason why print to pdf is behaving in this strange way, and anything I can do about it?

所有回覆 (3)

more options

Can you link an example page that has this problem?

more options

Alas, the pages I am struggling are full renderings of proprietary online surveys, and I can't link to them. I tried a few other long web pages, and found that most work OK, but in a couple of cases, weird things happen that seem related to, but not identical with my original problem. For example,

https://www.facebook.com/WSUFF

Typical facebook page -- save to pdf as of just now gives seven mostly blank pages after the first, just repeating a small amount of material over and over. (For my survey renderings, the pages are pure blank, nothing repeated.)

https://www.nytimes.com/

New York Times home page, sometimes (not always) renders with a bunch of blank pages at the end, with the bottom of the page missing. Other problems in the rendering are visible, perhaps because the page is quite complex in layout. (In my case, nothing is omitted, and the layout is accurate other than the huge number of blank pages randomly placed.)

On the other hand, even quite long Wikipedia pages render nicely. I check every long page I come across, and will add other examples if I see any.

more options

Those are login users sites only - so unless there is another user with access to those site they won't be able to fully see what is happening. And sometimes printing from web site introduces blank pages to the print as well so unless they give you a pdf file to download and print or open in acrobat reader to print this could be result of the site format pdf isn't compatible with pdf printing. Also you have to consider this could be a site protection on there site to prevent someone from just downloading the site news? You should also contact their site support and how to print a pdf or article from their site and if there is a different printing format setup you need to setup to print the articles or pdf from their site.