{
raw=$3; //or whichever column the phone# is in
area=substr(raw,1,3);
prefix=substr(raw,4,3);
suffix=substr(raw,7);
print $1, $2, "("area")"prefix"-"suffix
}
у меня работает
pdftotext
есть опция -layout
:
-layout
Maintain (as best as possible) the original physical
layout of the text. The default is to ´undo' physical
layout (columns, hyphenation, etc.) and output the text
in reading order.
Однако он не работает с графикой.