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).

bool PreserveAttachments { get; set; }

Property PreserveAttachments As Boolean

def getPreserveAttachments(self)
def setPreserveAttachments(self, value)
boolean getPreserveAttachments() throws PrinterException
void setPreserveAttachments(boolean value) throws PrinterException
function getPreserveAttachments() 
function setPreserveAttachments($value) 
BclPrnResult GetPreserveAttachments(BclPrinter* pPrinter, BclBool* poutVal);
BclPrnResult SetPreserveAttachments(BclPrinter* pPrinter, BclBool newVal);
Property PreserveAttachments As Boolean

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"