BCL easyPDF SDK
easyPDF SDK Usermanual
PDF Creator Programming API  |  Download Free Trial  |  Contact Us to Purchase

AppendBookmark Method

Append a bookmark to a PDF file.

Sub AppendBookmark(InputFileName As String,
                   OutputFileName As String,
                   Title As String,
                   Depth As Long,
                   Page As Long,
                   Zoom As prcZoomType,
                   Expanded As Boolean)

void AppendBookmark(string InputFileName,
                    string OutputFileName,
                    string Title,
                    int Depth,
                    int Page,
                    prcZoomType Zoom,
                    bool Expanded)

void AppendBookmark(String InputFileName,
                    String OutputFileName,
                    String Title,
                    int Depth,
                    int Page,
                    prcZoomType Zoom,
                    boolean Expanded) throws PDFProcessorException

Parameters

Return Values

N/A.

Remarks

  1. The bookmark depth uses zero-based index, meaning that depth starts from 0.
  2. The page number uses zero-based index, meaning that page number starts from 0.

Example Usage

Set oProcessor = CreateObject("easyPDF.PDFProcessor.8")
 
oProcessor.AppendBookmark "C:\test\input.pdf", _
                          "C:\test\output.pdf", _
                          "Depth 0 linking to first page", _
                          0, _
                          0, _
                          PRC_ZOOMTYPE_FIT_PAGE, _
                          True
 
oProcessor.AppendBookmark "C:\test\output.pdf", _
                          "C:\test\output.pdf", _
                          "Depth 1 linking to first page", _
                          1, _
                          0, _
                          PRC_ZOOMTYPE_FIT_PAGE, _
                          True