[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Use of sed in PDFPIC macro with OpenBSD
From: |
Hans Bezemer |
Subject: |
Re: Use of sed in PDFPIC macro with OpenBSD |
Date: |
Tue, 7 Dec 2021 18:49:11 +0100 |
Hi Ralph,
> > awk '/^Page size:/ {print ".nr pdf-wid (p;"$3")"; print ".nr pdf-ht
> (p;"$5")"}'
> .nr pdf-wid (p;595)
> .nr pdf-ht (p;842)
> $
Thanks, this helped.
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.
Kind regards,
Hans
pdfpicbsd.patch
Description: Text document