|
Bytescout.PDF library for .NET
- how to set a link to web-site to the text rectangle in existing PDF
This sample code demonstartes how to
set URL link to rectangle text area in the existing PDF
document
This example teaches how to open existing
PDF and set hyperlink URL to the rectangle area in text
and then save modifed PDF as new using Bytescout.PDF library
for NET using System; namespace HelloWorld // Add new document // get the page // Create new drawing // Add standard font // font size constant // Set Active Font // get text width // Draw Text // Closing drawing on the page // create a rectangle holding information about link position // set new link to the given rectanlge assigning an action
opening external PDF // Save document // open generated PDF document in default PDF viewer installed
in Windows Download example source code: bytescoutpdf_add_url_in_text_in_existing_pdf.zip (6 KB)
"Hello, World!" quick start step-by-step tutorials: |
|
|
Copyright © ByteScout, 2003-2010. Privacy Statement
Microsoft®, Windows®, Windows 2000®, Windows Server®, Windows Vista®, Internet Explorer®, .NET Framework®, ActiveX®, Visual Basic®, Visual C#®, ASP®, ASP.NET®, Excel®, PowerPoint®, are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. Adobe®, Flash® and Acrobat® are registered trademarks of Adobe Systems, Incorporated. Mozilla®, Firefox® and the Mozilla and Firefox Logos are registered trademarks of the Mozilla Foundation. Other product names or brandnames used herein are for identification purposes only and might be trademarks or registered trademarks of their respective companies. We disclaim any and all rights to those marks. |
|