I am using Ghostscript version 9.54 to convert pdf files to pdf/a format. There are some pages in the pdf file that are oriented landscape and they are converted to portrait in the output file. Is there a switch in the Ghostscript that preserves the orientation ?
There are several posts talking about -dAutoRotatePages=/None but it did not work.
string[] args = {
"-dAutoRotatePages=/None"
"-dPDFA=2",
"-dBATCH",
"-dNOPAUSE",
"-sColorConversionStrategy=UseDeviceIndependentColor",
"-sDEVICE=pdfwrite",
"-dPDFACompatibilityPolicy=1",
$"-sOutputFile={outfile}",
infile,