This site is the generated API reference for the ComPDF React Native SDK. It documents the public TypeScript surface used to view, annotate, edit, fill, search, and manage PDF documents on Android and iOS.
For an end-to-end setup walkthrough, see the React Native Integration Guide.
- Core: {@link index.ComPDFKit | ComPDFKit} initializes the SDK and provides global APIs.
- Viewer: {@link index.CPDFReaderView | CPDFReaderView} renders and controls the PDF reader.
- Document: {@link index.CPDFDocument | CPDFDocument} provides document-wide operations.
- Page: {@link index.CPDFPage | CPDFPage} provides page text, annotation, and form operations.
- Annotations: {@link index.CPDFAnnotation | CPDFAnnotation} and its subclasses represent PDF annotations.
- Forms: {@link index.CPDFWidget | CPDFWidget} and its subclasses represent interactive form fields.
- Edit: {@link index.CPDFEditArea | CPDFEditArea} and {@link index.CPDFEditManager | CPDFEditManager} provide content editing APIs.
- Configuration: {@link index.CPDFConfiguration | CPDFConfiguration} configures reader modes, tools, and UI.
- Utilities: {@link index.CPDFImageUtil | CPDFImageUtil} and related helpers convert common SDK data.
- Install
@compdfkit_pdf_sdk/react_nativein your React Native application. - Initialize
ComPDFKitwith the license method required by your deployment. - Render
CPDFReaderViewwith a document path and configuration. - Use the document, page, annotation, form, and editing APIs from the reader ref.
import {
ComPDFKit,
CPDFReaderView,
getDefaultConfig,
} from "@compdfkit_pdf_sdk/react_native";
await ComPDFKit.init_("your-compdfkit-license");
const configuration = getDefaultConfig({});
<CPDFReaderView
document="file:///path/to/document.pdf"
configuration={configuration}
/>;- Types and signatures are generated from the public TypeScript declarations.
- Examples show the intended React Native integration pattern.
- APIs marked
Deprecatedshould be replaced with the alternative named in their migration note. - Platform-specific behavior is called out in the API description when it differs between Android and iOS.
Use the search box or the navigation menu to find a symbol, then check its parameters, return value, examples, and deprecation notes before integrating it.