Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: CSS: @media print attributes

by onelesd (Pilgrim)
on Sep 13, 2011 at 18:12 UTC ( #925748=note: print w/ replies, xml ) Need Help??

in reply to CSS: @media print attributes

Since this is a perl website, I recommend you write some perl to make a printable version of the page and be done with it: http://domain.tld/page?print=1

Comment on Re: CSS: @media print attributes
Replies are listed 'Best First'.
Re^2: CSS: @media print attributes
by AlexTape (Monk) on Sep 14, 2011 at 12:01 UTC
    use strict; use CGI::Carp qw(fatalsToBrowser); use CGI ':standard'; use HTML::Barcode::Code93; my ($cgi,$code,$media); $media =<<END; @media print { BODY {background-color: inherit !important;background-image: inherit ! +important;} } END $cgi = new CGI; print $cgi->header(); print $media; $code = HTML::Barcode::Code93->new(text => 'code'); print $code->render; 1;
    it still is a perl output..
    $perlig =~ s/pec/cep/g if 'errors expected';

      But it has nothing to do with perl :)

      Its not interpreted by perl

      Its not validated by perl

      Its not displayed by perl

      Its a browser that refuses to print the background colors because that is a feature of the browser

      Its a browser user feature

      You can't circumvent this browser feature

      If a browser allowed random websites/htmlfiles to circumvent user features, it wouldn't be a very secure browser

      Think about it

      When users want to print pictures, browsers are pretty smart in actually printing pictures, maybe you want to give users a real picture (png/gif)

        i never conversed the argue ?! ;-) you can circumvent this with perl substitution of the pref.js temporarily during the label printing runtime. or laying down a ff profile and then invoke it with perl if you want to print a html bg. the postscript option is still the best way to go. security is not so much important because its for a local repository workspace in a locked environment. your right. it has no bearing on perl.
        $perlig =~ s/pec/cep/g if 'errors expected';

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://925748]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2015-11-29 15:05 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (751 votes), past polls