I am exploring different ways to attach/add PDF to the end of a word document. So far, one of the option I tried is to embed the PDF as an OLE object in the word document. Following is the code I tried :
Document doc = new Document(); DocumentBuilder builder = new DocumentBuilder(doc); builder.InsertOleObject("sample.pdf",true,true,null); string dataDir = "output_1.pdf"; doc.Save(dataDir);
Above code embed the PDF in the word document but How can I render the attached PDF during print or save ?
In other words, If I print/save the final “output_1.pdf” file, I want to see the contents of the attached/linked PDF.
I am attaching the sample.pdf