|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.lowagie.text.DocWriter
com.lowagie.text.pdf.PdfWriter
com.lowagie.text.pdf.PdfStamperImp
| Nested Class Summary |
| Nested classes inherited from class com.lowagie.text.pdf.PdfWriter |
PdfWriter.PdfBody |
| Field Summary |
| Fields inherited from class com.lowagie.text.DocWriter |
EQUALS, FORWARD, GT, LT, NEWLINE, QUOTE, SPACE, TAB |
| Method Summary | |
void |
addAnnotation(PdfAnnotation annot)
Use this methods to add a PdfAnnotation or a PdfFormField
to the document. |
void |
addComments(FdfReader fdf)
|
void |
addViewerPreference(PdfName key,
PdfObject value)
Adds a viewer preference |
PdfContentByte |
getDirectContent()
Use this method to get the direct content for this document. |
PdfContentByte |
getDirectContentUnder()
Use this method to get the direct content under for this document. |
PdfIndirectReference |
getPageReference(int page)
Use this method to get a reference to a page existing or not. |
Map |
getPdfLayers()
Gets the PdfLayer objects in an existing document as a Map with the names/titles of the layers as keys. |
void |
markUsed(PdfObject obj)
|
void |
registerReader(PdfReader reader,
boolean openFile)
|
void |
setAdditionalAction(PdfName actionType,
PdfAction action)
Additional-actions defining the actions to be taken in response to various trigger events affecting the document as a whole. |
void |
setDuration(int seconds)
Always throws an UnsupportedOperationException. |
void |
setEgizDictTrailerInfo(PdfName name,
PdfIndirectReference ir)
Sets the key and the contents of the entry to be added to the trailer if an egiz dict is present. |
void |
setOpenAction(PdfAction action)
When the document opens this action will be
invoked. |
void |
setOpenAction(String name)
When the document opens it will jump to the destination with this name. |
void |
setPageAction(PdfName actionType,
PdfAction action)
Always throws an UnsupportedOperationException. |
void |
setSigFlags(int f)
Set the signature flags. |
void |
setThumbnail(Image image)
Use this method to set the thumbnail image for the current page. |
void |
setTransition(PdfTransition transition)
Always throws an UnsupportedOperationException. |
void |
setViewerPreferences(int preferences)
Sets the viewer preferences. |
void |
unRegisterReader(PdfReader reader)
|
| Methods inherited from class com.lowagie.text.DocWriter |
add, flush, getISOBytes, isCloseStream, isPaused, newPage, pause, resetFooter, resetHeader, resetPageCount, resume, setCloseStream, setFooter, setHeader, setMarginMirroring, setMargins, setPageCount, setPageSize |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public void setEgizDictTrailerInfo(PdfName name,
PdfIndirectReference ir)
name - The name of the egiz dict in the trailer.ir - The indirect reference of the egiz dict.
public void registerReader(PdfReader reader,
boolean openFile)
throws IOException
reader - openFile -
IOExceptionpublic void unRegisterReader(PdfReader reader)
reader -
public void addComments(FdfReader fdf)
throws IOException
fdf -
IOExceptionpublic PdfIndirectReference getPageReference(int page)
PdfWriter
getPageReference in class PdfWriterpage - the page number. The first page is 1
PdfWriter.getPageReference(int)public void addAnnotation(PdfAnnotation annot)
PdfAnnotationsPdfAnnotation or a PdfFormField
to the document. Only the top parent of a PdfFormField
needs to be added.
addAnnotation in interface PdfAnnotationsaddAnnotation in class PdfWriterPdfWriter.addAnnotation(com.lowagie.text.pdf.PdfAnnotation)public void setViewerPreferences(int preferences)
setViewerPreferences in interface PdfViewerPreferencessetViewerPreferences in class PdfWriterpreferences - the viewer preferencesPdfWriter.setViewerPreferences(int)
public void addViewerPreference(PdfName key,
PdfObject value)
addViewerPreference in interface PdfViewerPreferencesaddViewerPreference in class PdfWriterkey - a key for a viewer preferencevalue - the value for the viewer preferencePdfViewerPreferences.addViewerPreference(com.lowagie.text.pdf.PdfName, com.lowagie.text.pdf.PdfObject)public void setSigFlags(int f)
setSigFlags in interface PdfAnnotationssetSigFlags in class PdfWriterf - the flags. This flags are ORed with current onesPdfAnnotations.setSigFlags(int)
public void setPageAction(PdfName actionType,
PdfAction action)
throws PdfException
UnsupportedOperationException.
setPageAction in interface PdfPageActionssetPageAction in class PdfWriteractionType - ignoreaction - ignore
PdfException - ignorePdfStamper.setPageAction(PdfName, PdfAction, int)public void setDuration(int seconds)
UnsupportedOperationException.
setDuration in interface PdfPageActionssetDuration in class PdfWriterseconds - ignorePdfPageActions.setDuration(int)public void setTransition(PdfTransition transition)
UnsupportedOperationException.
setTransition in interface PdfPageActionssetTransition in class PdfWritertransition - ignorePdfPageActions.setTransition(com.lowagie.text.pdf.PdfTransition)public void markUsed(PdfObject obj)
public void setAdditionalAction(PdfName actionType,
PdfAction action)
throws PdfException
DOCUMENT_CLOSE,
WILL_SAVE, DID_SAVE, WILL_PRINT
and DID_PRINT.
setAdditionalAction in interface PdfDocumentActionssetAdditionalAction in class PdfWriteractionType - the action typeaction - the action to execute in response to the trigger
PdfException - on invalid action typePdfDocumentActions.setAdditionalAction(com.lowagie.text.pdf.PdfName, com.lowagie.text.pdf.PdfAction)public void setOpenAction(PdfAction action)
PdfDocumentActionsaction will be
invoked.
setOpenAction in interface PdfDocumentActionssetOpenAction in class PdfWriterPdfWriter.setOpenAction(com.lowagie.text.pdf.PdfAction)public void setOpenAction(String name)
PdfDocumentActions
setOpenAction in interface PdfDocumentActionssetOpenAction in class PdfWriterPdfWriter.setOpenAction(java.lang.String)public void setThumbnail(Image image)
PdfWriter
setThumbnail in class PdfWriterimage - the imagePdfWriter.setThumbnail(com.lowagie.text.Image)public PdfContentByte getDirectContentUnder()
PdfWriter
getDirectContentUnder in class PdfWriterpublic PdfContentByte getDirectContent()
PdfWriter
getDirectContent in class PdfWriterpublic Map getPdfLayers()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||