Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic inconsistent export to PDF & SVG (Read 803 times)
PeteWhite
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 13
Joined: Apr 7th, 2020
inconsistent export to PDF & SVG
Feb 7th, 2024 at 11:10am
Print Post  
Hi,

I have been looking at the export features of the diagramming component, unfortunately there appears to be some inconsistencies with the output.

This is a screengrab...



firstly comparing this to the PDF version, the line styles don't appear to he been exported properly, there are no dashed lines, and the grid hasn't been exported.

The SVG has more problems... The node images bleed outside of the node shape, the link text is wrongly positioned, and some of the text is truncated, i.e. "Orifice" has been truncated to "Orific"

I've attached both the PDF and SVG exported files for your reference.

Cheers,

Pete
  

test_001.svg (Attachment deleted | 0 Downloads )
test_004.pdf ( 1202 KB | 22 Downloads )
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3223
Joined: Oct 19th, 2005
Re: inconsistent export to PDF & SVG
Reply #1 - Feb 7th, 2024 at 12:40pm
Print Post  
Hi,

Could you please attach source diagram saved as XML file?

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
PeteWhite
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 13
Joined: Apr 7th, 2020
Re: inconsistent export to PDF & SVG
Reply #2 - Feb 7th, 2024 at 3:25pm
Print Post  
Slavcho wrote on Feb 7th, 2024 at 12:40pm:
Hi,

Could you please attach source diagram saved as XML file?

Regards,
Slavcho
Mindfusion


Hi Slavcho,

It's not the same diagram, but I've attached the XML file.

Edit: I figured out why the grid wasn't plotting with the PDF exporter, I needed to set PDFExporter.EnableGrid to true.

Cheers,

Pete
« Last Edit: Feb 7th, 2024 at 11:07pm by PeteWhite »  

QSTest.xml ( 113 KB | 23 Downloads )
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3223
Joined: Oct 19th, 2005
Re: inconsistent export to PDF & SVG
Reply #3 - Feb 8th, 2024 at 7:34am
Print Post  
Apparently PdfExporter does not support custom dash patterns at this time. As a work-around, you could export a copy of the diagram where they are replaced with standard dash or dot styles -

Code
Select All
diagram.LoadFromXml("QSTest.xml");
var exportCopy = diagram.Clone();
foreach (var link in exportCopy.Links)
{
    if (link.Pen.DashPattern != null)
    {
        link.Pen.DashStyle = DashStyle.Dash;
        link.Pen.DashPattern = null;
    }
}
var pdfex = new PdfExporter();
pdfex.Export(exportCopy, "test.pdf"); 



Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
PeteWhite
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 13
Joined: Apr 7th, 2020
Re: inconsistent export to PDF & SVG
Reply #4 - Feb 8th, 2024 at 3:57pm
Print Post  
Thanks, did you manage to have a look at the issues with the SVGExporter?

Cheers,

Pete
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3223
Joined: Oct 19th, 2005
Re: inconsistent export to PDF & SVG
Reply #5 - Feb 9th, 2024 at 6:58am
Print Post  
Our developer is looking into it.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3223
Joined: Oct 19th, 2005
Re: inconsistent export to PDF & SVG
Reply #6 - Feb 9th, 2024 at 11:18am
Print Post  
Try new build here for SVG texts -
https://mindfusion.eu/_beta/fcnet702.zip

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint