PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

XPS to PDF Path problems
https://forum.pdfsharp.net/viewtopic.php?f=3&t=1085
Page 1 of 1

Author:  Fred [ Fri Mar 05, 2010 4:52 pm ]
Post subject:  XPS to PDF Path problems

Hi all,

PdfSharp.Xps version 1.0.0.0 (?)
PdfSharp-WPF version 1.31

The folowing xps/wpf code is not correctly converted to pdf.
(see the pdf and the xps in the attached zip)

1/ The first path is a closed filled path, but a blue line remains at the bottom of the figure.
2/ The second path is not perfectly connected to the first one. It's depends of the zooming rate.

<Canvas RenderTransform="1,0,0,1,10,10">
<Path Fill="#FF3C70AC" Data="M8.75,0L663.15,0A8.75,8.75 0 0 1 671.9,8.75L671.9,30 0,30 0,8.75A8.75,8.75 0 0 1 8.75,0ZM8.75,1.5L663.15,1.5A7.25,7.25 0 0 1 670.4,8.75L670.4,30 1.5,30 1.5,8.75A7.25,7.25 0 0 1 8.75,1.5Z" />
<Path Stroke="#FF3C70AC" StrokeThickness="1.5" StrokeMiterLimit="10" RenderTransform="1,0,0,1,407.8433,0" Clip="M0,0L93.39,0 93.39,30 0,30Z" Data="M0.75,0L0.75,30" />
</Canvas>

Thanks and regards

Attachments:
test.zip [1.88 KiB]
Downloaded 524 times

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/