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

DynaPDF Manual - Page 281

Previous Page 280   Index   Next Page 282

Function Reference
Page 281 of 750
CreateURIAction
Syntax:
SI32 pdfCreateURIAction(
const PPDF* IPDF, // Instance pointer
const char* URL)
// URL of a website
A uniform resource identifier (URI) is a string that identifies (resolves to) a resource on the internet -
typically a file that is the destination of a hyperlink, although it can also resolve to a query or other
entity. A URI action causes a URI to be resolved. The parameter URL must be 7-bit ASCII string.
Remarks:
Actions must be added to a PDF object with AddActionToObj().
Return values:
If the function succeeds the return value is the action handle, a value greater or equal zero. If the
function fails the return value is a negative error code.
DecryptPDF
Syntax:
SI32 pdfDecryptPDF(
const PPDF* IPDF,
// Instance pointer
const char* FileName, // PDF file to be decrypted
TPwdType PwdType,
// Password type used to decrypt the file
const char* Password) // Password
This function decrypts a PDF file by using the supplied password and password type. If the file is
not encrypted the parameter password is ignored. The file is recompressed during import; this
reduces the file size in most cases.
By using specific import flags (see SetImportFlags()), it is also possible to remove unwanted objects
from the PDF file, such as annotations, form fields, bookmarks and so on.
If the input file contains a compressed object structure, it will be converted back to a normal PDF file.
The input PDF file will be replaced with the new one if no error occurred during import. If an error
occurred the file is left unchanged.
If document information entries are set before calling the function, existing entries in the PDF file
will be replaced with the new values, see the example below.
Remarks:
This function is implemented in an Ansi and Unicode compatible version. The Unicode version is
supported by Windows NT systems only. The file path is converted back to Ansi if the Unicode
version is used under Linux or UNIX.
 

Previous topic: Specific flags supported by text fields:

Next topic: DeleteAcroForm