70
© PDF Tools AG – Premium PDF Technology
3-Heights™ PDF to Image Converter API, March 24, 2016 | 51/67
Create a new PDF-image file.
Parameters:
FileName [String]
The file name and optionally the file path, drive or server string according to the oper
ating systems file name specification rules.
UserPwd (optional) ) [String]
Set the user password of the PDF document. If this parameter is omitted,
the default password is used. Use
0
to set no password.
OwnerPwd (optional) ) [String]
Set the owner password of the PDF document. If this parameter is omit
ted, the default password is used. Use
0
to set no password.
PermissionFlags (optional) ) [TPDFPermission]
The permission flags. By default no permissions
are granted. The permissions that can be granted are described in the enumeration
TPDFPermission
.
KeyLength (optional) ) [Long]
With this option the length of the encryption key can be set. Due to the
nature of the MD5 algorithm, the maximum length is limited to
128
bits. The minimum is
40
and it is required
to be a multiple of
8
. The two most commonly used values are
40
(standard encryption) and
128
(requires
Acrobat 5 or higher). Keep in mind that Acrobat only supports
40
and
128
bit encryption. Other tools, such as
the 3-Heights™ tools also support other encryption key lengths. The default value is calculated based on the
selected permission flags.
Returns:
True
The file was created successfully.
False
Otherwise.
To not encrypt the output document, set PermissionFlags to
-1
, user and owner password to
0
.
In order to allow high quality printing, flags
ePermPrint
and
ePermDigitalPrint
need to be set.
6.2.11
CreateImageInMemory
Method:
Boolean CreateImageInMemory()
Store the PDF in memory as a byte array. See also method
GetPdf
.
Returns:
True
The output PDF document was successfully created in-memory.
False
Otherwise.