Hi, i tried add pdf file to word, but it does not work
can you look what is wrong, thank you
Spire.Doc.Document doc = new Spire.Doc.Document();
doc.LoadFromFile("d:\\1 Page template.docx");
Spire.Doc.Fields.DocPicture DocPicture = new Spire.Doc.Fields.DocPicture(doc);
byte[] src = File.ReadAllBytes("d:\\5160.pdf");
doc.AddSection().AddParagraph().AppendOleObject(src, DocPicture, Spire.Doc.Documents.OleObjectType.AdobeAcrobatDocument);
doc.SaveToFile("d:\\1 Page template.pdf", Spire.Doc.FileFormat.PDF);
doc.Close();