PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
Orientation Issue https://forum.pdfsharp.net/viewtopic.php?f=2&t=1785 |
Page 1 of 1 |
Author: | washedupcoder [ Wed Sep 14, 2011 1:59 pm ] |
Post subject: | Orientation Issue |
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 |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |