com.itextpdf.text
Class Header

java.lang.Object
  extended by com.itextpdf.text.Meta
      extended by com.itextpdf.text.Header
All Implemented Interfaces:
Element

public class Header
extends Meta

This is an Element that contains some user defined meta information about the document.

Example:

 Header header = new Header("inspired by", "William Shakespeare");
 

See Also:
Element, Meta

Field Summary
 
Fields inherited from class com.itextpdf.text.Meta
AUTHOR, CREATIONDATE, KEYWORDS, PRODUCER, SUBJECT, TITLE, UNKNOWN
 
Fields inherited from interface com.itextpdf.text.Element
ALIGN_BASELINE, ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_JUSTIFIED, ALIGN_JUSTIFIED_ALL, ALIGN_LEFT, ALIGN_MIDDLE, ALIGN_RIGHT, ALIGN_TOP, ALIGN_UNDEFINED, ANCHOR, ANNOTATION, CCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFBLOCK, CCITT_ENDOFLINE, CCITTG3_1D, CCITTG3_2D, CCITTG4, CHAPTER, CHUNK, CREATOR, DIV, HEADER, IMGRAW, IMGTEMPLATE, JBIG2, JPEG, JPEG2000, LANGUAGE, LIST, LISTITEM, MARKED, PARAGRAPH, PHRASE, PTABLE, RECTANGLE, SECTION, WRITABLE_DIRECT, YMARK
 
Constructor Summary
Header(String name, String content)
          Constructs a Meta.
 
Method Summary
 String getName()
          Returns the name of the meta information.
 
Methods inherited from class com.itextpdf.text.Meta
append, getChunks, getContent, getType, isContent, isNestable, process, type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.itextpdf.text.Element
toString
 

Constructor Detail

Header

public Header(String name,
              String content)
Constructs a Meta.

Parameters:
name - the name of the meta-information
content - the content
Method Detail

getName

public String getName()
Returns the name of the meta information.

Overrides:
getName in class Meta
Returns:
a String


Copyright © 2013. All Rights Reserved.