BCL easyPDF SDK
easyPDF SDK Usermanual
PDF Creator Programming API  |  Download Free Trial  |  Contact Us to Purchase

PreserveAttachments Property

Determines whether embedded and linked files will be preserved during conversion. Default value: False (disabled).

Type

Boolean

Description

Some Word documents may contain embedded or linked files. Microsoft calls this technology OLE (Object Linking and Embedding). For example, when you drag-and-drop a file into a Word document, it becomes an OLE attachment.

When PreserveAttachments = True, WordPrintJobEx performs extra steps to grab the attached or linked files from the Word document. Embedding and linking behave slightly differently:

Restrictions

Example Usage

Set oPrinter = CreateObject("easyPDF.Printer.8")
Set oPrintJob = oPrinter.WordPrintJobEx
oPrintJob.PreserveAttachments = True ' Preserve OLE attachments and links
oPrintJob.PrintOut "C:\test\input.docx", "C:\test\output.pdf"