Hi,
I have a word document with a svg image embedded. When I save the file to a PDF the image is messed up.
I added the word document the pdf and the image (zipped as svg is not accepted).
This is the code I used:
string pathname = "c:\\temp\\";
string wordFileName = "TestWithSvgToPDF";
string wordExtension = ".docx";
AWord.Document wDoc = new AWord.Document(pathName + wordFileName + wordExtension);
AWord.Saving.SaveOptions saveOptions = new AWord.Saving.PdfSaveOptions
{
SaveFormat = AWord.SaveFormat.Pdf,
PreserveFormFields = true,
CustomPropertiesExport = PdfCustomPropertiesExport.None,
MemoryOptimization = true,
OptimizeOutput = true,
};
wDoc.Save(pathname + wordFileName + ".pdf", saveOptions);
TestWithSvgToPDF.pdf (3.7 KB)
TestWithSvgToPDF.docx (70.9 KB)
beeldmerk.zip (1.5 KB)