public static void SetPrintDlgPropertiesUsingPdfContentEditor() { //ExStart:SetPrintDlgPropertiesUsingPdfContentEditor string dataDir = RunExamples.GetDataDir_AsposePdf_WorkingDocuments(); string outputFile = dataDir + "input.pdf"; using (PdfContentEditor ed = new PdfContentEditor()) { ed.BindPdf(outputFile); if ((ed.GetViewerPreference() & ViewerPreference.DuplexFlipShortEdge) > 0) { Console.WriteLine("The file has duplex flip short edge"); } ed.ChangeViewerPreference(ViewerPreference.DuplexFlipShortEdge); ed.Save(dataDir + "SetPrintDlgPropertiesUsingPdfContentEditor_out.pdf"); } //ExEnd: SetPrintDlgPropertiesUsingPdfContentEditor }