PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Apr 27, 2024 3:47 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
 Post subject: XGraphics.FromGraphics
PostPosted: Wed Mar 24, 2010 10:58 pm 
Offline

Joined: Tue Mar 16, 2010 2:48 am
Posts: 2
Hi,

Initially, I create XGraphics from a PdfPage.
But, then I have another graphics object as parameter, then I have to use XGraphics = Xgraphics.FromGraphics (graphics) method.

But then, how do I convert this XGraphics back to PDFpage's Xgraphics so that the graphic object can be printed to PDF?

Thank you

Kind Regards,
David


Top
 Profile  
Reply with quote  
PostPosted: Thu Mar 25, 2010 7:46 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3096
Location: Cologne, Germany
Hi, David!
silkkeng wrote:
But then, how do I convert this XGraphics back to PDFpage's Xgraphics so that the graphic object can be printed to PDF?

You can use XGraphics to draw on PDF, screen, and printer.
Simply create different XGraphics objects and call the same drawing routines. No conversion available (AFAIK), simply draw again.

_________________
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: Google [Bot] and 356 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