Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
13.5
Statistic
FMM
Blog
Associates an embedded file with a PDF object.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 6.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. | ||
DestObject | The destination object type. Can be Annotation, Catalog, Field, Image, Page or Template. |
"Annotation" |
DestHandle | The destination object handle or -1. | -1 |
Relationship | The relationship for the object to its parent. Can be Associated, Data, Source, Supplement or Alternative. The value Alternative must be used for ZUGFeRD compatible invoices. |
"Alternative" |
EmbFile | Handle of an embedded file. |
Returns OK or error.
See also AssociateEmbFile function in DynaPDF manual.
Add ZUGFeRD invoice xml file:
Set Variable [$FileHandle; Value:MBS("DynaPDF.AttachFileText"; $pdf; ZUGFeRD Invoice::Invoice XML; "UTF-8"; "ZUGFeRD-invoice.xml"; "Invoice as XML")]
Set Variable [$r; Value:MBS("DynaPDF.AssociateEmbFile"; $pdf; "Catalog"; -1; "Alternative"; $FileHandle)]
This function checks for a license.
Created 15th December 2015, last changed 16th August 2016