groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Use of sed in PDFPIC macro with OpenBSD


From: Dave Kemper
Subject: Re: Use of sed in PDFPIC macro with OpenBSD
Date: Wed, 8 Dec 2021 15:34:24 -0600

On 12/7/21, Hans Bezemer <hbezemer@kliksafe.nl> wrote:
> Changed the appropriate lines into:
> .  sy pdfinfo @$1 | \
> awk '/^Page size:/ {print ".nr pdf-wid (p;"$3")"; \
> print ".nr pdf-ht  (p;"$5")"}' \
>> /tmp/pdfpic\n[$$]
>
> This seems to work fine.
> I've attached a patch file.

If this is portable (I don't know awk at all), it would also fix bug
#58206 (http://savannah.gnu.org/bugs/?58206), since it eliminates the
grep that is causing that problem.  Might be worth posting your patch
in that bug report.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]