Take a survey

Developing Applications Using APIs > Assembling PDF Documents > Working with Bookmarks > Creating bookmarks from source documents

Creating bookmarks from source documents
For each PDF source document in an assembly, you can specify the name of a bookmark in the result document by using the bookmarkTitle attribute. The bookmark appears in the result document as a level 1 bookmark whose destination is the first page of the source document.
In the following example, each chapter in the book will have a level 1 bookmark. All bookmarks that are present in the source documents are moved down a level.
Example: Creating bookmarks from source documents
<PDF result="TheBook">
	<PDF source="Chap1" bookmarkTitle="Chapter 1"/>
	<PDF source="Chap2" bookmarkTitle="Chapter 2"/>
	<PDF source="Chap3" bookmarkTitle="Chapter 3"/>
</PDF>
For example, suppose the bookmarks in each of the chapters are:
Section A
Section B
Section C
The bookmarks in the result document will have this hierarchy:
Chapter 1
Section A
Section B
Section C
Chapter 2
Section A
Section B
Section C
Chapter 3
Section A
Section B
Section C
To create more than one level of bookmarks from the source documents, you must use intermediate results. (You cannot, for example, specify the bookmarkTitle attribute on the PDFGroup element.) The following example illustrates this point.
Example: Creating bookmarks from source documents
<PDF result="PartI">
	<PDF source="Chap1" bookmarkTitle="Chapter 1"/>
	<PDF source="Chap2" bookmarkTitle="Chapter 2"/>
	<PDF source="Chap3" bookmarkTitle="Chapter 3"/>
</PDF>
<PDF result="PartII">
	<PDF source="Chap4" bookmarkTitle="Chapter 4"/>
	<PDF source="Chap5" bookmarkTitle="Chapter 5"/>
</PDF
<PDF result="PartIII">
	<PDF source="Chap6" bookmarkTitle="Chapter 6"/>
	<PDF source="Chap7" bookmarkTitle="Chapter 7"/>
	<PDF source="Chap8" bookmarkTitle="Chapter 8"/>
</PDF>
	
<PDF result="BigDoc">
	<PDF source="PartI" bookmarkTitle="Part I"/> 
	<PDF source="PartII" bookmarkTitle="Part II"/>
	<PDF source="PartIII" bookmarkTitle="Part III"/>
</PDF>
The resulting bookmarks will be
Part I
Chapter 1
...bookmarks from Chap1
Chapter 2
...bookmarks from Chap2
Chapter 3
...bookmarks from Chap3
Part II
Chapter 4
...bookmarks from Chap4
...etc...

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/sdkHelp/assemblePDFBookmarks.97.4.html