I've been trying several GS commands to remove the margins from right and left side of a PDF file such as:
gs \
-q -dNOPAUSE -dBATCH \
-sDEVICE=pdfwrite \
-dSAFER \
-dCompatibilityLevel=1.3 \
-dPDFSETTINGS=/printer \
-dSubsetFonts=true \
-dEmbedAllFonts=true \
-sPAPERSIZE=a4 \
-sOutputFile=d:\\ghost\\gs\\bin\\shiftedgulf.pdf \
-c <</BeginPage{0.9 0.9 scale 29.75 42.1 translate}>> setpagedevice \
-f d:\\ghost\\gs\\bin\\gulf.pdf"
but its like nothing is happening, my question is there any effective, direct and clear way to achieve this ?
Maybe this questions is duplicated but I tried most of the scripts and none of them is giving me any result, any other command line tool might be suggested is fine as well.