|
||||||||||
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
public class PdfStamperImp
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.lowagie.text.pdf.PdfWriter |
---|
PdfWriter.PdfBody |
Field Summary | |
---|---|
protected AcroFields |
acroFields
|
protected boolean |
append
|
protected PdfIndirectReference |
egiz_dict_ir
|
protected PdfName |
egiz_dict_name
|
protected boolean |
fieldsAdded
|
protected HashMap |
fieldTemplates
|
protected boolean |
flat
|
protected boolean |
flatFreeText
|
protected int |
initialXrefSize
|
protected IntHashtable |
marked
|
protected boolean |
namedAsNames
|
protected int[] |
namePtr
|
protected List |
newBookmarks
|
protected PdfAction |
openAction
|
protected HashSet |
partialFlattening
|
protected int |
sigFlags
|
protected boolean |
useVp
|
protected int |
vp
|
Fields inherited from class com.lowagie.text.DocWriter |
---|
closeStream, document, EQUALS, FORWARD, GT, LT, NEWLINE, open, os, pageSize, pause, QUOTE, SPACE, TAB |
Method Summary | |
---|---|
void |
addAnnotation(PdfAnnotation annot)
Adds a PdfAnnotation or a PdfFormField
to the document. |
void |
addComments(FdfReader fdf)
|
PdfContentByte |
getDirectContent()
Gets the direct content for this document. |
PdfContentByte |
getDirectContentUnder()
Gets the direct content under for this document. |
protected int |
getNewObjectNumber(PdfReader reader,
int number,
int generation)
|
PdfIndirectReference |
getPageReference(int page)
Gets a reference to a page existing or not. |
protected void |
markUsed(int num)
|
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)
Sets the 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, add, addTabs, clearTextWrap, flush, getISOBytes, hasMarkupAttributes, isCloseStream, newPage, pause, removeWatermark, resetFooter, resetHeader, resetPageCount, resume, setCloseStream, setFooter, setHeader, setMarginMirroring, setMargins, setPageCount, setPageSize, write, write, writeEnd, writeEnd, writeMarkupAttributes, writeStart |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected AcroFields acroFields
protected boolean flat
protected boolean flatFreeText
protected int[] namePtr
protected boolean namedAsNames
protected List newBookmarks
protected HashSet partialFlattening
protected boolean useVp
protected int vp
protected HashMap fieldTemplates
protected boolean fieldsAdded
protected int sigFlags
protected boolean append
protected IntHashtable marked
protected int initialXrefSize
protected PdfAction openAction
protected PdfName egiz_dict_name
protected PdfIndirectReference egiz_dict_ir
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.protected int getNewObjectNumber(PdfReader reader, int number, int generation)
getNewObjectNumber
in class PdfWriter
public void registerReader(PdfReader reader, boolean openFile) throws IOException
reader
- openFile
-
IOException
public void unRegisterReader(PdfReader reader)
reader
- public void addComments(FdfReader fdf) throws IOException
fdf
-
IOException
public PdfIndirectReference getPageReference(int page)
PdfWriter
getPageReference
in class PdfWriter
page
- the page number. The first page is 1
PdfWriter.getPageReference(int)
public void addAnnotation(PdfAnnotation annot)
PdfWriter
PdfAnnotation
or a PdfFormField
to the document. Only the top parent of a PdfFormField
needs to be added.
addAnnotation
in class PdfWriter
annot
- the PdfAnnotation
or the PdfFormField
to addPdfWriter.addAnnotation(com.lowagie.text.pdf.PdfAnnotation)
public void setViewerPreferences(int preferences)
setViewerPreferences
in class PdfWriter
preferences
- the viewer preferencesPdfWriter.setViewerPreferences(int)
public void setSigFlags(int f)
setSigFlags
in class PdfWriter
f
- the flags. This flags are ORed with current onespublic void setPageAction(PdfName actionType, PdfAction action) throws PdfException
UnsupportedOperationException
.
setPageAction
in class PdfWriter
actionType
- ignoreaction
- ignore
PdfException
- ignorePdfStamper.setPageAction(PdfName, PdfAction, int)
public void setDuration(int seconds)
UnsupportedOperationException
.
setDuration
in class PdfWriter
seconds
- ignorepublic void setTransition(PdfTransition transition)
UnsupportedOperationException
.
setTransition
in class PdfWriter
transition
- ignorepublic void markUsed(PdfObject obj)
protected void markUsed(int num)
public void setAdditionalAction(PdfName actionType, PdfAction action) throws PdfException
DOCUMENT_CLOSE
,
WILL_SAVE
, DID_SAVE
, WILL_PRINT
and DID_PRINT
.
setAdditionalAction
in class PdfWriter
actionType
- the action typeaction
- the action to execute in response to the trigger
PdfException
- on invalid action typepublic void setOpenAction(PdfAction action)
PdfWriter
action
will be
invoked.
setOpenAction
in class PdfWriter
action
- the action to be invokedPdfWriter.setOpenAction(com.lowagie.text.pdf.PdfAction)
public void setOpenAction(String name)
PdfWriter
setOpenAction
in class PdfWriter
name
- the name of the destination to jump toPdfWriter.setOpenAction(java.lang.String)
public void setThumbnail(Image image)
PdfWriter
setThumbnail
in class PdfWriter
image
- the imagePdfWriter.setThumbnail(com.lowagie.text.Image)
public PdfContentByte getDirectContentUnder()
PdfWriter
getDirectContentUnder
in class PdfWriter
public PdfContentByte getDirectContent()
PdfWriter
getDirectContent
in class PdfWriter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |