Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (28 sloc) 1.09 KB
using System;
using ceTe.DynamicPDF;
using ceTe.DynamicPDF.Merger;
/* This example requires one of these licenses or higher to remove the watermark:
* * DynamicPDF Merger Professional for .NET
* * DynamicPDF Core Suite Professional for .NET
namespace MergePDFBookmarks.Examples
class BookmarkForEachPDFExample
internal static void Run(string outputFilePath)
MergeDocument document = new MergeDocument();
AppendDoc(document, "test-doc-a.pdf", "Document A");
AppendDoc(document, "test-doc-b.pdf", "Document B");
AppendDoc(document, "test-doc-c.pdf", "Document C");
private static void AppendDoc(MergeDocument document, string fileName, string bookmarkText)
MergeOptions mergeOptions = MergeOptions.Append;
mergeOptions.Outlines = false;
document.Outlines.Add(bookmarkText, new XYDestination(document.Pages.Count + 1, 0, 0));
document.Append(Util.GetResourcePath(fileName), mergeOptions);
You can’t perform that action at this time.