PDF Kit (PDFService) contains pdfService and the PdfView component.
pdfService provides functions such as loading and saving PDF documents, adding text content, images, annotations, headers and footers, watermarks, background images, and bookmarks to PDF pages, determining whether PDF documents are encrypted, and removing document security lock, so that users can perform more operations on PDF documents.
The PdfView component provides functions related to document preview, such as PDF document preview, highlighting, keyword search, and commenting.
For more sample code of PDF Kit, see CodeLab and SampleCode.
| PDF Kit Capability | Supported by pdfService or Not | Supported by PdfView or Not |
|---|---|---|
| Opening and saving a document | Yes | Yes |
| Releasing a document | Yes | Yes |
| Converting a PDF document to an image | Yes | Yes |
| Adding and deleting an annotation | Yes | Yes |
| Managing bookmarks | Yes | No |
| Adding, editing, and deleting PDF pages | Yes | No |
| Adding and deleting text content | Yes | No |
| Adding and deleting image content | Yes | No |
| Editing the header, footer, watermark, and background | Yes | No |
| Checking whether a PDF document is encrypted | Yes | No |
| Removing document security lock | Yes | No |
| Previewing a PDF document | No | Yes |
| Searching for keywords | No | Yes |
| Listening to PDF document callback | No | Yes |
This kit supports the Emulator, but there are some differences in feature support between real devices and the Emulator:
General differences: For details, please refer to Differences Between the Emulator and the Real Device.
The ARM-based Emulator is supported, but the x86-based Emulator is not supported.