I was wondering how to view and edit the code of a PDF file?
By viewing, I don't want to see the binary format, so I think
hexdumpmay not be what I want. I triedgedit, but no encoding method can be used to decode the PDF content.By editing, I would like to search for
/Fitand change them to/XYZby for example sed. But my commandsed s/\/Fit/\/XYZ/ < 1.pdf > 2.pdfseem not change the appearance of my PDF as I expected, although it doesn't report any error. I was wondering ifsedcan actually work on PDF files as if they were plain text?
The context of my questions can be found from this question. My OS is Ubuntu 10.10.