Hi, Requirement: While clicking the Image in the PDF, it should pop up high resolution image. This should be done by "Attach file" concept.
I have done the above requirement by using the code listed below.but when i open this file ,every image has a small note/comment icon attached to it i want to hide that note/comment icon.how to do that please advise. PdfContentByte cb = stamp.getWriter().getDirectContent(); cb.rectangle(250/*left*/, 250/*top*/,250/*right*/, 250/*bottom*/); cb.stroke(); Rectangle rect = new Rectangle(Integer.parseInt((String) JOptionPane.showInputDialog(null,"Please enter the Width")),Integer.parseInt ((String)JOptionPane.showInputDialog(null,"Please enter the Height"))); JFileChooser jff = new JFileChooser(); jff.showOpenDialog(null); String images=jff.getSelectedFile().getPath(); PdfFileSpecification pf = PdfFileSpecification.fileEmbedded (stamp.getWriter(),images, images, null); PdfAnnotation annot = PdfAnnotation.createFileAttachment (stamp.getWriter(), rect,"Double-click" , pf); PdfAppearance ap = cb.createAppearance(300, 300); ap.setBoundingBox(rect); ap.setLineWidth(1); annot.setAppearance(PdfAnnotation.APPEARANCE_NORMAL, ap); annot.setAppearance(PdfAnnotation.APPEARANCE_DOWN, ap); annot.setPage(); stamp.addAnnotation(annot, i); //} stamp.close(); } } thanks selvik ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/