PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Tue Jul 02, 2024 5:17 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri Feb 25, 2011 3:59 pm 
Offline

Joined: Wed Feb 16, 2011 12:16 pm
Posts: 4
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


Top
 Profile  
Reply with quote  
PostPosted: Mon Feb 28, 2011 8:01 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3101
Location: Cologne, Germany
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.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 34 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group