The DomPDFAddOutline function is used to add an outline/bookmark of pages to an existing PDF file.
Note: The function does not support processing an already encrypted PDF file. If processing of an already encrypted PDF file is required please contact Primeapple for details.
LOTUSSCRIPT
Declarations
Declare Function DomPDFAddOutline Lib "DOMINOPDF.DLL" (Byval szInput As String, Byval szTitle As String) As Long
Return Value
Returns 0 if successful or -1 if unsuccessful.
Syntax
szInput - The file name and path of the PDF file to be opened.
For example;
c:\contacts.pdf
c:\my documents\contacts.pdf
szTitle - Specify the title of the root outline entry. If left blank will default to "Pages".
Examples
Sub Initialize
'Declare variables...
Dim sInput As String
'Set values...
sInput = |c:\test.PDF|
'Error handler...
On Error Goto Error_Handler
'Add Text...
Call DomPDFAddOutline(sInput, "DominoPDF")
The_End:
Exit Sub
Error_Handler:
Print Error$
Resume The_End
End Sub