I am strugling with Open XML SDK and embedding pdf files into a docx file.

  1. I do not want to use automation
  2. I am able to create *.bin files from everything except from *.pdf (see this question)

Anyone has experience with this? From what I've gathered you must create a *.bin file in order to embedd any file into Word *.docx document (except images). Is that correct?

有帮助吗?

解决方案 2

The reason for pdf not working was in fact in acrobat reader. When Ive installed older version (or did not have AR installed at all), it started to work.

其他提示

If you can't find a pure C# solution, you could consider the commercial product docx4j OLE Helper IKVM'd.

Disclosure: I wrote it.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top