From fb902c0a509c166b008b8ead7a746325d0823a30 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Mon, 20 Apr 2015 17:54:45 +0200 Subject: [PATCH] =?utf8?q?Briefdruck.=20Bildschirmauswahl=20=C3=BCberlager?= =?utf8?q?t=20Drucker?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Wie in den anderen Druckvorlagen auch. Falls media eq screen, immer am Bildschrim (Browser) ausdrucken. --- bin/mozilla/letter.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/mozilla/letter.pl b/bin/mozilla/letter.pl index 710cf8a19..172ea1b8a 100755 --- a/bin/mozilla/letter.pl +++ b/bin/mozilla/letter.pl @@ -398,7 +398,8 @@ sub print_letter { return $err?0:1; } - if (!$::form->{printer_id}) { + if (!$::form->{printer_id} || $::form->{media} eq 'screen') { + my $file = IO::File->new($pdf_file_name, 'r') || croak("Cannot open file '$pdf_file_name'"); my $size = -s $pdf_file_name; my $content_type = 'application/pdf'; -- 2.20.1