CoSign API:使用SAPI签名PDF流吗? [英] CoSign API: Signing a PDF stream using SAPI?

查看:86
本文介绍了CoSign API:使用SAPI签名PDF流吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中,我将处理PDF流。我可以即时添加自定义签名以进行流式传输吗?
我已经下载了示例Buffer Sign。它在文档上签名,但没有位置签名。
在我的项目中,我需要在PDF示例中的适当位置添加自定义签名:

In my project I'll work with stream from PDF. Can I add customized signature on the fly to stream? I have downloaded example Buffer Sign. It signs document, but without place signature. In my project I need to add customized signature in the proper place as in PDF example:

string FileName, string FieldName, string User, string Password,
  string SignPassword, int page, int x, int y, int height, int width,
bool Invisible, string Reason, int AppearanceMask, string NewFieldName,
  string GraphImgName


推荐答案


  1. 使用SAPI创建文件句柄的CreateFileHandleByMem函数。

  2. 使用SignatureFieldCreateSignEx2函数创建并签署签名字段。

  3. 使用GetFileMemData函数检索签名的字节数组。

您可以在 SAPI手册

这篇关于CoSign API:使用SAPI签名PDF流吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆