Thread: Cropping PDFs
View Single Post
Old 09-12-2006, 07:36 AM   #24
arivero
Guru
arivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it is
 
arivero's Avatar
 
Posts: 607
Karma: 2157
Join Date: Oct 2005
Device: NCR3125, Nokia 770,...
Quote:
Originally Posted by yokos
Well, I tried this; I didn't worked for me. Adobe Reader can't read this file anymore. Perhaps I did it the wrong way.
For instance it doesnt work with sed, because it wipes away the null characters or something so. It is a pity because

cat prueba.pdf | sed 's/MediaBox \[.*\]/MediaBox \[0 0 300 500\]/g' > prueba2b.pdf

sounds elegant. I wonder if there is some utility to transform binary pdf files to text and back.
arivero is offline   Reply With Quote