Link to home
Start Free TrialLog in
Avatar of steelspy
steelspyFlag for United States of America

asked on

Can I use sed to edit a PDF???

Can I use sed (or vi) to edit a PDF? or will it cause bad things to happen?

I want to change all occurences of

/Rotate 0

to

/Rotate 90

I was told that this will corrupt the PDF.  Something about offsets within the PDF and the change in the file size.

I haven't run into the problem with acrobat reader 6.0 or 7.0 when viewing the PDF after modifying them in such a fashion.

Should I be concerned?

Is there another tool I can use in a UNIX environment to perform the rotate I am trying to achieve?

If so, what is the tool and the syntax I need to use?
ASKER CERTIFIED SOLUTION
Avatar of Karl Heinz Kremer
Karl Heinz Kremer
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial