On 12/7/21, Hans Bezemer <hbeze...@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.