> > Hello! > > How can i add a named destination on every page of an existing pdf-document? > I know i must use the PDFStamper. But how can i do it? > > thx!
I want to call the pdf-document like this: "http://myserver/mywebapp/servlet/getdoc?id=2#nameddest=mynamedest1" Code example: .... for (int i = 1; i < reader.getNumberOfPages() ; i++) { //how can i create and add a named destination? //is this right? PdfAnnotation annot =new PdfAnnotation(stamper.getWriter(), new Rectangle(1, 1, 2, 2)); annot.put(PdfName.DESTS, new PdfString("mynamedest" + i)); stamper.addAnnotation(annot, i); // or this? //stamper.getUnderContent(i).? //stamper.getOverContent(i).? } >> .... >> ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
