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: 9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  

DynaPDF.OpenOutputFileEncrypted

The function opens the output file into which the PDF file should be written.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 6.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.OpenOutputFileEncrypted"; PDF; Path; OpenPwd; OwnerPwd; Encryption { ; RestrictFlags } )   More

Parameters

Parameter Description Example Flags
PDF The PDF reference returned from DynaPDF.New. $pdf
Path The file path to create the PDF.
The file name should include pdf file extension.
"C:\Test.pdf"
OpenPwd Open password. ""
OwnerPwd Owner password. "Hello"
Encryption Which encryption to use. Can be 40bit, 128bit, 128bitEx, AES128, AES256 or AESRev6. "AES256"
RestrictFlags What restrictions to apply. See above. 4+8 Optional

Result

Returns OK or error.

Description

The function opens the output file into which the PDF file should be written.
The PDF file must be created in memory if this function should be used. This is the case if you called DynaPDF.New without a file path.
It is strongly recommended to check with DynaPDF.HaveOpenDocument whether a PDF file is still in memory before calling this function.

See also OpenOutputFileEncrypted function in DynaPDF manual.

See also

Blog Entries

Created 16th July 2016, last changed 9th April 2017


DynaPDF.OpenOutputFile - DynaPDF.OpenPDFFromContainer

Feedback: Report problem or ask question.