PDFsharp & MigraDoc Foundation http://forum.pdfsharp.de/ |
|
Text that goes over a page http://forum.pdfsharp.de/viewtopic.php?f=2&t=1561 |
Page 1 of 1 |
Author: | paulv [ Fri Feb 25, 2011 3:59 pm ] |
Post subject: | Text that goes over a page |
If I create a page something like this PdfDocument document = new PdfDocument(); PdfPage page = document.AddPage(); page.Orientation = PageOrientation.Portrait; page.Size = PageSize.A4; XGraphics gfx = XGraphics.FromPdfPage(page); Document doc = new Document(); Section sec = doc.AddSection(); // Add a single paragraph with some text and format information. Paragraph para = sec.AddParagraph(); then create a paragraph to include the text, I am not sure how I know if the text has to go over another page. Also I don't know how I create another page to allow that extra text to go over the page. Paul |
Author: | Thomas Hoevel [ Mon Feb 28, 2011 8:01 am ] |
Post subject: | Re: Text that goes over a page |
Document, Section, and Paragraph belong to MigraDoc - and MigraDoc creates pages automatically. See the MigraDoc samples (e. g. Hello World and Hello MigraDoc) for further information. Your code snippet mixes PDFsharp code and MigraDoc. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |