ich würde gerne in pdf-Dateien, so wie hier beschrieben https://stackoverflow.com/questions/618 ... ript-9-01, den Text /CropBox um wandeln in z.B. /cROPBoX. Allerdings nicht von Hand per Editor, sondern mit Autohotkey.
Ich dachte in etwa so:To be more specific: it will not work for PDFs which come along with their own /CropBox already defined to specific values. A dirty hack around that is to change the string /CropBox for all pages where it is desired to /cROPBoX (or similar case-changing) with a text editor prior to running the above GS command. The case-change effectively "disarms" the cropbox setting (without changing any PDF object offsets invalidating the existing xref table) so it is no longer considered by PDF renderers.
Code: Select all
VarSetCapacity(ThePdfText, -1 )
FileRead, ThePdfText, MeinepdfDatei.pdf
StringReplace, ThePdfText, ThePdfText, /CropBox, /cROPBoX, All
FileDelete, MeinepdfDatei.pdf
FileAppend, %ThePdfText%, MeinepdfDatei.pdf
ThePdfText := ""
(Probiere ich das gleiche über PSPad, lässt sich die Datei komischerweise nicht als pdf speichern)
Hat jemand eine Idee, wie das per ahk klappen könnte?