When converting some .des to .svg with Corel Designer 2017 and running through Apache Batik an error occurs.
Negative dash length
The problem is this:
stroke-dasharray:20616694.958495 20616694.958495 -37523837.119246 20616694.958495
How do I find these issues are remove them in Designer?
Changing the line style to something dashed and then changing it back to the solid line fixes it. But is this a bug?
Hi Jodekirk
Thanks for the post and bringing it to our attention. It would indicate that a - coordinate is an error and I will put this into our database testing also against our most current release.
www.w3.org/.../painting.html
<dasharray>
A list of comma and/or white space separated <length>s (which can have a unit identifier) and <percentage>s. A percentage represents a distance as a percentage of the current viewport (see Units). A negative value is an error (see Error processing). If the sum of the values is zero, then the stroke is rendered as if a value of none were specified. For further details see the path implementation notes.
ThanksBrian Fraser
CorelDRAW QACorel Corporation
Hi
Quick update, using CDTS 2017 by creating a new document and simulating the same object properties I cannot seem to get a condition where a - negative number is produced.
Just to confirm, when you created this dashed line, was it from an imported file?
Were you using CDTS X7 to create the file?
What changes did you make to the property of the line?
Thanks,
Brian Fraser
CorelDRAW QA
Corel Corporation
I believe this was created by importing from TeamCenter or other CAD program and eventually we export an SVG with Designer 2017.
Hi jodekirk
Can you pass those files to me so I can recreate the workflow accurately? You can send it directly to me if there is a concern at brian.fraser@corel.com.
Trying to create the same negative values by recreating different shapes natively, I have not come across a negative number. Bringing a file in and exporting, I would think that breaking compliance issues would be fixed.
Thanks for the feedback,