liuxiaolong ba2c8adaf8 PDFTool(Android) - 图形属性弹窗预览云朵效果,导出注释刷新数据库,无注释时置灰菜单 | 9 ore fa | |
---|---|---|
.. | ||
screenshots | 2 mesi fa | |
src | 9 ore fa | |
.gitignore | 1 anno fa | |
README.md | 2 mesi fa | |
build.gradle | 9 ore fa | |
consumer-rules.pro | 1 anno fa | |
proguard-rules.pro | 2 mesi fa |
The ComPDFKit_Tools
module is an integrated part of the ComPDFKit SDK
, offering a complete set of common PDF functionalities for quick PDF viewing and editing. If the interface provided by the ComPDFKit_Tools
module does not meet your product requirements, you can also integrate the ComPDFKit SDK
yourself to achieve the desired UI. Please note that the functionalities presented by this module do not represent all the capabilities of the ComPDFKit SDK
. If you cannot find the feature you need, please contact our sales team.
In addition to the ComPDFKit_Tools
module source code, we also provide a Gradle-based integration option. To ensure compatibility, please make sure the tools module version matches the ComPDFKit SDK
version.
dependencies {
implementation 'com.compdf:compdfkit:2.1.3'
implementation 'com.compdf:compdfkit-ui:2.1.3'
+ implementation 'com.compdf:compdfkit-tools:2.1.3'
}
The ComPDFKit_Tools module provides two main components: CPDFDocumentActivity and CPDFDocumentFragment.java. These components enable you to easily implement PDF functionalities.
Use CPDFDocumentActivity to display a PDF document:
CPDFConfiguration configuration = CPDFConfigurationUtils.normalConfig(fragment.getContext(), "tools_default_configuration.json");
// Example 1:
CPDFDocumentActivity.startActivity(context, uri, password, configuration);
// Example 2:
CPDFDocumentActivity.startActivity(context, filePath, password, configuration);
Use CPDFDocumentFragment to load a PDF document into a Fragment:
CPDFConfiguration configuration = CPDFConfigurationUtils.normalConfig(fragment.getContext(), "tools_default_configuration.json");
// Example 1:
CPDFDocumentFragment documentFragment = CPDFDocumentFragment.newInstance(
filePath,
password,
configuration);
// Example 2:
CPDFDocumentFragment documentFragment = CPDFDocumentFragment.newInstance(
uri,
password,
configuration);