Is there a way to store as an attachment in the PDF, the original Word.doc that the PDF was created from?

Q:

Is there a way to store as an attachment in the PDF, the original
Word.doc that the PDF was created from?
----

A:

If you want to associates a file attachment with the entire document,
use pdfdoc.AddFileAttachment() method. For example:

FileSpec fs = FileSpec.Create(doc, "myexternal.pdf", false);
pdfdoc.AddFileAttachment("MyFile", myfile_filespec).

If you want to create a file attachment annotation on a given page
use, you can call Annot.CreateFileAttachment(). For example:

Annot file_attach = Annot.CreateFileAttachment(doc, new Rect(80, 280,
200, 320), "Word.doc");
page.AnnotPushBack(file_attach);