PDFEmbedFile

<< Click to Display Table of Contents >>

Navigation:  PDF Export >

PDFEmbedFile

Previous pageReturn to chapter overviewNext page

[VPE Professional Edition and above]

Embeds a file into the generated PDF document.

Using PDF viewer applications like Acrobat Reader or Foxit PDF Reader, users can extract embedded files to their hard drive.

method void VPE.PDFEmbedFile(

string FileName,

string InternalName,

string Description,

string MimeType,

string AFRelation

)

string FileName

full path and file name of file on hard-disk

string InternalName

as used inside PDF, if e-invoice, must be "factur-x.xml", for XRechnung: "xrechnung.xml"

should only contain ASCII characters 33 - 126 and no slash "/" or backslash "\"

string Description

any descriptive text

string MimeType

MIME Type, e.g. "text/xml"

string AFRelation

see /AFRelationship in PDF Filespec dict in PDF spec and ZUGfERD / Factur-X spec

Remarks:

Linearized PDF (Fast Web View) is always turned off when embedding files.

 

Sets LastError.

Example:

Doc.PDFEmbedFile(

 "c:\\data\\test3.html",

 "test.html",

 "third test performed today",

 "text/html",

 "Data")
 

Doc.WriteDoc("test.pdf")