Skip to content

DevExpress-Examples/pdf-document-api-add-link-to-page

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Files to look at:

PDF Document API - Add a Link to a Page

This example shows the PDF Document Creation API that is used to programmatically add a link to a page.

The Universal Subscription or an additional Office File API Subscription is required to use this example in production code. Please refer to the DevExpress Subscription page for pricing information.

Description

To add a link to a page using the PDF Creation API:
-  Create an empty document with no pages by calling one of the PdfDocumentProcessor.CreateEmptyDocument overload methods).
- Create PDF graphics represented by an instance of the PdfGraphics class calling the PdfDocumentProcessor.CreateGraphics method. To access PdfGraphics you need to reference the DevExpress.Pdf.Drawing assembly.
- Add a link to the PDF page using the PdfGraphics.AddLinkToPage method.
- Render a page with created graphics by calling the PdfDocumentProcessor.RenderNewPage method.