From dev-return-59321-archive-asf-public=cust-asf.ponee.io@pdfbox.apache.org Thu Nov 1 09:03:07 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id C644C180652 for ; Thu, 1 Nov 2018 09:03:06 +0100 (CET) Received: (qmail 73738 invoked by uid 500); 1 Nov 2018 08:03:05 -0000 Mailing-List: contact dev-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pdfbox.apache.org Delivered-To: mailing list dev@pdfbox.apache.org Received: (qmail 73721 invoked by uid 99); 1 Nov 2018 08:03:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Nov 2018 08:03:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 0E61CCA569 for ; Thu, 1 Nov 2018 08:03:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id n4sqOgI4gn7n for ; Thu, 1 Nov 2018 08:03:04 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 44F175F48F for ; Thu, 1 Nov 2018 08:03:04 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 241D9E2650 for ; Thu, 1 Nov 2018 08:03:03 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 39FC527793 for ; Thu, 1 Nov 2018 08:03:02 +0000 (UTC) Date: Thu, 1 Nov 2018 08:03:02 +0000 (UTC) From: "bal (JIRA)" To: dev@pdfbox.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PDFBOX-4312) Signature is not getting inserted into 00000 area MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/PDFBOX-4312?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D166= 71229#comment-16671229 ]=20 bal commented on PDFBOX-4312: ----------------------------- signing will only work if you calculate the signature from the input stream= at the time sign() is called. can u please explain i am not getting it .??= ? actually when i used the pdsignature.setcontents(signaturebytes)=C2=A0 it i= s inserting the signature at proper byte range i.e within the contents in h= ex form without trailing 0's but when used addsignature method it only add = trailing 0's and signature is getting inserted at end of the pdf. thanks. =C2=A0 =C2=A0=C2=A0 > Signature is not getting inserted into 00000 area > ------------------------------------------------- > > Key: PDFBOX-4312 > URL: https://issues.apache.org/jira/browse/PDFBOX-4312 > Project: PDFBox > Issue Type: Bug > Components: .NET, PDModel, Signing > Affects Versions: 1.8.9, 1.8.15 > Reporter: bal > Priority: Major > Fix For: 1.8.17 > > > Hi , > I want to sign pdf using signature in pkcs 7 format . I am converting pkc= s 7 signature to byte array using Convert.FromBase64String method in .net .= I am passing this byte array to sign method in signature interface which g= ets called after calling saveincremental. My byte array is inserting proper= but the name of which signature is not shown when i open pdf. May be my by= te conversion may not proper or something else i am doing wrong. please let= me know. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org For additional commands, e-mail: dev-help@pdfbox.apache.org