I used itext api to text esignature in pdf document. For particular type of pdf documents ,I couldn’t able to print esign in pdf. I didnt find any error in java to be thrown. I am getting “not pdf/sigq complaint and may display inconsistently” error message in preview mode while opening the file in Acrobat reader 8.0
I have java code as below to add image to a pdf document. For pdf complaince document (not pdf/sigq complaint) my code is not adding logo to pdf file with out throwing any error.
How can i determine from java code that the pdf is non complaince. suggest the better solution to me.
I used itext-1.3.1.jar for the below code:
sample code snippet:
ByteArrayOutputStream signedPdf = new ByteArrayOutputStream();
PdfReader reader = new PdfReader(pdfStream);
PdfStamper stamp = new PdfStamper(reader, signedPdf);
PdfContentByte over = stamp.getOverContent(1); // 1 is first page in pdf
BufferedImage voiceLogoImage = ImageIO.read(new File ("logo.jpg"));
//last line doesn't return any error msg even image is not going to print in the non compliance pdf document.