@compdfkit_pdf_sdk/react_native
Version:
ComPDFKit for React Native is a comprehensive SDK that allows you to quickly add PDF functionality to Android, iOS, and React Native applications.
19 lines (18 loc) • 780 B
JavaScript
/**
* Copyright © 2014-2025 PDF Technologies, Inc. All Rights Reserved.
*
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT.
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
* This notice may not be removed from this file.
*/
import { CPDFAnnotation } from "./CPDFAnnotation";
export class CPDFAnnotationFactory {
static create(viewerRef, json) {
return CPDFAnnotation.fromJson(json, viewerRef);
}
static createFromArray(viewerRef, jsonArray) {
return jsonArray.map(item => CPDFAnnotationFactory.create(viewerRef, item));
}
}
//# sourceMappingURL=CPDFAnnotationFactory.js.map