PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Oct 19, 2019 9:17 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Sun Aug 26, 2018 9:37 pm 
Offline

Joined: Sun Aug 26, 2018 9:22 pm
Posts: 5
Its seems that MigraDoc doesn't support piechart while pdfsharp do support all types of chart. Also mixing MigraDoc and pdfsharp is also a issue and hence I'm not able to try the option. Can you provide a solution to implement piechart in Migradoc?
Note: Mixing Migradoc with pdfsharp is an issue becos charts appear in between document, so every time to insert the chart we need to render the document. Also it causes loss to the functionalities like page numbering, content of table etc.


Top
 Profile  
Reply with quote  
PostPosted: Mon Aug 27, 2018 5:54 am 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 483
Location: CCAA
There are different ways to mix PDFsharp and MigraDoc.
You can use PDFsharp to create a PDF with a pie chart and use that like an image in a MigraDoc document, not losing page numbers, headers, footers.

I do not know which chart types are available with MigraDoc.

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


Top
 Profile  
Reply with quote  
PostPosted: Mon Aug 27, 2018 9:45 am 
Offline

Joined: Sun Aug 26, 2018 9:22 pm
Posts: 5
Hi,

Thanks for your quick reply. That s a good idea. Can you pls hint how to convert a chart object in PDFSharp to bitmap. I tried playing with XGraphics object but can't get bitmap from it.

Thanks & Regards


Top
 Profile  
Reply with quote  
PostPosted: Mon Aug 27, 2018 10:06 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 2980
Location: Cologne, Germany
Benny wrote:
I tried playing with XGraphics object but can't get bitmap from it.
AIUI you can get a Graphics object for a bitmap and get an XGraphics object for a Graphics object.
Or use PDFsharp to create a PDF with the pie chart and use that PDF as you would use a bitmap file with MigraDoc.

_________________
Regards
Thomas Hoevel
PDFsharp Team


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 253 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:  
cron
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group