Joined: Wed Sep 14, 2011 1:52 pm Posts: 1
|
Hi Am new to using PDFSharp and have a problem that is confusing me no end... Have a Landscape document that I am trying to switch to Portrait
The code is
XPdfForm form = XPdfForm.FromFile(doc);
PdfDocument outDoc = new PdfDocument(); for (int idx = 0; idx < form.PageCount; idx++) { form.PageNumber = idx + 1; if (orientation == enumOrientation.enumOrientationLandscape) { form.Page.Orientation = PdfSharp.PageOrientation.Landscape; form.Page.Rotate = 90; } else { form.Page.Orientation = PdfSharp.PageOrientation.Portrait; form.Page.Rotate = 270; }
outDoc.AddPage(form.Page);
we have a global page numbering routine, when this puts a page number on these pages it appears on the Right hand side (landscape bottom) and not the bottom of the switched Portrait page
Can anyone help?
Carl
|
|