Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 711

Previous Page 710   Index   Next Page 712

Function Reference
Page 711 of 750
SetTransparentColor
Syntax:
LBOOL pdfSetTransparentColor(
const PPDF* IPDF, // Instance pointer
UI32 AColor)
// Color value defined in current color space
The function sets the transparent color which is used for newly inserted images. Due to color
interpolation during decompression of JPEG images, it not always possible to mask JPEG
compressed images correctly.
Default value = 0x00FFFFFF (RGB White)
SetTrapped
Syntax:
void pdfSetTrapped(
const PPDF* IPDF, // Instance pointer
LBOOL Value)
// True or false
The function sets the trapped key of the document. Trapping is a technique to avoid unwanted
visual artifacts such as brightly colored gaps or bands around the edges of printed objects. In high-
quality reproduction of color documents, such artifacts are commonly avoided by creating an
overlap, called a trap, between areas of adjacent color.
The trapped key determines whether the document was trapped. The default value is unknown that
means no value is written to the file. The trapped key should be set if possible.
SetUseExactPwd
Syntax:
LBOOL pdfSetUseExactPwd(
const PPDF* IPDF, // Instance pointer
LBOOL Value)
// True or false
If the property UseExactPwd is false, an encrypted PDF file can always be decrypted, if either the
open or owner password in the file is an empty string. If true, the open or owner password must be
known to open the PDF file.
Default value = 1 (true)
Remarks:
If your application should allow the modification of encrypted PDF files, you may check the access
permissions to grant user rights, if the file was opened with the open password instead of the owner
password (see also GetUserRights()).
Due to the license agreement of Adobe, all manufacturers of applications which make the treatment
of encrypted PDF files possible, must respect the access permissions of a PDF file, if the file was
opened with the open password.
 

Previous topic: SetTextScaling

Next topic: SetUseGlobalImpFiles