I am trying to convert a PDF file to an image, and in the process crop to the first third(approx) of top of the first page.
This command gives me the whole page and changing the -g option crops toward the bottom left corner if I make the values smaller.
for %%x in (*) do "......\program\gs\gs9.23\bin\gswin32c.exe" -g2500x3300 -dFIXEDMEDIA -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 -sDEVICE=pngalpha -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -r300x300 -dBATCH -dNOPAUSE -dFirstPage=1 -dLastPage=1 -SOutputFile="%%~nx.png" "%%~nx.pdf"
I want the smaller image so that OCR on the image is then faster, and most letters/docs I am dealing with have the information I am after in the top third.