DynaPDF Manual - Page 526

Previous Page 525   Index   Next Page 527

Function Reference
Page 526 of 860
GetURIAction
Syntax:
LBOOL pdfGetURIAction(
const PPDF* IPDF,
// Instance pointer
UI32 Handle,
// Action handle
struct TPDFURIAction* Action) // see below
struct TPDFURIAction
{
UI32
StructSize;
// Must be set to sizeof(TPDFURIAction)
const char* BaseURL;
// Optional, if defined in the Catalog object.
LBOOL
IsMap;
// A flag specifying whether to track the mouse position
// when the URI is resolved: e.g. http://test.org?50,70.
const char* URI;
// Uniform Resource Identifier.
SI32
NextAction;
// -1 or next action handle to be executed if any.
TActionType NextActionType; // Only set if NextAction is >= 0.
};
The function retrieves the properties of a URI action. The member StructSize must be set to
sizeof(TPDFURIAction) before the function can be called.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
GetUseExactPwd
Syntax:
LBOOL pdfGetUseExactPwd(
const PPDF* IPDF) // Instance pointer
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 (see also SetUseExactPwd()).
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.
Only if the file was opened with the owner password, all rights should be granted. See PDF
Reference 1.5 for further information.
The property UseExactPwd should be true, if the application is a commercial software product.
 

Previous topic: GetTransparentColor, GetTrapped, GetTypoLeading

Next topic: GetUseGlobalImpFiles, GetUserRights, GetUserUnit

Web links on this page: