
Shape shape = builder.InsertOleObject(stream, "AcroExch.Document. The Create From File option will appear as a button in the bottom-left corner of the window on Mac. Microsoft Word provides a plethora of features for handling content. To leave the original PDF intact as a separate file, choose Save As, and type a new name for the merged PDF. In the Insert Pages dialog box, specify where to insert the document (before or after the first or last page, or a designated page). Go to the 'Create from File' tab and browse for your PDF file to insert it. Select the PDF you want to insert and click Open. MemoryStream stream = new MemoryStream(File.ReadAllBytes(MyDir + "in.pdf")) Select the Create From File tab and then click Browse. To add a PDF to Microsoft Word, click 'Insert' in the ribbon, then add an object. Image image = Image.FromStream(imageStream) ĭocumentBuilder builder = new DocumentBuilder(doc) JpegDevice.Process(pdfDocument.Pages, imageStream) Convert a particular page and save the image to stream

Create JPEG device with specified attributes (Width, Height, Resolution, Quality)Ī jpegDevice = new (400, 600, resolution, 100) MemoryStream imageStream = new MemoryStream() Ī resolution = new (300) Open documentĪ pdfDocument = new (MyDir + "in.pdf") Please read about converting Pdf pages into images from here: You can use Aspose.Pdf to convert the Pdf to image and use that image in InsertOleObject method.


If value is null Aspose.Words will use one of the predefined images. Turning PDF files into Word documents is the easiest way to edit the original text without having to buy expensive PDF editing software. This is image presentation of OLE object. Please check last parameter of InsertOleObject method.
