PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Mar 28, 2024 12:58 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: Mon Dec 02, 2013 4:15 pm 
Offline

Joined: Tue Oct 16, 2012 7:29 am
Posts: 6
I'm struggling to figure out how to elegantly draw directly on a MigraDoc Document from coordinates.

I suppose I could first render my entire MigraDoc Document; save to pdf; reload pdf as PdfSharp PdfDocument; and then get an XGraphics from the desired PdfPage and then go from there. That could work for what I need, but it isn't very nice. So I came to thinking:

Is there a recommended way for doing this?

P.S. I've looked at the Mix MigraDoc and PDFsharp example, but that seems to be concerned only with how to stuff MigraDoc into PdfSharp, not the other way around.


Top
 Profile  
Reply with quote  
PostPosted: Mon Dec 02, 2013 4:25 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3095
Location: Cologne, Germany
abam wrote:
P.S. I've looked at the Mix MigraDoc and PDFsharp example, but that seems to be concerned only with how to stuff MigraDoc into PdfSharp, not the other way around.
It works both ways. Create a new PDF page for every new MigraDoc page, let MigraDoc draw it's stuff and then add what you want to add.
That's slightly more elegant than opening the file with PDFsharp after MigraDoc has finished.

_________________
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: No registered users and 135 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