Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Print PDF (Read 1713 times)
esri_test
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 44
Joined: Aug 21st, 2013
Print PDF
Sep 16th, 2013 at 7:59pm
Print Post  
Is there any example to show how MindFusion print content to PDF?
If it does, can it print international characters to PDF?

Thanks,
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Print PDF
Reply #1 - Sep 17th, 2013 at 6:01am
Print Post  
Add a reference to the MindFusion.Diagramming.Wpf.PdfExport.dll assembly to your project. Then you will be able to export to PDF like this:

Code
Select All
using MindFusion.Diagramming.Wpf.Export;

var dlg = new SaveFileDialog
{
	FileName = "Diagram",
	DefaultExt = ".pdf",
	Filter = "Diagram Files (.pdf)|*.pdf"
};

var result = dlg.ShowDialog();
if (result == true)
{
	var pdfex = new PdfExporter();
	pdfex.Export(diagram, dlg.FileName);
} 



You should be able to use any Unicode strings. This shows exported PDF containing some accented and Chinese characters:
http://mindfusion.eu/_samples/export_wpf.pdf

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint