I've found some strange behaviour of Chunk.setRemoteGoto(file, pageno) under 5.3.5 and 5.4.0.
In my application, the target page number is always set to 1, and the vast majority of generated links go to page 1 of the target file. A very few, however, go to what seems like a random page. Then I discovered that this was only true of the Adobe reader. Other readers - evince, xpdf, gv - worked correctly. I isolated one of these misbehaved target files, and looked at the corresponding iText-generated pdf code in the source file:- [0 /FitH 10000]. Then, using an Adobe plug-in, I exported the link from the source file and re-imported it. Now it was:- [0 /FitH -32768] and it correctly linked to page 1 with all the viewers. I looked at the source code of Chunk.setRemoteGoto and traced it to the PdfAction constructor, which generates the [0 /FitH 10000]. Does anyone know why this magic 10000 is there? I've changed my source code and -32768 seems to do a better job. Any idea why? Thanks. ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php