Package: groff Version: 1.22.4-8 Severity: normal If one invokes groff with -Tpdf, it does not understand the com10 paper size used in North American Commercial / Number 10 envelopes, and the paper size used is A4. However, if one uses -Tps, then the same invocation is recognized, and the correct size is used.
For example, with the below envelope.me, running the first command below produces a PDF with the wrong paper size, but running the second command below produces a PostScript file with the correct paper size: groff -Tpdf -dpaper=com10l -P-pcom10 -P-l -k -KUTF-8 envelope.me >envelope.pdf groff -Tps -dpaper=com10l -P-pcom10 -P-l -k -KUTF-8 envelope.me >envelope.ps I should point out that the system is not configured to use A4 because that is not generally available here, although I understand that it is a sensible default if the paper type is not understood. The gropdf(1) manual page directs users to groff_font(5), which does indeed document the com10 format. groff_tmac(5) documents the use of the "l" suffix for landscape, which is usual for this form of envelope (and required by local postal authorities), and suggests a command line similar to the above. Ideally, since this is supported in grops and it's documented to work, I could indeed use -Tpdf for envelopes. In the mean time, I've used ps2pdf as a workaround. envelope.me ---- .nf .po 0.5c .sp 0.5c .ft P Hôtel de Ville de Toronto 100 Rue Queen O Toronto ON M5H 2N2 Canada .sp 2c .in 8.5c New York City Hall 1 City Hall New York NY 10007-1298 États-Unis --- -- System Information: Debian Release: bookworm/sid APT prefers stable-security APT policy: (500, 'stable-security'), (500, 'unstable'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.15.0-3-amd64 (SMP w/8 CPU threads) Kernel taint flags: TAINT_WARN Locale: LANG=fr_FR.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages groff depends on: ii groff-base 1.22.4-8 ii libc6 2.33-7 ii libgcc-s1 12-20220319-1 ii libstdc++6 12-20220319-1 ii libx11-6 2:1.7.5-1 ii libxaw7 2:1.0.14-1 ii libxmu6 2:1.1.3-3 ii libxt6 1:1.2.1-1 Versions of packages groff recommends: ii ghostscript 9.56.0~dfsg-1 ii imagemagick 8:6.9.11.60+dfsg-1.3+b2 ii imagemagick-6.q16 [imagemagick] 8:6.9.11.60+dfsg-1.3+b2 ii libpaper1 1.1.28+b1 ii netpbm 2:10.97.00-2 ii perl 5.34.0-3 ii psutils 1.17.dfsg-4 groff suggests no packages. -- no debconf information -- brian m. carlson (he/him or they/them) Toronto, Ontario, CA
signature.asc
Description: PGP signature