Printing a web page either on paper or as a .PDF file, usually through the browser.
Questions tagged [printing-web-page]
236 questions
2
votes
1 answer
Catching errors in Electron Printing
The print dialog doesn't seem to appear when I have no printers attached with electron's built in printing. Right now I wait for the webpage to load then I print the page but no print message is displayed and no print error is displayed. I print…

Kobe Bryant
- 31
- 2
2
votes
2 answers
HTML, printable hyperlink references, like table of contents
A link in an HTML document is normally clickable. However, on a printed page, that feature is by natural causes not available.
Link to foo
[... loads of content ...]
Here is foo
Klicking on "Link to foo" on screen…

Johan
- 5,003
- 3
- 36
- 50
2
votes
2 answers
Convert a dynamic background image into an
for printing
I am trying to convert a dynamically generated inline style background-image: url("xyz") into an img src="xyx" that will be opened in a new tab/window for print. I can pull in the url inline image into the img src but when clicking on the print…

Bobby Etheredge
- 101
- 10
2
votes
1 answer
HTML Prints with different spacing depending on operating system
I have an odd problem where an html table will print different on different operating systems.
The document being printed is within an IFrame and contains a table. On windows xp and below everything works fine.
On windows 7, the table prints with a…

clamchoda
- 4,411
- 2
- 36
- 74
2
votes
2 answers
How come in chrome I get a black background when trying to print but in IE it looks fine
Does anyone know why I maybe getting black backgrounds in my article tags when I go to print my web page. The backgrounds are actually white and in internet explorer they look just fine. It displays a black background in the chrome print preview…

user1984027
- 111
- 1
- 7
2
votes
1 answer
Printing an HTML document
I'm printing an HTML document successfully with the following code:
using (WebBrowser webBrowser = new WebBrowser())
{
webBrowser.DocumentText = text;
while (webBrowser.ReadyState != WebBrowserReadyState.Complete)
…

toy4fun
- 839
- 2
- 14
- 33
2
votes
0 answers
Is page-break-before/inside/after still not supported in Safari?
I don't understand why my tests for CSS2 page-breaks don't reveal success -- MDN for page-break-before, page-break-inside and page-break-after indicate that avoid is supported since Safari (Webkit) 1.2 (125), yet in my tests, a sample XHTML 1.0…

cnst
- 25,870
- 6
- 90
- 122
2
votes
1 answer
Does printing of an HTML page re-execute javascript?
I'm wondering what is happening when you print an html page in the different browsers (IE9++).
Do the different browsers refresh the page re-executing the javascript (implying re-executing some servers calls) ?
How to know you're refreshing -if -…

ic3
- 7,917
- 14
- 67
- 115
2
votes
2 answers
add header when page breaks when using page-break-inside: avoid wth css or javascript or from browser?
i have a page that has sections as divs with inner divs and content. The numberof divs varies alot from less than a page to many pages when printing.
I am using page-break-inside: avoid on every section div so that all sections are never printed / …

richard moss
- 339
- 1
- 8
- 13
2
votes
1 answer
HTML page to Print - How to manipulate the printer settings prior to printing automatically
My client wants their client to be able to print the results of an html page in a printer friendly format so using media queries and css we created a print stylesheet. When we look at the page in print preview, the printer sets the document up to…

user2414822
- 21
- 1
- 3
2
votes
5 answers
Printing web page programmatically in JSP
I have a J2EE based web application.
In one of the pages there is a button labeled "Print".
My problem is something like this:
User enters tool names for e.g:
ToolName1
ToolName2
ToolName3
Then clicks on "Print".
The intended action is that tool…

ria
- 7,904
- 11
- 39
- 46
2
votes
5 answers
Capture screenshot of website on the client (Javascript or flash)
Is there some method to issue a screen capture(browser window content only) from the browser with javascript or a embedded flash object etc so that a full quality image of the page content be saved or printed or an alternative approach.
I have a web…

Vaibhav Garg
- 3,630
- 3
- 33
- 55
2
votes
3 answers
Detect if all iframes in a page has src
I have a page with a dynamic number of iframes. window.print() has to be called when iframes has loaded (ie. has src).
How can this be handled elegantly in pure JavaScript without being to pedantic?

PHearst
- 751
- 6
- 29
1
vote
1 answer
html2ps - How do I print small labels?
I've been working with html2ps to get some text only labels to print correctly on a Dymo 450 Labelwriter printer. According to this page you should be able to resize the page using CSS. Here's the CSS I tried (in an external file and also tried it…

jjclarkson
- 5,890
- 6
- 40
- 62
1
vote
1 answer
How to change the position of window.print() pages number?
Does anyone know how to move the sheets of paper-number position from the right-bottom to the top-bottom?
Thanks.

Sandy Fu
- 71
- 1
- 3