0
2
I have received a non-human readable file which I would like to make human readable.
How would I go about getting the text content from the following file:
thufir@dur:~/Documents$
thufir@dur:~/Documents$ file mystery.pdf
mystery.pdf: HP Printer Job Language data
thufir@dur:~/Documents$
thufir@dur:~/Documents$ pdfinfo mystery.pdf
Syntax Warning: May not be a PDF file (continuing anyway)
Syntax Error: Couldn't find trailer dictionary
Syntax Error: Couldn't read xref table
thufir@dur:~/Documents$
thufir@dur:~/Documents$ head -n 2 mystery.pdf
%-12345X@PJL
@PJL ENTER LANGUAGE = HBP
thufir@dur:~/Documents$
I don't think it is a pdf file at all,but has been print to file
'ed instead of export pdf
'ed, or similar, so the result is a file in PJL not a pdf.
see also:
http://forums.fedoraforum.org/showthread.php?t=247913
I can use ghostscript to get it back into something human readable?
It's about 4000 lines of:
�x]�x�
when directly viewed with cat or similar.
can you run
head -n 50 mystery.pdf
and see if after the@PJL
lines end there is a%PDF-1.X
line appearing? – Kurt Pfeifle – 2014-10-08T18:46:24.810