在 Java 中使用 Image 签名对 Odp 文件进行签名

如何用几行 Java 代码添加 Image 签名


下载免费试用版

关于 GroupDocs.Signature for Java 图像签名 API

GroupDocs.Signature for Java 是用于数字文档电子签名的流行 API。可以使用文本、图像、数字证书、条形码、二维码、印章或元数据等签名。签名可以放在 PDF、MS Word 文档、MS Excel 工作簿、MS PowerPoint 演示文稿、Adobe Photoshop 文件和各种图像格式上。客户可以签署他们的文件并更新、搜索、验证、删除或预览放在这些文件上的电子签名。此外,还提供了许多签名定制的能力。

在 Java 中使用 Image 签署 Odp 的步骤

GroupDocs.Signature for Java 提供使用 Image 签名快速轻松地签署 Odp 文档的能力。

  • 创建 Signature 类的实例,提供 Odp 文件应该作为路径或内存流进行签名
  • 实例化 SignOptions 类并设置所有需要的数据。
  • 调用 Signature.Sign() 方法传递输出 Odp 文件或内存流

系统要求

所有主要平台和操作系统都支持 GroupDocs.Signature for Java。在执行以下代码之前,请确保您的系统上安装了以下先决条件。

  • 操作系统:Microsoft Windows、Linux、MacOS
  • 开发环境:NetBeans, Intellij IDEA, Eclipse, etc.
  • Java runtime: J2SE 6.0 and above
  • Maven 获取最新的 GroupDocs.Signature for Java

        
// Set up input Odp file
String filePath = "input.odp";
// Set up output file
String outputFilePath = "output.odp";
// Provide image file
String imageFilePath = "image.png";

// Instantiate Signature for input file
Signature signature = new Signature(filePath);

//Provide sign options
ImageSignOptions options = new ImageSignOptions(imageFilePath);

// set signature position
options.setLeft(50);
options.setTop(200);

// sign Odp document
SignResult result = signature.sign(outputFilePath, options);

使用 Image 现场演示签署 Odp 文档

访问 GroupDocs.Signature App 网站,立即使用各种签名为 Odp 文件签名。免费在线演示等着你。

无需下载 API

无需编写任何代码

只需上传源文件

获取下载链接以保存文件

Java 的其他支持的 Image 签名

“您还可以使用其他签名类型对 Odp 进行签名。请参阅下面的列表。”

用PDF签名IMAGE

(Portable Document Format)

用DOC签名IMAGE

(Microsoft Word Binary Format)

用DOCX签名IMAGE

(Office 2007+ Word Document)

用DOCM签名IMAGE

(Microsoft Word 2007 Marco File)

用DOT签名IMAGE

(Microsoft Word Template Files)

用DOTM签名IMAGE

(Microsoft Word 2007+ Template File)

用DOTX签名IMAGE

(Microsoft Word Template File )

用ODT签名IMAGE

(OpenDocument Text File Format)

用OTT签名IMAGE

(OpenDocument Standard Format)

用RTF签名IMAGE

(Rich Text Format)

用XLS签名IMAGE

(Microsoft Excel Spreadsheet (Legacy))

用XLSX签名IMAGE

(Open XML Workbook)

用XLSM签名IMAGE

(Macro-enabled Spreadsheet)

用XLSB签名IMAGE

(Excel Binary Workbook)

用CSV签名IMAGE

(Comma Seperated Values)

用ODS签名IMAGE

(OpenDocument Spreadsheet)

用OTS签名IMAGE

(OpenDocument Spreadsheet Template)

用XLTX签名IMAGE

(Excel Template)

用XLTM签名IMAGE

(Excel Macro-Enabled Template)

用PPT签名IMAGE

(Microsoft PowerPoint 97-2003)

用PPTX签名IMAGE

(Open XML presentation Format)

用PPS签名IMAGE

(PowerPoint Slide Show)

用PPSX签名IMAGE

(PowerPoint Slide Show)

用OTP签名IMAGE

(OpenDocument Standard Format)

用POTX签名IMAGE

(Microsoft PowerPoint Template Presentation)

用POTM签名IMAGE

(Microsoft PowerPoint Template File)

用PPTM签名IMAGE

(Macro-enabled Presentation File)

用PPSM签名IMAGE

(Macro-enabled Slide Show)

用PNG签名IMAGE

(Portable Network Graphic)

用JPG签名IMAGE

(Joint Photographic Expert Group Image)

用BMP签名IMAGE

(Bitmap Image File)

用GIF签名IMAGE

(Graphical Interchange Format)

用TIFF签名IMAGE

(Tagged Image File Format)

用SVG签名IMAGE

(Scalar Vector Graphics)

用WEBP签名IMAGE

(Raster Web Image Format)

用WMF签名IMAGE

(Windows Metafile)

Back to top
 中国人