Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Issues with Exorting Large Diagrams (Read 4177 times)
Paul
YaBB Newbies
*
Offline



Posts: 17
Joined: Jan 8th, 2013
Issues with Exorting Large Diagrams
May 22nd, 2013 at 9:04pm
Print Post  
We are using the 5.0.1 version of FlowChart.NET Professional Edition and I can export small diagrams without issue, but when I have a large diagram (85+ nodes) I get this error when exporting to a PNG:

System.ArgumentException: Parameter is not valid.

If I export the same diagram to a PDF, a 2MB file is created, but I can't see any of the nodes.

Do you know if this issue was addressed in a later release?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Issues with Exorting Large Diagrams
Reply #1 - May 23rd, 2013 at 7:08am
Print Post  
GDI+ cannot create bitmaps larger than about 3000x3000 pixels. You could temporarily change diagram.Bounds to cover different parts of the diagram and export to several smaller images.

The PDF problem is because of bug in newer versions of Adobe Reader, they cannot work with very large PDF pages. Older versions or alternative readers (e.g. FoxIt) should work fine. You will have to set PageSize to a value different than DiagramSize to open larger exported PDFs in latest Adobe Reader.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Paul
YaBB Newbies
*
Offline



Posts: 17
Joined: Jan 8th, 2013
Re: Issues with Exorting Large Diagrams
Reply #2 - May 29th, 2013 at 9:47pm
Print Post  
Are there any plans to change the way you generate a PDF so that it is compatible with the change Adobe made in their viewer? I was able to install Foxit and verify that the PDF can be viewed, but most of my customers will be using Adobe Reader.

Also, I tested the Visio exporter and all of the nodes display but the links do not. Is there something I am missing there?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Issues with Exorting Large Diagrams
Reply #3 - May 30th, 2013 at 8:24am
Print Post  
It's not changes they made, it's a bug in Adobe Reader and we can't do anything to make everything render on a single page. Large pages worked fine up to their version 7 or 8, and afterwards Reader either started crashing or rendering an empty page depending on the version.

From our tests it seems the problem appears when pages get larger than about 14000 points. You can verify this using a third party library too, e.g. PdfSharp, this code adapted from their tutorial:

Code
Select All
for (int s = 1000; s < 20000; s += 1000)
{
	var myDoc = new pdfDocument("TUTORIAL", "ME");
	/*At This point you put your own dimensions*/
	pdfPage myPage = myDoc.addPage(s, s);
	myPage.addText("Hello World!", 0, s - 30, predefinedFont.csHelvetica, 10);
	myPage.addText("Hello World!", 0, 30, predefinedFont.csHelvetica, 10);
	myDoc.createPDF(@"C:\test" + s + ".pdf");
	myPage = null;
	myDoc = null;
} 



You will see the Hello strings rendered at top and bottom of the test1000 to test14000 files, and only empty pages on the larger files.

So you will need pagination in any case. I suppose the only work-around we can implement is adding a "MaxSize" member to the PageSize enumeration that will paginate the PDF document at 14000 points, then at least you will be getting fewer pages.

Please attach a saved diagram XML file that shows the Visio problem when exported.

Stoyan
  
Back to top
 
IP Logged
 
Paul
YaBB Newbies
*
Offline



Posts: 17
Joined: Jan 8th, 2013
Re: Issues with Exorting Large Diagrams
Reply #4 - May 30th, 2013 at 6:55pm
Print Post  
Thanks for the info, that is very helpful.

Attached is a diagram XML that the Visio export outputs without links. I would have attached the VSX file, but it was over 250KB.

Note: I don't have Visio installed, so the VSX file is being opened in IE.
  

AP_WORKFLOWDiagram.txt (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Issues with Exorting Large Diagrams
Reply #5 - Jun 3rd, 2013 at 5:58pm
Print Post  
This is what we are seeing in Visio:


How exactly are you opening the file in IE?
  
Back to top
 
IP Logged
 
Paul
YaBB Newbies
*
Offline



Posts: 17
Joined: Jan 8th, 2013
Re: Issues with Exorting Large Diagrams
Reply #6 - Jun 25th, 2013 at 6:18pm
Print Post  
After upgrading to 6.0.3, I now see the links in a Visio export when viewing the diagram in IE. Thanks.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint