Closed Bug 839916 Opened 12 years ago Closed 12 years ago

Header and footer are visible by default when printing PDF page

Categories

(Firefox :: PDF Viewer, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 743252

People

(Reporter: julian.viereck, Unassigned)

Details

When printing a page using the current version of PDF.JS the default print header/footer is included. For "normal" web pages this makes sense, but I find it annoying when printing PDFs. I don't think people expect to find a header/footer there. I pinged :bdahl sometimes back why the css-page-margin=0 doesn't hide the header/footer as well like Chrome does it. I think the header/footer is still displayed in Firefox as this is the way the spec is stated. Implementing a proper control over the header/footer requires implementing the CSS 3 Paged Media spec which a) is huge b) I'm not sure people think is a "good" spec that should be supported and implemented To still get to the goal (no header/footers in PDF printout form Firefox) I propose to take a shortcut. Let's implement a "mozNoPrintHeaderByDefault" and "mozNoPrintFooterByDefault" flag similar to the "mozdisallowselectionprint" flag implemented in bug #830278. If this flag is set on the body tag, the the setting for the header/footer on the page are set by default to "--blank--". That way there will be no printed header/footer by default when using PDF.JS, but the user still has the possibility to reenable the header/footer if he likes. There could also be an option in PDF.JS to set the page header/footer to "--blank--" by default or not.
Dup of bug 743252 ?
(In reply to Yury Delendik (:yury) from comment #1) > Dup of bug 743252 ? Thanks Yury! Closing this on in favor of bug #743252 as it has more comments.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.