java - Expandable list in pdf files -


can create expandable list in pdf files. expandable list of form :

+item1 +item2 -item3    -subitem3.1    -subitem3.2 +item4 -item5    -subitem5.1    -subitem5.2    -subitem5.3 

also need create pdf file java(i thinking of using itext, library better/easier?). possible. or report in other standard format(not pdf or html) easier way out.

first this: i'm creator of itext, forgive me not pointing other solutions ;-)

now question: you're asking dynamic functionality (a tree structure opens/closes upon user interaction) inside pdf document.

the obvious answer is: isn't possible. when creating pdf, think of paper. can print tree structure on paper opens/closes when end user touches paper? no, can't, therefore you're asking isn't possible in pdf.

the less obvious answer is: depends. type of pdf talking about?

if you're talking interactive xfa form, may able achieve want. xml forms architecture (xfa) xml specification can used define interactive forms. when use xfa, pdf nothing more container xml. xml rendered dynamically inside adobe reader. how create xfa form? know 2 products: adobe livecycle designer , avoka smart forms designer.

if you're talking 'regular pdf', 1 option embed swf file. in case, tree structure rendered flash player (which disadvantage, because might not work pdf viewers). disadvantage: tree structure confined fixed rectangle on fixed page.

finally: can have create such structure in bookmarks panel. in pdf terminology, bookmarks called outlines. obviously, tree structure won't part of printable content. visible in separate panel in pdf viewer.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -