PDFOutliner
PDFOutliner to add a Table of Contents to your PDF. Also copy and paste TOC Items back into your iStudio document.
- PDFOutliner makes it easy to edit the Table of Contents (TOC) in your PDFs. This video shows how you can customize the TOC in a 450page PDF such that the mos.
- This 2 min video shows how the AutoTOC feature in PDFOutliner works by interpreting the fonts used in the PDF document. AutoTOC makes it easy to automaticall.
I recently finished my PhD thesis and published it as eBook. Actually it is not that difficult to do that yourself, and personally I prefer digital formats more and more. So let me help you getting started. Note that I work on Mac OS X, and these instructions are based on software that does not run under Windows.
First, download and install iBooks Author from the Mac App Store. Now start playing around to make yourself comfortable with it. This is the program that you will create your eBook in. Select a template that you like (I did use one of them), create chapters, and sections according to your needs. You will see that they automatically appear in the table of contents. In the end you can export your eBook in iBooks format, which is perfect for reading on the iPad (or in OS Mavericks, also on your Mac).
Next, you can export your eBook in PDF format. This is good for all devices and ensures compatibility on all platforms. Actually I exported my thesis twice as PDF: one version in “good” quality for viewing on the computer, and one in “best” quality for those who want to print it. Additionally I created an outline in the PDF file (not the print version) using PDFOutliner which I bought from the Mac App Store. This builds a nice table of contents into the PDF for quick browsing. It is not mandatory, but I thought it was nice.
Finally I bought MePub to create ePub files from the PDF version. Actually I created PDF files for each chapter, because that way I also have some table of contents in the ePub file.
And that’s about it! I uploaded the different versions (iBooks, PDF and ePub) to my website where you can download them. For fun I also uploaded the iBooks version to the iTunes store, which can be done by following the instructions from within iBooks Author. I also tried Google Play, but keep getting some errors there which I do not understand. Apparently other people had the same issues and did not find a solution, so I let it be for the moment.
Happy publishing!!
PdfOutline
is an object that represents a PDF outline entry.
An outline allows a user to access views of a document by name.
This object is described in the 'Portable Document Format Reference Manual version 1.3' section 6.7 (page 104-106)
- See Also:
PdfDictionary
Field Summary | |
---|---|
protected java.util.ArrayList | kids |
protected PdfWriter | writer |
Fields inherited from class com.lowagie.text.pdf.PdfDictionary |
---|
CATALOG, FONT, hashMap, OUTLINES, PAGE, PAGES |
Fields inherited from class com.lowagie.text.pdf.PdfObject |
---|
ARRAY, BOOLEAN, bytes, DICTIONARY, INDIRECT, indRef, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, type |
Constructor Summary | |
---|---|
PdfOutline(PdfOutline parent, PdfAction action, Paragraph title) Constructs a PdfOutline . | |
PdfOutline(PdfOutline parent, PdfAction action, Paragraph title, boolean open) Constructs a PdfOutline . | |
PdfOutline(PdfOutline parent, PdfAction action, PdfString title) Constructs a PdfOutline . | |
PdfOutline(PdfOutline parent, PdfAction action, PdfString title, boolean open) Constructs a PdfOutline . | |
PdfOutline(PdfOutline parent, PdfAction action, java.lang.String title) Constructs a PdfOutline . | |
PdfOutline(PdfOutline parent, PdfAction action, java.lang.String title, boolean open) Constructs a PdfOutline . | |
PdfOutline(PdfOutline parent, PdfDestination destination, Paragraph title) Constructs a PdfOutline . | |
PdfOutline(PdfOutline parent, PdfDestination destination, Paragraph title, boolean open) Constructs a PdfOutline . | |
PdfOutline(PdfOutline parent, PdfDestination destination, PdfString title) Constructs a PdfOutline . | |
PdfOutline(PdfOutline parent, PdfDestination destination, PdfString title, boolean open) Constructs a PdfOutline . | |
PdfOutline(PdfOutline parent, PdfDestination destination, java.lang.String title) Constructs a PdfOutline . | |
PdfOutline(PdfOutline parent, PdfDestination destination, java.lang.String title, boolean open) Constructs a PdfOutline . |
Method Summary | |
---|---|
void | addKid(PdfOutline outline) Adds a kid to the outline |
java.awt.Color | getColor() Getter for property color. |
java.util.ArrayList | getKids() Returns the kids of this outline |
PdfDestination | getPdfDestination() Gets the destination for this outline. |
int | getStyle() Getter for property style. |
java.lang.String | getTag() Getter for property tag. |
java.lang.String | getTitle() Gets the title of this outline |
PdfIndirectReference | indirectReference() Gets the indirect reference of this PdfOutline . |
boolean | isOpen() Getter for property open. |
int | level() returns the level of this outline. |
PdfOutline | parent() Gets the parent of this PdfOutline . |
void | setColor(java.awt.Color color) Setter for property color. |
boolean | setDestinationPage(PdfIndirectReference pageReference) Set the page of the PdfDestination -object. |
void | setIndirectReference(PdfIndirectReference reference) Sets the indirect reference of this PdfOutline . |
void | setKids(java.util.ArrayList kids) Sets the kids of this outline |
void | setOpen(boolean open) Setter for property open. |
void | setStyle(int style) Setter for property style. |
void | setTag(java.lang.String tag) Setter for property tag. |
void | setTitle(java.lang.String title) Sets the title of this outline |
void | toPdf(PdfWriter writer, java.io.OutputStream os) Returns the PDF representation of this PdfOutline . |
Methods inherited from class com.lowagie.text.pdf.PdfDictionary |
---|
contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getKeys, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putEx, remove, size, toString |
Methods inherited from class com.lowagie.text.pdf.PdfObject |
---|
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
kids
writer
Constructor Detail |
---|
PdfOutline
Constructs aPdfOutline
. This is the constructor for an outline entry
. The open mode is true
.
- Parameters:
parent
- the parent of this outline itemaction
- thePdfAction
for this outline itemtitle
- the title of this outline item
PdfOutline
Constructs aPdfOutline
. This is the constructor for an outline entry
.
- Parameters:
parent
- the parent of this outline itemaction
- thePdfAction
for this outline itemtitle
- the title of this outline itemopen
-true
if the children are visible
PdfOutline
Constructs aPdfOutline
. This is the constructor for an outline entry
. The open mode is true
.
- Parameters:
parent
- the parent of this outline itemdestination
- the destination for this outline itemtitle
- the title of this outline item
PdfOutline
Constructs aPdfOutline
. This is the constructor for an outline entry
.
- Parameters:
parent
- the parent of this outline itemdestination
- the destination for this outline itemtitle
- the title of this outline itemopen
-true
if the children are visible
PdfOutline
Constructs aPdfOutline
. This is the constructor for an outline entry
. The open mode is true
.
- Parameters:
parent
- the parent of this outline itemaction
- thePdfAction
for this outline itemtitle
- the title of this outline item
PdfOutline
Constructs aPdfOutline
. This is the constructor for an outline entry
.
- Parameters:
parent
- the parent of this outline itemaction
- thePdfAction
for this outline itemtitle
- the title of this outline itemopen
-true
if the children are visible
PdfOutline
Constructs aPdfOutline
. This is the constructor for an outline entry
. The open mode is true
.
- Parameters:
parent
- the parent of this outline itemdestination
- the destination for this outline itemtitle
- the title of this outline item
PdfOutline
Constructs aPdfOutline
. This is the constructor for an outline entry
.
- Parameters:
parent
- the parent of this outline itemdestination
- the destination for this outline itemtitle
- the title of this outline itemopen
-true
if the children are visible
PdfOutline
Constructs aPdfOutline
. This is the constructor for an outline entry
. The open mode is true
.
- Parameters:
parent
- the parent of this outline itemaction
- thePdfAction
for this outline itemtitle
- the title of this outline item
PdfOutline
Constructs aPdfOutline
. This is the constructor for an outline entry
.
- Parameters:
parent
- the parent of this outline itemaction
- thePdfAction
for this outline itemtitle
- the title of this outline itemopen
-true
if the children are visible
PdfOutline
Constructs aPdfOutline
. This is the constructor for an outline entry
. The open mode is true
.
- Parameters:
parent
- the parent of this outline itemdestination
- the destination for this outline itemtitle
- the title of this outline item
PdfOutline
Constructs aPdfOutline
. This is the constructor for an outline entry
.
- Parameters:
parent
- the parent of this outline itemdestination
- the destination for this outline itemtitle
- the title of this outline itemopen
-true
if the children are visible
Method Detail |
---|
setIndirectReference
- Sets the indirect reference of this
PdfOutline
. - Parameters:
reference
- thePdfIndirectReference
to this outline.
indirectReference
- Gets the indirect reference of this
PdfOutline
. - Returns:
- the
PdfIndirectReference
to this outline.
parent
- Gets the parent of this
PdfOutline
. - Returns:
- the
PdfOutline
that is the parent of this outline.
setDestinationPage
- Set the page of the
PdfDestination
-object. - Parameters:
pageReference
- indirect reference to the page- Returns:
true
if this page was set as thePdfDestination
-page.
getPdfDestination
- Gets the destination for this outline.
- Returns:
- the destination
level
- returns the level of this outline.
- Returns:
- a level
toPdf
- Returns the PDF representation of this
PdfOutline
. - Overrides:
toPdf
in classPdfDictionary
- Parameters:
writer
- the encryption informationos
-- Throws:
java.io.IOException
addKid

- Adds a kid to the outline
- Parameters:
outline
-
getKids
- Returns the kids of this outline
- Returns:
- an ArrayList with PdfOutlines
setKids
- Sets the kids of this outline
- Parameters:
kids
-

getTag
- Getter for property tag.
- Returns:
- Value of property tag.
setTag
- Setter for property tag.
- Parameters:
tag
- New value of property tag.
getTitle

- Gets the title of this outline
- Returns:
- the title as a String
setTitle
- Sets the title of this outline
- Parameters:
title
-
isOpen

- Getter for property open.
- Returns:
- Value of property open.
setOpen
- Setter for property open.
- Parameters:
open
- New value of property open.
getColor
- Getter for property color.
- Returns:
- Value of property color.
Pdfoutliner Trial
setColor
- Setter for property color.
- Parameters:
color
- New value of property color.
Pdf Outlines
getStyle
- Getter for property style.
- Returns:
- Value of property style.
setStyle
- Setter for property style.
- Parameters:
style
- New value of property style.
Pdf Outline Bookmark
Overview | Package | Class | Tree | Deprecated | Index | Help |
Pdf Outline Autocad
iText 2.1.7