| com.lowagie.text.pdf.PdfWriter com.lowagie.text.pdf.PdfStamperImp
Inner Class :static class PageStamp | |
Method Summary | |
public void | addAnnotation(PdfAnnotation annot) | void | addAnnotation(PdfAnnotation annot, PdfDictionary pageN) | void | addAnnotation(PdfAnnotation annot, int page) | public void | addComments(FdfReader fdf) | void | addDocumentField(PdfIndirectReference ref) | void | addFieldResources() | void | addFileAttachments() | public void | addViewerPreference(PdfName key, PdfObject value) | void | alterContents() | void | alterResources(PageStamp ps) | void | applyRotation(PdfDictionary pageN, ByteBuffer out) | void | close(HashMap moreInfo) | void | correctAcroFieldPages(int page) | void | deleteOutlines() | void | eliminateAcroformObjects() | void | expandFields(PdfFormField field, ArrayList allAnnots) | static void | findAllObjects(PdfReader reader, PdfObject obj, IntHashtable hits) | void | flatFields() | AcroFields | getAcroFields() | public PdfContentByte | getDirectContent() | public PdfContentByte | getDirectContentUnder() | protected int | getNewObjectNumber(PdfReader reader, int number, int generation) | PdfContentByte | getOverContent(int pageNum) | public PdfIndirectReference | getPageReference(int page) | PageStamp | getPageStamp(int pageNum) | RandomAccessFileOrArray | getReaderFile(PdfReader reader) | PdfContentByte | getUnderContent(int pageNum) | void | insertPage(int pageNumber, Rectangle mediabox) | boolean | isAppend() Getter for property append. | boolean | isContentWritten() | boolean | isRotateContents() Getter for property rotateContents. | void | makePackage(PdfCollection collection) Adds or replaces the Collection Dictionary in the Catalog. | protected void | markUsed(PdfObject obj) | protected void | markUsed(int num) | boolean | partialFormFlattening(String name) | public void | registerReader(PdfReader reader, boolean openFile) | public 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. | public void | setDuration(int seconds) Always throws an UnsupportedOperationException . | void | setDuration(int seconds, int page) Sets the display duration for the page (for presentations)
Parameters: seconds - the number of seconds to display the page. | void | setFormFlattening(boolean flat) | void | setFreeTextFlattening(boolean flat) | void | setJavaScript() | public void | setOpenAction(PdfAction action) | public void | setOpenAction(String name) | void | setOutlines() | public void | setPageAction(PdfName actionType, PdfAction action) Always throws an UnsupportedOperationException . | void | setPageAction(PdfName actionType, PdfAction action, int page) Sets the open and close page additional action.
Parameters: actionType - the action type. | void | setRotateContents(boolean rotateContents) Setter for property rotateContents. | public void | setSigFlags(int f) Set the signature flags.
Parameters: f - the flags. | public void | setThumbnail(com.lowagie.text.Image image) | void | setThumbnail(Image image, int page) | public void | setTransition(PdfTransition transition) Always throws an UnsupportedOperationException . | void | setTransition(PdfTransition transition, int page) Sets the transition for the page
Parameters: transition - the transition object. | public void | setViewerPreferences(int preferences) Sets the viewer preferences. | void | sweepKids(PdfObject obj) | public void | unRegisterReader(PdfReader reader) |
append | protected boolean append(Code) | | |
fieldsAdded | protected boolean fieldsAdded(Code) | | |
flat | protected boolean flat(Code) | | |
flatFreeText | protected boolean flatFreeText(Code) | | |
initialXrefSize | protected int initialXrefSize(Code) | | |
namePtr | protected int namePtr(Code) | | |
pagesToContent | HashMap pagesToContent(Code) | | Integer(page number) -> PageStamp
|
sigFlags | protected int sigFlags(Code) | | |
useVp | protected boolean useVp(Code) | | |
PdfStamperImp | PdfStamperImp(PdfReader reader, OutputStream os, char pdfVersion, boolean append) throws DocumentException, IOException(Code) | | Creates new PdfStamperImp.
Parameters: reader - the read PDF Parameters: os - the output destination Parameters: pdfVersion - the new pdf version or '\0' to keep the same version as the originaldocument Parameters: append - throws: DocumentException - on error throws: IOException - |
alterResources | void alterResources(PageStamp ps)(Code) | | |
correctAcroFieldPages | void correctAcroFieldPages(int page)(Code) | | |
deleteOutlines | void deleteOutlines()(Code) | | |
eliminateAcroformObjects | void eliminateAcroformObjects()(Code) | | |
flatFields | void flatFields()(Code) | | |
getNewObjectNumber | protected int getNewObjectNumber(PdfReader reader, int number, int generation)(Code) | | |
getPageStamp | PageStamp getPageStamp(int pageNum)(Code) | | |
isAppend | boolean isAppend()(Code) | | Getter for property append.
Value of property append. |
isContentWritten | boolean isContentWritten()(Code) | | |
isRotateContents | boolean isRotateContents()(Code) | | Getter for property rotateContents.
Value of property rotateContents. |
makePackage | void makePackage(PdfCollection collection)(Code) | | Adds or replaces the Collection Dictionary in the Catalog.
Parameters: collection - the new collection dictionary. |
markUsed | protected void markUsed(int num)(Code) | | |
partialFormFlattening | boolean partialFormFlattening(String name)(Code) | | |
setAdditionalAction | public void setAdditionalAction(PdfName actionType, PdfAction action) throws PdfException(Code) | | Additional-actions defining the actions to be taken in
response to various trigger events affecting the document
as a whole. The actions types allowed are: DOCUMENT_CLOSE ,
WILL_SAVE , DID_SAVE , WILL_PRINT
and DID_PRINT .
Parameters: actionType - the action type Parameters: action - the action to execute in response to the trigger throws: PdfException - on invalid action type |
setDuration | public void setDuration(int seconds)(Code) | | Always throws an UnsupportedOperationException .
Parameters: seconds - ignore |
setDuration | void setDuration(int seconds, int page)(Code) | | Sets the display duration for the page (for presentations)
Parameters: seconds - the number of seconds to display the page. A negative value removes the entry Parameters: page - the page where the duration will be applied. The first page is 1 |
setFormFlattening | void setFormFlattening(boolean flat)(Code) | | |
setFreeTextFlattening | void setFreeTextFlattening(boolean flat)(Code) | | |
setPageAction | void setPageAction(PdfName actionType, PdfAction action, int page) throws PdfException(Code) | | Sets the open and close page additional action.
Parameters: actionType - the action type. It can be PdfWriter.PAGE_OPEN or PdfWriter.PAGE_CLOSE Parameters: action - the action to perform Parameters: page - the page where the action will be applied. The first page is 1 throws: PdfException - if the action type is invalid |
setRotateContents | void setRotateContents(boolean rotateContents)(Code) | | Setter for property rotateContents.
Parameters: rotateContents - New value of property rotateContents. |
setSigFlags | public void setSigFlags(int f)(Code) | | Set the signature flags.
Parameters: f - the flags. This flags are ORed with current ones |
setTransition | public void setTransition(PdfTransition transition)(Code) | | Always throws an UnsupportedOperationException .
Parameters: transition - ignore |
setTransition | void setTransition(PdfTransition transition, int page)(Code) | | Sets the transition for the page
Parameters: transition - the transition object. A null removes the transition Parameters: page - the page where the transition will be applied. The first page is 1 |
unRegisterReader | public void unRegisterReader(PdfReader reader)(Code) | | Parameters: reader - |
Methods inherited from com.lowagie.text.pdf.PdfWriter | PdfIndirectReference add(PdfPage page, PdfContents contents) throws PdfException(Code)(Java Doc) PdfIndirectReference add(PdfImage pdfImage, PdfIndirectReference fixedRef) throws PdfException(Code)(Java Doc) protected PdfIndirectReference add(PdfICCBased icc)(Code)(Java Doc) public void addAnnotation(PdfAnnotation annot)(Code)(Java Doc) void addAnnotation(PdfAnnotation annot, int page)(Code)(Java Doc) public void addCalculationOrder(PdfFormField annot)(Code)(Java Doc) public PdfName addDirectImageSimple(Image image) throws PdfException, DocumentException(Code)(Java Doc) public PdfName addDirectImageSimple(Image image, PdfIndirectReference fixedRef) throws PdfException, DocumentException(Code)(Java Doc) PdfName addDirectTemplateSimple(PdfTemplate template, PdfName forcedName)(Code)(Java Doc) public void addFileAttachment(String description, byte fileStore, String file, String fileDisplay) throws IOException(Code)(Java Doc) public void addFileAttachment(String description, PdfFileSpecification fs) throws IOException(Code)(Java Doc) public void addFileAttachment(PdfFileSpecification fs) throws IOException(Code)(Java Doc) public void addJavaScript(PdfAction js)(Code)(Java Doc) public void addJavaScript(String code, boolean unicode)(Code)(Java Doc) public void addJavaScript(String code)(Code)(Java Doc) public void addJavaScript(String name, PdfAction js)(Code)(Java Doc) public void addJavaScript(String name, String code, boolean unicode)(Code)(Java Doc) public void addJavaScript(String name, String code)(Code)(Java Doc) void addLocalDestinations(TreeMap dest) throws IOException(Code)(Java Doc) public void addOCGRadioGroup(ArrayList group)(Code)(Java Doc) protected void addSharedObjectsToBody() throws IOException(Code)(Java Doc) FontDetails addSimple(BaseFont bf)(Code)(Java Doc) ColorDetails addSimple(PdfSpotColor spc)(Code)(Java Doc) PdfObject[] addSimpleExtGState(PdfDictionary gstate)(Code)(Java Doc) PdfName addSimplePattern(PdfPatternPainter painter)(Code)(Java Doc) ColorDetails addSimplePatternColorspace(Color color)(Code)(Java Doc) PdfObject[] addSimpleProperty(Object prop, PdfIndirectReference refi)(Code)(Java Doc) void addSimpleShading(PdfShading shading)(Code)(Java Doc) void addSimpleShadingPattern(PdfShadingPattern shading)(Code)(Java Doc) public PdfIndirectObject addToBody(PdfObject object) throws IOException(Code)(Java Doc) public PdfIndirectObject addToBody(PdfObject object, boolean inObjStm) throws IOException(Code)(Java Doc) public PdfIndirectObject addToBody(PdfObject object, PdfIndirectReference ref) throws IOException(Code)(Java Doc) public PdfIndirectObject addToBody(PdfObject object, PdfIndirectReference ref, boolean inObjStm) throws IOException(Code)(Java Doc) public PdfIndirectObject addToBody(PdfObject object, int refNumber) throws IOException(Code)(Java Doc) public PdfIndirectObject addToBody(PdfObject object, int refNumber, boolean inObjStm) throws IOException(Code)(Java Doc) public void addViewerPreference(PdfName key, PdfObject value)(Code)(Java Doc) public boolean breakTableIfDoesntFit(PdfTable table) throws DocumentException(Code)(Java Doc) public void clearTextWrap() throws DocumentException(Code)(Java Doc) public void close()(Code)(Java Doc) public void createXmpMetadata()(Code)(Java Doc) void eliminateFontSubset(PdfDictionary fonts)(Code)(Java Doc) public boolean fitsPage(Table table, float margin)(Code)(Java Doc) public boolean fitsPage(Table table)(Code)(Java Doc) public boolean fitsPage(PdfPTable table, float margin)(Code)(Java Doc) public boolean fitsPage(PdfPTable table)(Code)(Java Doc) public void freeReader(PdfReader reader) throws IOException(Code)(Java Doc) public PdfAcroForm getAcroForm()(Code)(Java Doc) public Rectangle getBoxSize(String boxName)(Code)(Java Doc) protected PdfDictionary getCatalog(PdfIndirectReference rootObj)(Code)(Java Doc) PdfName getColorspaceName()(Code)(Java Doc) public int getCurrentDocumentSize()(Code)(Java Doc) PdfIndirectReference getCurrentPage()(Code)(Java Doc) public int getCurrentPageNumber()(Code)(Java Doc) public PdfDictionary getDefaultColorspace()(Code)(Java Doc) public PdfContentByte getDirectContent()(Code)(Java Doc) public PdfContentByte getDirectContentUnder()(Code)(Java Doc) PdfEncryption getEncryption()(Code)(Java Doc) public PdfDictionary getExtraCatalog()(Code)(Java Doc) public PdfDictionary getGroup()(Code)(Java Doc) PdfIndirectReference getImageReference(PdfName name)(Code)(Java Doc) public PdfImportedPage getImportedPage(PdfReader reader, int pageNumber)(Code)(Java Doc) int getIndirectReferenceNumber()(Code)(Java Doc) public PdfDictionary getInfo()(Code)(Java Doc) public static PdfWriter getInstance(Document document, OutputStream os) throws DocumentException(Code)(Java Doc) public static PdfWriter getInstance(Document document, OutputStream os, DocListener listener) throws DocumentException(Code)(Java Doc) protected int getNewObjectNumber(PdfReader reader, int number, int generation)(Code)(Java Doc) public PdfOCProperties getOCProperties()(Code)(Java Doc) OutputStreamCounter getOs()(Code)(Java Doc) public int getPDFXConformance()(Code)(Java Doc) public PdfPageEvent getPageEvent()(Code)(Java Doc) public int getPageNumber()(Code)(Java Doc) public PdfIndirectReference getPageReference(int page)(Code)(Java Doc) public Rectangle getPageSize()(Code)(Java Doc) PdfDocument getPdfDocument()(Code)(Java Doc) public PdfIndirectReference getPdfIndirectReference()(Code)(Java Doc) public PdfTable getPdfTable(Table table)(Code)(Java Doc) PdfVersionImp getPdfVersion()(Code)(Java Doc) RandomAccessFileOrArray getReaderFile(PdfReader reader)(Code)(Java Doc) public PdfOutline getRootOutline()(Code)(Java Doc) public int getRunDirection()(Code)(Java Doc) public float getSpaceCharRatio()(Code)(Java Doc) public PdfStructureTreeRoot getStructureTreeRoot()(Code)(Java Doc) public float getTableBottom(Table table)(Code)(Java Doc) public float getUserunit()(Code)(Java Doc) public float getVerticalPosition(boolean ensureNewLine)(Code)(Java Doc) public boolean isFullCompression()(Code)(Java Doc) public boolean isPdfX()(Code)(Java Doc) public boolean isStrictImageSequence()(Code)(Java Doc) public boolean isTagged()(Code)(Java Doc) public boolean isUserProperties()(Code)(Java Doc) public void open()(Code)(Java Doc) boolean propertyExists(Object prop)(Code)(Java Doc) void registerLayer(PdfOCG layer)(Code)(Java Doc) public void releaseTemplate(PdfTemplate tp) throws IOException(Code)(Java Doc) public int reorderPages(int order) throws DocumentException(Code)(Java Doc) void resetContent()(Code)(Java Doc) public void setAdditionalAction(PdfName actionType, PdfAction action) throws DocumentException(Code)(Java Doc) public void setAtLeastPdfVersion(char version)(Code)(Java Doc) public void setBoxSize(String boxName, Rectangle size)(Code)(Java Doc) public void setCollection(PdfCollection collection)(Code)(Java Doc) public void setCropBoxSize(Rectangle crop)(Code)(Java Doc) public void setDefaultColorspace(PdfName key, PdfObject cs)(Code)(Java Doc) public void setDuration(int seconds)(Code)(Java Doc) public void setEncryption(byte userPassword, byte ownerPassword, int permissions, int encryptionType) throws DocumentException(Code)(Java Doc) public void setEncryption(Certificate[] certs, int[] permissions, int encryptionType) throws DocumentException(Code)(Java Doc) public void setEncryption(byte userPassword, byte ownerPassword, int permissions, boolean strength128Bits) throws DocumentException(Code)(Java Doc) public void setEncryption(boolean strength, String userPassword, String ownerPassword, int permissions) throws DocumentException(Code)(Java Doc) public void setEncryption(int encryptionType, String userPassword, String ownerPassword, int permissions) throws DocumentException(Code)(Java Doc) public void setFullCompression()(Code)(Java Doc) public void setGroup(PdfDictionary group)(Code)(Java Doc) public void setLinearPageMode()(Code)(Java Doc) public void setOpenAction(String name)(Code)(Java Doc) public void setOpenAction(PdfAction action)(Code)(Java Doc) public void setOutlines(java.util.List outlines)(Code)(Java Doc) public void setOutputIntents(String outputConditionIdentifier, String outputCondition, String registryName, String info, byte destOutputProfile) throws IOException(Code)(Java Doc) public boolean setOutputIntents(PdfReader reader, boolean checkExistence) throws IOException(Code)(Java Doc) public void setPDFXConformance(int pdfx)(Code)(Java Doc) public void setPageAction(PdfName actionType, PdfAction action) throws DocumentException(Code)(Java Doc) public void setPageEmpty(boolean pageEmpty)(Code)(Java Doc) public void setPageEvent(PdfPageEvent event)(Code)(Java Doc) public void setPageLabels(PdfPageLabels pageLabels)(Code)(Java Doc) public void setPageXmpMetadata(byte[] xmpMetadata)(Code)(Java Doc) public void setPdfVersion(char version)(Code)(Java Doc) public void setPdfVersion(PdfName version)(Code)(Java Doc) public void setRunDirection(int runDirection)(Code)(Java Doc) public void setSigFlags(int f)(Code)(Java Doc) public void setSpaceCharRatio(float spaceCharRatio)(Code)(Java Doc) public void setStrictImageSequence(boolean strictImageSequence)(Code)(Java Doc) public void setTagged()(Code)(Java Doc) public void setThumbnail(Image image) throws PdfException, DocumentException(Code)(Java Doc) public void setTransition(PdfTransition transition)(Code)(Java Doc) public void setUserProperties(boolean userProperties)(Code)(Java Doc) public void setUserunit(float userunit) throws DocumentException(Code)(Java Doc) public void setViewerPreferences(int preferences)(Code)(Java Doc) public void setXmpMetadata(byte[] xmpMetadata)(Code)(Java Doc) protected void writeOutlines(PdfDictionary catalog, boolean namedAsNames) throws IOException(Code)(Java Doc)
|
|
|