If you set it manually in an Adobe product and save the file it appears to
re-open with you last view.. Must be some flag somewhere so it would be
interesting too see it there was a programatic way to set this..

 

john renfrew 

Right Way Up 

 

From: Mark Storer [mailto:msto...@autonomy.com] 
Sent: 15 June 2011 22:43
To: Post all your questions about iText here
Subject: Re: [iText-questions] Collapse bookmarks by default

 

I believe each bookmark has an open/close setting... and I'm wrong.

 

It doesn't look like there's any way to control that what so ever.  Humph.
I'd have put money on that too.

 

--Mark Storer

  Senior Software Engineer

  Cardiff.com

 

import legalese.Disclaimer;

Disclaimer<Cardiff> DisCard = null;

 

 

 


  _____  


From: srikanth bapanapalli [mailto:srikant...@hotmail.com] 
Sent: Wednesday, June 15, 2011 10:16 AM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] Collapse bookmarks by default

Hello,
 
i created a pdf using itext, but it shows all bookmarks open. i want to be
able to collapse bookmarks by default.
how can i do that

here is the code
 

Document document = new Document(PageSize.A4.rotate());

PdfWriter writer = PdfWriter.getInstance(document, new
FileOutputStream(filename));

writer.setViewerPreferences(PdfWriter.PageModeUseOutlines); // Working
Correctly 

writer.setPageEvent(new PageNumber());

document.open();

 

Sreekanth 

 




  


  _____  


From: srikant...@hotmail.com
To: itext-questions@lists.sourceforge.net
Subject: Collapse bookmarks by default
Date: Wed, 15 Jun 2011 13:12:01 -0400

Hello,
 
i created a pdf using itext, but it shows all bookmarks open. i want to be
able to collapse bookmarks by default.
how can i do that
 
thanks,

Sreekanth

 

 

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-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
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-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