ComPDFKit PDF SDK
專業(yè)全面的{PDFSDK}解決方案
ComPDFKit PDF 開發(fā)工具包提供創(chuàng)建、查看注釋、編輯、簽名等多個 PDF 組件,適用于在Web、windows、Android、ios、Mac.Linux 等多個平臺上開發(fā)軟件或集成系統(tǒng),為開發(fā)人員和企業(yè)提供全面、定制化的 PDF SDK 解決方案。


開發(fā)者的最佳 PDF 開發(fā)包
強大的 PDF API 支持快速集成
專為開發(fā)人員設(shè)計,僅需幾行代碼就能輕松簡單地將 PDF 開發(fā)組件快速集成到軟件、程序或系統(tǒng)中。
JavaScript
// Import ComPDFKit WebViewer into your component.
import ComPDFKitViewer from '/@compdfkit/webviewer';
const viewer = document.getElementById('webviewer');
// Initialize ComPDFKit Web viewer and load your pdf
ComPDFKitViewer.init({
pdfUrl: 'Your PDF Url',
}, viewer)
.then((core) => {
const docViewer = core.docViewer;
docViewer.addEvent('documentloaded', () => {
console.log('ComPDFKit Web Viewer loaded');
})
})
C# WPF
using ComPDFKitViewer.PdfViewer;
// Load a document
CPDFViewer pdfViewer = new CPDFViewer();
pdfViewer.InitDocument("Test.pdf");
// A Grid named "PDFGrid" from xaml used to display PDF document
PDFGrid.Children.Add(pdfViewer);
C# UWP
using ComPDFKitViewer.PdfViewer;
// Load a document
CPDFViewer pdfViewer = new CPDFViewer();
var localFile = new Uri("ms-appx:///Assets/Test.pdf");
StorageFile file = await StorageFile.GetFileFromApplicationUriAsync(localFile);
pdfViewer.OpenFile(file);
// A Grid named "PDFGrid" from xaml used to display PDF document
PDFGrid.Children.Add(pdfViewer);
Java
import com.compdfkit.core.document.CPDFDocument;
import com.compdfkit.ui.reader.CPDFReaderView;
CPDFReaderView readerView = findViewById(R.id.reader_view);
// Load a document
CPDFDocument document = new CPDFDocument(this);
File file = new File("Test.pdf");
document.open(file.getAbsolutePath());
readerView.setPDFDocument(document);
Kotlin
import com.compdfkit.core.document.CPDFDocument
import com.compdfkit.ui.reader.CPDFReaderView
val readerView = findViewByIdCPDFReaderView>(R.id.reader_view)
// Load a document.
val document = CPDFDocument(this)
document.open(File("Test.pdf").absolutePath)
readerView.pdfDocument = document
Swift
import ComPDFKit
guard let pdfPath = Bundle.main.path(forResource: "Test", ofType: "pdf") else {
fatalError("PDF file not found")
}
let url = URL(fileURLWithPath: pdfPath)
let document = CPDFDocument(url: url)
// Initialize a CPDFView object with the size of the entire screen.
let rect = UIScreen.main.bounds
let pdfView = CPDFView(frame: rect)
pdfView.document = document
Objective-C
#import ComPDFKit/ComPDFKit.h>
// Load a document.
// This is the container for your PDF file. It can also manage multiple files.
NSBundle *bundle = [NSBundle mainBundle];
NSString *pdfPath= [bundle pathForResource:@"Test" ofType:@"pdf"];
NSURL *url = [NSURL fileURLWithPath:pdfPath];
CPDFDocument *document = [[CPDFDocument alloc] initWithURL:url];
// Initialize a CPDFView object with the size of the entire screen.
CGRect rect = [[UIScreen mainScreen] bounds];
CPDFView *pdfView = [[CPDFView alloc] initWithFrame:rect];
pdfView.document = document;
Swift
import ComPDFKit
// Load a document.
// This is the container for your PDF file. It can also manage multiple files.
let bundle = Bundle.main
let pdfPath = bundle.path(forResource: "Test", ofType: "pdf")
let url = URL(fileURLWithPath: pdfPath!)
let document = CPDFDocument(url: url)
// Initialize a CPDFView object to fit the entire screen size.
let rect = NSApp.mainWindow?.frame ?? NSRect.zero
let pdfView = CPDFView(frame: rect)
pdfView.document = document
Objective-C
#import ComPDFKit/ComPDFKit.h>
// Load a document.
// This is the container for your PDF file. It can also manage multiple files.
NSBundle *bundle = [NSBundle mainBundle];
NSString *pdfPath= [bundle pathForResource:@"Test" ofType:@"pdf"];
NSURL *url = [NSURL fileURLWithPath:pdfPath];
CPDFDocument *document = [[CPDFDocument alloc] initWithURL:url];
// Initialize a CPDFView object to fit the entire screen size.
NSRect rect = [NSApp mainWindow].frame;
CPDFView *pdfView = [[CPDFView alloc] initWithFrame:rect];
pdfView.document = document;
Java
import com.compdfkit.core.document.CPDFDocument;
// Load a document.
CPDFDocument document = new CPDFDocument(this);
File file = new File("Test.pdf");
document.open(file.getAbsolutePath());
.NET
using ComPDFKitViewer.PDFDocument;
// Load a document.
CPDFDocument document = CPDFDocument.InitWithFilePath("Test.pdf");
Curl
curl --location --request POST 'https://api-server.compdf.com/server/v1/file/upload' \
--header 'Authorization: Bearer accessToken' \
--form 'file=@"test.pdf"' \
--form 'taskId="taskId"' \
--form 'password=""' \
--form 'parameter="{ \"isContainAnnot\": 1 , \"isContainImg\":1,\"wordLayoutMode\":1,\"isAllowOcr\":0,\"isContainOcrBg\":0,\"isOnlyAiTable\":0}"' \
--form 'language=""'
Java
import java.io.*;
import okhttp3.*;
public class main {
public static void main(String []args) throws IOException{
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
.addFormDataPart("file","{{file}}",
RequestBody.create(MediaType.parse("application/octet-stream"),
new File("file>")))
.addFormDataPart("taskId","{{taskId}}")
.addFormDataPart("language","{{language}}")
.addFormDataPart("password","")
.addFormDataPart("parameter","{ \"isFlowLayout\": \"1\", \"isContainImg\": \"1\"}")
.build();
Request request = new Request.Builder()
.url("https://api-server.compdf.com/server/v1/file/upload")
.method("POST", body)
.addHeader("Authorization", "Bearer {{accessToken}}")
.build();
Response response = client.newCall(request).execute();
}
}
PDF SDK
ComPDFKit PDF SDK 為網(wǎng)頁端、桌面端、移動端提供了高保真的 PDF 文檔渲染,并支持豐富全面的 PDF 功能如閱讀、注釋、編輯、轉(zhuǎn)檔、簽名等,滿足不同場景下處理 PDF 的需求。

PDF Server
ComPDFKit Server 提供 Java PDF 庫、.NET PDF 庫和 On-premises, 支持在 SaaS 服務(wù)器、私有服務(wù)器、或第三方云平臺上部署并調(diào)取接口批量處理 PDF 文檔。

PDF API
強大的在線 API 通過 HTML API 請求簡化了 PDF 文檔的轉(zhuǎn)換、編輯、管理和水印處理,開發(fā)人員可以突破平臺和服務(wù)器的限制實現(xiàn)輕松處理 PDF 文檔。

PDF 行業(yè)解決方案
針對不同業(yè)務(wù)需求的定制化解決方案
無論是在建筑、教育、航空、政府、銀行、保險,還是任何其他行業(yè)或領(lǐng)域,我們的 PDF SDK 都能簡化您的工作流程。無論是將 PDF 功能集成到應(yīng)用程序中還是與團隊協(xié)作進行 PDF 編輯,我們都能為您量身定制理想的解決方案。
智能文檔處理解決方案 - AI 助力工作流程自動化
ComIDP 智能文檔處理解決方案基于 AI 技術(shù),自動識別、理解并處理非結(jié)構(gòu)化數(shù)據(jù),為文檔處理降本增效提質(zhì),助力企業(yè)實現(xiàn)工作流程的自動化。

建筑
ComPDFKit PDF SDK 能精確渲染和測量設(shè)計圖紙,輕松編輯和簽署投標書,讓建筑項目的工作流程更加順暢。

教育
將 PDF SDK 集成到教學系統(tǒng)或者自主學習軟件中,學生和教師可以在課堂或課后查看和編輯學習材料,實現(xiàn)課堂數(shù)字化,提高學習效率。

航空
PDF 技術(shù)是航空業(yè)不可或缺的一部分,從快速創(chuàng)建、注釋、填表到簽署 PDF 文件,均需在航空系統(tǒng)的應(yīng)用程序中實現(xiàn),如在飛行前查看安全檢查單和乘客/貨物清單。

政府
政府部門可以使用 ComPDFKit 簽署各類文件,通過加密和權(quán)限設(shè)置確保機密數(shù)據(jù)的安全性和完整性。

我們的客戶和榮譽
我們的卓越品質(zhì)贏得了全球客戶信賴,為合作伙伴提供了最有力的保障。


資源和支持中心
獲取最新的解決方案和技術(shù)支持
技術(shù)支持 >>
SDK 開發(fā)文檔
豐富易懂的 SDK 集成文檔和開發(fā)指南。
API 開發(fā)文檔
全面的 API 指南,幫助您實現(xiàn)無縫調(diào)用。
Blog 文章
了解我們的最新版本內(nèi)容、How-to 教程、用戶案例等。

京ICP備09015132號-996 | 違法和不良信息舉報電話:4006561155
© Copyright 2000-2026 北京哲想軟件有限公司版權(quán)所有 | 地址:北京市海淀區(qū)西三環(huán)北路50號豪柏大廈C2座11層1105室
北京哲想軟件集團旗下網(wǎng)站:哲想軟件 | 哲想動畫