Docotic.Pdf Library Help > Samples > Pages and Navigation

This group contains samples that show how to add or remove pages from your PDF documents, create outline (also known as "bookmarks") for a PDF document. There are also samples that show how to add a link from one page to another or a hyperlink.

Add new pages

    This samples shows how to add or insert pages to your PDF documents.

Remove pages

    This sample shows how to remove pages from your PDF documents.

Copy pages

    This sample shows how to copy pages from one PDF document to another.

Extract pages

    This sample shows how to extract pages from one PDF document to another.

Swap pages

    This sample shows how to swap pages (interchange positions of two pages) in a PDF document.

Move pages

    This sample shows how to move (reorder) pages in a PDF document.

Page parameters

    This sample shows how to setup a page size, orientation or rotation.

Page Labels

    This sample shows how add Page Labels to PDF document.

Outline (bookmarks)

    This sample shows how to build PDF document's outline (also known as "bookmarks") using PdfOutlineItem.AddChild method.

Outline (bookmarks) with styles

    This sample shows how to build PDF document's outline (also known as "bookmarks") with colored, bold and italic items.

Create link to page

    This samples shows how to add a link to a document page using PdfPage.AddLinkToPage(..) method.

Extract text from link target

    This sample shows how to retrieve a link information and extract text starting from the link target.

Create hyperlink

    This sample shows how to add hyperlink on a page of your PDF document using PdfPage.AddHyperlink() method.

Extract text, paths and images

    This sample shows how to extract page objects (text, paths and images) from PdfDocument. The sample draws extracted objects on the drawing surface of a System.Drawing.Graphics.

Copy text, paths and images

    This sample shows how to copy page objects (text, paths and images) to a new document.