Hi,
I’m trying to insert an SVG picture in a document. If I generate a .docx file it works fine. If I generate a .pdf (whatever the ConformanceLevel), the SVG are not displayed correctly.
Here’s the code to add the picture:
MemoryStream domainPictureStream = new MemoryStream(domainPicture.Data);
FloatingLayout pictureLayout = new FloatingLayout(
new HorizontalPosition(HorizontalPositionType.Absolute, HorizontalPositionAnchor.Column),
new VerticalPosition(VerticalPositionType.Bottom, VerticalPositionAnchor.Line),
new Size(1.4, 1.34, LengthUnit.Centimeter));
pictureLayout.WrappingStyle = TextWrappingStyle.InFrontOfText;
var picture = new Picture(
document,
domainPictureStream,
PictureFormat.Svg,
pictureLayout);
domainPictureRow.Cells[0].Blocks.Add(new Paragraph(document, picture));
Here’s a picture of the result. On the left the generated PDF, on the right the generated DOCX:
Can you help me find out what I’m doing wrong ?
Thanks a lot.
Romain