I should create a PDF
file from a Word
document in C#
. I'm using DocumentFormat.OpenXml
for creating or reading a document like
// create a new docx
using (var document = WordprocessingDocument.Create(
"test.docx", WordprocessingDocumentType.Document))
{
document.AddMainDocumentPart();
document.MainDocumentPart.Document = new Document(
new Body(new Paragraph(new Run(new Text("some text")))));
}
In this document I must add an image and then create a PDF
. I can't find a way to create it. Do you have any advice? Thanks