Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   Crossplatform   Server (Not)   Client   Components   Old   Guides
New in version: 5.0   5.1   5.2   5.3   5.4   6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1    Statistic  

DynaPDF.AttachFileContainer

Attaches a data from container to the document.

Component: DynaPDF
Version: 6.0
Mac OS X: Yes
Windows: Yes
Server: Yes
FileMaker Cloud: Yes

MBS( "DynaPDF.AttachFileContainer"; PDF; Container; FileName { ; Description; Compress } )

Parameters

Parameter Description Example value
PDF The PDF reference returned from DynaPDF.New. $pdf
Container The container value to use. $xmlContainer
FileName The file name to display in PDF viewer. "ZUGfERD-invoice.xml"
Description Optional
The description for the file.
"invoice.xml"
Compress Optional
Pass 1 to compress or 0 to not compress.
You should pass 1 for text data like XML or JSON.
0

Result

Returns OK or error.

Description

Attaches a data from container to the document.
The description is optional, the parameter can be set to "". The embedded file is compressed if the parameter Compress is set to 1. Otherwise it is left uncompressed. It is not always useful to compress embedded files especially if the file is already compressed, e.g. Zip files or already compressed image formats require no further compression. In the worst case the compressed file becomes larger as the uncompressed version. However, text files and most document formats should be compressed to reduce the file size.

See also


DynaPDF.AttachFile   -   DynaPDF.AttachFileText

Feedback: Report problem or ask question.




Links
MBS REAL studio tutorial videos - Förderverein St. Arnulf Nickenich