File: default_paper_size.patch

package info (click to toggle)
html2ps 1.0b7-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,208 kB
  • sloc: perl: 4,539; tcl: 1,799; sh: 38; makefile: 4
file content (28 lines) | stat: -rw-r--r-- 722 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From: Stephen Zander <gibreel@debian.org>
Last-Update: 2002-11-19
Description: Add support to the default paper size
 Uses paper size specified by libpaper instead of defaulting to A4. This
 makes the software integrate better with the system and user
 spectations of it.

diff --git a/html2ps b/html2ps
index 07b79e8..51a60b6 100755
--- a/html2ps
+++ b/html2ps
@@ -28,6 +28,7 @@ eval 'exec perl -S $0 "$@"'
 
 $globrc='/it/sw/share/www/lib/html2ps/html2psrc';
 $ug='/it/sw/share/www/lib/html2ps/html2ps.html';
+$default_paper=`paperconf` || 'a4';
 
 $conf=<<'EOR';
 @html2ps {
@@ -46,7 +47,7 @@ $conf=<<'EOR';
     path: "";
   }
   paper {
-    type: A4;
+    type: $default_paper;
     height: "";
     width: "";
   }