
#ADD BOOKMARK PDF ONLINE PDF#
Please directly copy the complete C# code below to quickly create and insert a bookmark into PDF file. Create some sub pages for root1 for ( var i = 1 i <= 3 i++)Ĭomplete C# Code for Adding a PDF Bookmark Use C# code below to create some pages as sub bookmarks. Create the root 1 bookmark var outline = (text, page) Gfx.DrawString(text, textFont, XBrushes.Black, location) Var textFont = new XFont( "Times New Roman", 30f, XFontStyle.Regular) Creaet the first root page var page = document.AddPage() PdfDocument document = new PdfDocument() Use C# code below to create a new page as root bookmark, and use "Opened" property to make it expand or collapse.
#ADD BOOKMARK PDF ONLINE HOW TO#
How to Create Root and Sub Point of Bookmarks in C# Here, we will introduce you how to create PDF pages as root bookmarks & sub bookmarks, and then add bookmark to PDF using C# code. For further needs, you can merge and split PDF with bookmarks.

NET PDF bookmark creator library allows developers to insert and add outline to PDF document.


It's interactive index that can instantly transport the reader to certain pages, sections, individual elements within the documents, and even external documents or media files.īookmarks allow users to quickly skip to other locations in the PDF, to navigate through the pages, and to get a quick glance at the PDF content similar as the quick jump to the webpage desired section. PDF bookmarks are a handy and necessary tool when it comes to reading PDF files. Easy to add, delete, update outlines in PDF document. How to create structured bookmarks in Visual Studio C# programming. NET XsPDF SDK / Tutorial for editing PDF / C# adding bookmarks to PDF document
