format and crop with ghostscript

32 Views Asked by At

Good morning,

My customer sends me the label + instructions for use. I would like to keep only the shipping label and switch to a 10x15 format to edit it on my zebra. how to do it with ghostscript. THANKS

enter image description here

I added the parameters dDEVICEHEIGHTPOINTS=100 -dDEVICEWIDTHPOINTS=150 and -dUseCropBox to my old ghostscript parameters.

            if QuelEditeurPdf == "GS" then
                local paramGS = ' -dPrinted -dBATCH -dNOPAUSE -q - 
                dDEVICEHEIGHTPOINTS=100 -dDEVICEWIDTHPOINTS=150 -  dUseCropBox -sDEVICE=mswinpr2 
                -sPAPERSIZE=' .. Size .. '-dNumCopies=' .. nbCopies
            if ScriptFileExists(cheminPdf) then
                local cmd = gswin64 .. paramGS .. ' -sOutputFile="%printer%' .. 
                imprimante .. '" "' .. cheminPdf .. '"'
                local f, err = io.popen(cmd)`
0

There are 0 best solutions below