groff
[Top][All Lists]
Advanced

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

[groff] pdfpic.tmac


From: Heinz-Jürgen Oertel
Subject: [groff] pdfpic.tmac
Date: Wed, 22 Aug 2018 18:42:32 +0200

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

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