Knowledge Base - How to Export/Import annotations?

This article shows you how to export and import annotations (ink, line, rect, ellipse, note) from a page to another.

You need a premium license.

//get first page
Page page = m_doc.GetPage0();
//get last added annotation
Annotation annotation = page.GetAnnot(page.GetAnnotCount()-1);
//save annotation data and export
float[] rect = annotation.GetRect();
byte[] data = annotation.Export();

//get second page
Page page1 = m_doc.GetPage(1);
//import annotation to the second page
page1.ImportAnnot(rect, data);
Applies To

RadaeePDF SDK for Android


Created : 2017-12-14 10:17:38, Last Modified : 2017-12-14 10:17:38