Hello,

I'm using groff and -Tpdf and pictures included with .PDFPIC.
PDFPIC always crashes. The reason is, that pdfinfo has in its stdout text not 
only text but also a '\0' char. The effect is, that pdfinfo | grep gives an 
error message instead of the line containing the measurements.

What I did, is adding --text to grep, like 

.sy pdfinfo @$1 | grep --text "Page *size" | ..

guilty is pdfinfo
$ pdfinfo -v
pdfinfo version 0.66.0
Copyright 2005-2018 The Poppler Developers - http://poppler.freedesktop.org
Copyright 1996-2011 Glyph & Cog, LLC


But anyway adding --text is a good workaround

 Heinz



Reply via email to