GroupDocs.Signature for Java 提供 Java API 用于处理使用各种签名类型的文档,例如文本、图像、数字证书、条形码、QR 码、图章或元数据。用户可以在 PDF、MS Word 文档、MS Excel 工作簿、MS PowerPoint 演示文稿、Adobe Photoshop 文件和各种图像格式中添加、删除、更新、验证或搜索电子签名,并根据需要额外支持自定义签名属性。
GroupDocs.Signature for Java 让 Java 开发人员通过执行几个简单的步骤,可以更轻松地从他们的应用程序中搜索 Pdf 文件中的 Barcode 签名。
所有主要平台和操作系统都支持 GroupDocs.Signature for Java。在执行以下代码之前,请确保您的系统上安装了以下先决条件。
// Set up input Pdf file
String filePath = "input.pdf";
// Instantiate Signature for input file
Signature signature = new Signature(filePath);
//Create search options
BarcodeSearchOptions options = new BarcodeSearchOptions();
// specify special pages to search on
options.setAllPages(false);
// single page number
options.setPageNumber(1);
// specify text match type
options.setMatchType(TextMatchType.Contains);
// specify text pattern to search
options.setText("Text signature");
// return Barcode images for processing
options.setReturnContent(true);
// set up type of returned Barcode images
options.setReturnContentType(FileType.PNG);
// search for Barcode signatures in Pdf document
List<BarcodeSignature> signatures = signature.search(BarcodeSignature.class, options);
// process signatures which were found
signatures.forEach(item -> System.out.println(item.toString()));
立即访问 GroupDocs.Signature App 网站,在文档中搜索 Pdf 文件的各种电子签名。
无需下载 API
无需编写任何代码
只需上传源文件
获取下载链接以保存文件
“在各种文档中搜索电子签名。从一种流行的文件格式中查找签名,如下所示。”
(Microsoft Word Binary Format)
(Office 2007+ Word Document)
(Microsoft Word 2007 Marco File)
(Microsoft Word Template Files)
(Microsoft Word 2007+ Template File)
(Microsoft Word Template File )
(OpenDocument Text File Format)
(OpenDocument Standard Format)
(Rich Text Format)
(Microsoft Excel Spreadsheet (Legacy))
(Open XML Workbook)
(Macro-enabled Spreadsheet)
(Excel Binary Workbook)
(Comma Seperated Values)
(OpenDocument Spreadsheet)
(OpenDocument Spreadsheet Template)
(Excel Template)
(Excel Macro-Enabled Template)
(Microsoft PowerPoint 97-2003)
(Open XML presentation Format)
(PowerPoint Slide Show)
(PowerPoint Slide Show)
(OpenDocument Presentation Format)
(OpenDocument Standard Format)
(Microsoft PowerPoint Template Presentation)
(Microsoft PowerPoint Template File)
(Macro-enabled Presentation File)
(Macro-enabled Slide Show)
(Portable Network Graphic)
(Joint Photographic Expert Group Image)
(Bitmap Image File)
(Graphical Interchange Format)
(Tagged Image File Format)
(Scalar Vector Graphics)
(Raster Web Image Format)
(Windows Metafile)