[OS X TeX] [pdftk] MacOS Roman -> Western ISO Latin 9

David Watson dewatson at me.com
Sun Jan 4 16:24:49 EST 2009


On Jan 4, 2009, at 3:15 PM, Friedrich Vosberg wrote:
>
>>  If that looks okay, open it in a hex editor and see what the first  
>> line looks like, or use vim -b in Terminal.
>
> <feff>#!/bin/sh
> basefname="`basename "$1" .tex`"
> lp -o media=a4 "${basefname}.pdf"
> pdftk "${basefname}.pdf" background ~/Pictures/Watermarks/ 
> bgabschrift.pdf output printfile.pdf
> lp -o sides=two-sided-long-edge -o media=a4 printfile.pdf
> rm printfile.pdf
> ~
> ~
[snip]

> What is <feff>?
>

That's the "file magic" - try deleting the character(s) in vim by  
typing "x" once or twice, then ":wq".

This should delete the bytes at the beginning, and then `file  
yourengine.engine` should show it as a text file.



More information about the MacOSX-TeX mailing list