Here the author of the mystic 10000. This value is the page height to
position the view at the top. As the destination page size is generally not
known the 10000 was an arbitrary big enough value greater then the
destination page. Why -32768 would work better is a mystery to me.
Paulo
On Mar 7, 2013 7:42 PM, "Paul Breslaw" <p...@breslaw.co.uk> wrote:
>
>
> On 07/03/13 15:27, Benjamin Podszun wrote:
>
> > Sorry for chiming in here, but it seems as if you're misunderstanding
> each
> > other?
>
> Thank you Benjamin - I believe they were.
>
> > If I may:
>
> Please do ...
>
> > Paul seems to ask why itext(!) uses this magic constant (which
> > doesn't always work in his case).
> > The 10000 is in your code, your PdfAction constructor.
> >
> >
> http://sourceforge.net/p/itext/code/HEAD/tree/trunk/itext/src/main/java/com/itextpdf/text/pdf/PdfAction.java#l187
> >
> > Paul seems to ask 'Why 10000' and 'Any idea why -32768 works better for
> the
> > Reader'.
>
> ... Exactly!
>
> > At least the former seems to be something that you know about, or knew in
> > the past? :-)
>
> Here, 'you', means the authors - past and/or present - of the wonderful
> iText library.
>
> > I hope I didn't _add_ to the confusion.
>
> Not at all; and I hope your clarification of my question leads to my
> enlightenment by some kind soul. Perhaps the original author of
> PdfAction.java is reading this, and remembers why the (uncommented)
> value of 10000 was used.
>
>
>
> Regards
>
> Paul.
>
>
> ------------------------------------------------------------------------------
> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
> endpoint security space. For insight on selecting the right partner to
> tackle endpoint security challenges, access the full report.
> http://p.sf.net/sfu/symantec-dev2dev
> _______________________________________________
> 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
>
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
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