public static void EmbedDocument(byte mainFileBytes, byte pdfFilebytes, string insertLocationTag, string outputFilePath)įileStream.Write(mainFileBytes, 0, mainFileBytes.Length) I tried by converting PDF file to bin file using online converter and feed that bin data to embedded object part, but it did not work. Here I am directly feeding PDF file bytes to embedded object part. bin to embed in wordīelow is sample code. I have gone through various blogs but there is no concrete answer to implement this using only c# code. I need to embed PDF file into word file using open xml library.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |