Home Features Download Tutorial Version History License PDF Mosaic Blog Source Code
This sample shows how to add 3D annotation to your PDF document.
C# :
using PDFMosaic; using System; namespace Annotation3D { class Annotation3D { static void Main() { PDFDocument document = new PDFDocument(); PDFPage page = new PDFPage(PDFPaperFormat.A4); PDF3DData data = new PDF3DData("..\\..\\heart.u3d"); PDF3DAnnotation annotation = new PDF3DAnnotation(data, 50, 50, 150, 150); page.Annotations.Add(annotation); document.Pages.Add(page); document.Save("3DAnnotation.pdf", true); } } }
Visial Basic.NET :
Imports PDFMosaic Imports System Module Annotation3D Sub Main() Dim document As New PDFDocument() Dim page As New PDFPage(PDFPaperFormat.A4) Dim data As New PDF3DData("..\\..\\heart.u3d") Dim annotation As New PDF3DAnnotation(data, 50, 50, 150, 150) page.Annotations.Add(annotation) document.Pages.Add(page) document.Save("3DAnnotation.pdf", True) End Sub End Module
Home Features Download Tutorial Version History License PDF Mosaic Blog Source Code