ByteScout PDF SDK - C# - Add 3d Annotations in PDF - ByteScout

ByteScout PDF SDK – C# – Add 3d Annotations in PDF

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF SDK – C# – Add 3d Annotations in PDF

How to add 3d annotations in PDF in C# and ByteScout PDF SDK

This tutorial will show how to add 3d annotations in PDF in C#

Add 3d annotations in PDF is easy to implement in C# if you use these source codes below. ByteScout PDF SDK is the pdf library that can create, update and modify PDF files. Supports text with fonts and style selections, layers, form fields, drawing lines and objects, automatic tables, images. Can be used to create and fill pdf forms. It can be used to add 3d annotations in PDF using C#.

The SDK samples like this one below explain how to quickly make your application do add 3d annotations in PDF in C# with the help of ByteScout PDF SDK. In your C# project or application you may simply copy & paste the code and then run your app! Detailed tutorials and documentation are available along with installed ByteScout PDF SDK if you’d like to dive deeper into the topic and the details of the API.

Trial version of ByteScout PDF SDK can be downloaded for free from our website. It also includes source code samples for C# and other programming languages.

Try ByteScout PDF SDK today:  60 Day Free Trial (on-premise) or  Web API (on-demand version)

Program.cs
      
using System.Diagnostics; using Bytescout.PDF; namespace ThreeDAnnotationExample { /// <summary> /// This example demonstrates how to create 3D annotation. /// </summary> class Program { static void Main() { // Create new document Document pdfDocument = new Document(); pdfDocument.RegistrationName = "demo"; pdfDocument.RegistrationKey = "demo"; // Add page Page page = new Page(PaperFormat.A4); pdfDocument.Pages.Add(page); // Add 3D annotation from .u3d file ThreeDData model = new ThreeDData("box.u3d"); ThreeDAnnotation annotation = new ThreeDAnnotation(model, 100, 100, 200, 200); page.Annotations.Add(annotation); // Save document to file pdfDocument.Save("result.pdf"); // Cleanup pdfDocument.Dispose(); // Open result document in default associated application (for demo purpose) ProcessStartInfo processStartInfo = new ProcessStartInfo("result.pdf"); processStartInfo.UseShellExecute = true; Process.Start(processStartInfo); } } }

Try ByteScout PDF SDK today:  60 Day Free Trial (on-premise) or  Web API (on-demand version)

VIDEO

ON-PREMISE VERSION INFORMATION

Get 60 Day Free Trial or Visit ByteScout PDF SDK Home Page

Explore ByteScout PDF SDK Documentation

Get ByteScout PDF SDK Free Training

WEB API

Get Your Free API Key

Explore Web API Documentation

Tutorials:

prev
next