Hi,

Can you please tell me if there is a way to create a Bookmark in the top of
the page, in a way to represent 'Home' link to the beginning of the first
page. I need to add one to the existing pdf file.

I have tried with the code similar from the book, but cannot find a proper
parameter to add it to the top of the page, only bottom. I use it with
PdfStamper to generate file with bookmark.

I don't want to use FIT, FITH, ... etc. since don't want to change how user
is viewing the document, just need to show the document from the beginning
again.

I've tried with this code:

IList<Dictionary<string, Object>> outlines = new
List<Dictionary<string, Object>> ();
Dictionary<string, Object> map = new Dictionary<string, Object>
();
outlines.Add(map);

map.Add("Title", "Home");
map.Add("Action", "GoTo");
map.Add("Page", "1 XYZ 0 0 0");

but it always set my page to the bottom, and I need it on the top.

Did not managed to find some parameter that will get me to the top of the
page, or something similar.

Would be great if someone can give me a hand with this

Thanks!!!

--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Create-Bookmak-in-the-top-of-the-page-tp3746951p3746951.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-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

Reply via email to