PDF Mosaic: How to create 3D annotations

Home       Features       Download       License       Tutorial       Version History       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);
      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)
    document.Save("3DAnnotation.pdf", True)
  End Sub
End Module


Home       Features       Download       License       Tutorial       Version History       Source Code