PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
Preview - different page sizes https://forum.pdfsharp.net/viewtopic.php?f=2&t=3558 |
Page 1 of 1 |
Author: | fkMigra [ Fri Mar 24, 2017 10:37 am ] |
Post subject: | Preview - different page sizes |
Hi, I want to create a document with different page sizes. I see in another post that I have to define the page setup for each section. But in the documentviewer preview both pages have the same size (section1). public static void Test(Document document) { var section1 = document.AddSection(); section1.PageSetup = document.DefaultPageSetup.Clone(); section1.PageSetup.PageHeight = "297mm"; section1.PageSetup.PageWidth = "190mm"; var section2 = document.AddSection(); section2.PageSetup = document.DefaultPageSetup.Clone(); section2.PageSetup.PageHeight = "190mm"; section2.PageSetup.PageWidth = "297mm"; } ... view.preview.Ddl = DdlWriter.WriteToString(document); |
Author: | TH-Soft [ Sat Mar 25, 2017 7:33 pm ] |
Post subject: | Re: Preview - different page sizes |
Hi! That's a know bug. Please apply the fix shown here: viewtopic.php?p=10635#p10635 |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |