我正在使用 DSS 签署 Pdf 文档。我需要为这些文档添加时间戳并启用 LTV(启用 PAdES LTV)。
我遇到了一些关于撤销数据的问题。
我对这个领域有点陌生,所以请耐心等待。
我正在按照 DSS 本身提供的说明和演示进行操作,但无济于事。
我已经成功地使用 PAdES B 和 PAdES T 签署了 Pdf,所以我的 TSA 服务设置正确。
我遇到的问题是,每次我尝试使用 LTV 签署 Pdf 时,我都会收到以下错误: “eu.europa.esig.dss. DSSException : Revocation data is missing”,我不知道为什么.. . 调用“service.signDocument(...)”时抛出此异常,并在 Debugging 说之后
“eu.europa.esig.dss.validation SignatureValidationContext -没有找到吊销数据为证:(......)” 。
这是我的主要签名方法:
public void createSignature(KeyStore ks, Properties props, File inFile, File outFile, String extraName, boolean visible) throws GeneralSecurityException, IOException {
PAdESSignatureParameters params = new PAdESSignatureParameters();
DSSDocument toSignDocument = new FileDocument(inFile);
DSSDocument signedDocument;
try(Pkcs12SignatureToken token = …
Run Code Online (Sandbox Code Playgroud) 我正在使用pdf 编辑器。
我使用基于 iText 的OpenPDF核心对 pdf 文件进行了更改
我正在使用AndroidPdfViewer查看 Pdf 文件
我的问题是:
将新的注释(如文本或标签或图标)添加到现有的 pdf 文件中。 (已解决)
在注释添加到 pdf 文件后立即显示新更改。(已解决)
将用户点击转换为 Pdf 文件坐标以根据用户点击位置添加新注释。
在添加的注释上获取点击事件并读取添加到该注释中的元数据,例如:读取在图标注释上设置的标签哈希 ID。(已解决)
从 PDF 文件中删除添加的注释。
任何帮助表示赞赏
================================================== ======================
public static void addWatermark(Context context, String filePath) throws FileNotFoundException, IOException {
// get file and FileOutputStream
if (filePath == null || filePath.isEmpty())
throw new FileNotFoundException();
File file = new …
Run Code Online (Sandbox Code Playgroud) 我一直在尝试从iText v5.5.11(许可版本)库迁移到OpenPDF v1.2.8(开源)库。我认为两者都具有相似的功能。但是,在renderImage从功能的iText库中缺少OpenPDF图书馆,我需要的是在替代功能的OpenPDF库。
请帮忙。
提前致谢,
我希望能得到一些帮助来重写一些使用反射的 Java 代码,以从 Java 10 上的编译器中删除警告:
这是有问题的Java方法:
public static boolean clean(final java.nio.ByteBuffer buffer) {
if (buffer == null || !buffer.isDirect())
return false;
Boolean b = (Boolean) AccessController.doPrivileged(new PrivilegedAction() {
public Object run() {
Boolean success = Boolean.FALSE;
try {
Method getCleanerMethod = buffer.getClass().getMethod("cleaner", (Class[])null);
getCleanerMethod.setAccessible(true);
Object cleaner = getCleanerMethod.invoke(buffer, (Object[])null);
Method clean = cleaner.getClass().getMethod("clean", (Class[])null);
clean.invoke(cleaner, (Object[])null);
success = Boolean.TRUE;
} catch (Exception e) {
// This really is a show stopper on windows
//e.printStackTrace();
}
return success;
}
}); …
Run Code Online (Sandbox Code Playgroud) 如何使用OpenPDF将HTML转换为PDF ?
据我所知,OpenPdf是Itext 4的一个分支。不幸的是,我找不到Itext 4文档。