How can I override PDF print dialog settings with iTextSharp
问题 Can any one tell me how to override page orientation selection in pdf print dialog using iTextSharp. I am using these lines to override scaling and "Choose paper source by PDF page size" writer.AddViewerPreference(PdfName.PRINTSCALING,PdfName.NONE); writer.AddViewerPreference(PdfName.PICKTRAYBYPDFSIZE, PdfBoolean.PDFFALSE); 回答1: Please check table 150, entitled "Entries in a viewer preferences dictionary", in ISO-32000-1 (you can download a copy from the Adobe web site). It contains all the