为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

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

  • 3 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 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.