Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.
HarmonyOS
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 |
Currently, PDF Kit is available only in the Chinese mainland.
PDF Kit can run on phones, tablets, and PCs/2-in-1 devices.
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.
Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
Quick start
Helps you find desired resources with ease.