I'll post the patch in the bug report.
Hans
>
>
>
>
>
> Op Wed Dec 08 2021 22:34:24 GMT+0100 (Central European Standard Time)
> schreef Dave Kemper :
>
> -- Oorspronkelijk bericht --
>
>
>
>
>
> On 12/7/21, Hans Bezemer wrote:
> > Changed the
> appropriate lines into:
On 12/7/21, Hans Bezemer 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
On Tue, Dec 07, 2021 at 06:49:11PM +0100, Hans Bezemer wrote:
> 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:
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
Hi Hans,
> I've noticed a suggestion in the "Problems with .PDFPIC caused by
> pdfinfo" thread to use awk instead of sed.
The original also uses grep(1) and sed(1) when sed could do the
grepping.
This shows how it can be done with awk(1).
$ pdfinfo foo.pdf |
> awk '/^Page size:/ {print
Dear members,
I've switched to OpenBSD recently and noticed unexpected behaviour of the
PDFPIC macro: There's no vertical space reserved.
The culprit seems to be the use of '\n' in the line where sed is used (line 89):
. sy pdfinfo @$1 | \
grep "Page *size" | \
sed -e 's/Page *size: *\\([[:d