Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Bugs with PDF Export (Read 6312 times)
benm
YaBB Newbies
*
Offline


I <3 MindFusion

Posts: 32
Location: CA
Joined: Dec 10th, 2008
Bugs with PDF Export
Sep 13th, 2009 at 6:18am
Print Post  
I am using the WPF diagram to display a graph of custom WPF user controls as the nodes. These controls include some text boxes among other things. I am using the following code to export:

Code
Select All
PdfExporter pdf = new PdfExporter();
pdf.AutoScale = AutoScale.FitToPageNoUpScale;
pdf.AutoOrientation = true;
pdf.PageSize = MindFusion.Pdf.PageSize.Letter;
pdf.Export(myDiagram, filename); 



And there are two major problems with the export:

1) The export takes up to 2 minutes to complete. It appears as if the software has crashed and may confuse casual users.

2) If the text boxes have too much text as to where it should be cut off, the entire text is shown through the bottom of the text box. (Image Attached)



Thanks and I look forward to hearing about any fixes for these issues.

-Ben
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Bugs with PDF Export
Reply #1 - Sep 13th, 2009 at 11:34am
Print Post  
Could you email the XAML for the user control to support@mindfusion.eu?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Bugs with PDF Export
Reply #2 - Sep 15th, 2009 at 2:57pm
Print Post  
This version should fix the clipping and possibly work a bit faster:
https://mindfusion.eu/_beta/wpfdiag_pdfclip.zip
  
Back to top
 
IP Logged
 
benm
YaBB Newbies
*
Offline


I <3 MindFusion

Posts: 32
Location: CA
Joined: Dec 10th, 2008
Re: Bugs with PDF Export
Reply #3 - Sep 17th, 2009 at 6:29am
Print Post  
The clipping does appear to be working on the bottom of the text boxes, but now there are more serious problems:



The output is still very slow as well. I may just have too many render elements for this application.

-Ben
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Bugs with PDF Export
Reply #4 - Sep 17th, 2009 at 11:17am
Print Post  
Right, seems we must reset the PDF clip region occasionally... This version should do fix this:
https://mindfusion.eu/_beta/wpfdiag_pdfclipfix.zip

Regarding slow output, how big in KB are the portrait images you are using? There isn't any noticeable delay when using just the icons you emailed us with the xaml, and perhaps encoding the portrait images into the PDF output stream takes a longer time.

Stoyan
  
Back to top
 
IP Logged
 
benm
YaBB Newbies
*
Offline


I <3 MindFusion

Posts: 32
Location: CA
Joined: Dec 10th, 2008
Re: Bugs with PDF Export
Reply #5 - Sep 18th, 2009 at 8:33am
Print Post  
Thanks Stoyan!  That did the trick and the export times are now more like 10 seconds instead of over a minute.

Best Regards,
Ben
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint