If we are providing empty values it is showing empty labels how to avoid that. attached image for the reference
aspose.png (4.4 KB)
Could you please share your sample code snippet and sample file(s) for our reference? We will test the scenario in our environment and address it accordingly.
import java.awt.Rectangle;
import com.aspose.pdf.License;
import com.aspose.pdf.PKCS1;
import com.aspose.pdf.facades.PdfFileSignature;
public class SignPDFWithCertificate {
public static void main(String[] args) {
SignPDFWithCertificate sign = new SignPDFWithCertificate();
try {
sign.generateSignedPDF();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
public void generateSignedPDF() throws Exception {
String myDir = "C:\\Convertion\\PDF\\";
License asposePdfLicenseProtect = new License();
asposePdfLicenseProtect.setLicense(getClass().getClassLoader().getResourceAsStream("Aspose.Total.Java.lic"));
PdfFileSignature pdfSign = new PdfFileSignature();
pdfSign.bindPdf(myDir + "input.pdf");
Rectangle rect = new Rectangle(400, 25, 200, 100);
PKCS1 signature = new PKCS1(myDir + "certificate.pfx", "password");
pdfSign.sign(1, "", "", "", true, rect, signature);
pdfSign.save(myDir + "output_signed.pdf");
}
}
Attached the code snippet
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): PDFJAVA-44798
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.