com.lowagie.text.pdf
Class PdfStamperImp
java.lang.Object
|
+--com.lowagie.text.DocWriter
|
+--com.lowagie.text.pdf.PdfWriter
|
+--com.lowagie.text.pdf.PdfStamperImp
- All Implemented Interfaces:
- DocListener, ElementListener, EventListener
- class PdfStamperImp
- extends PdfWriter
Fields inherited from class com.lowagie.text.pdf.PdfWriter |
AllowAssembly, AllowCopy, AllowDegradedPrinting, AllowFillIn, AllowModifyAnnotations, AllowModifyContents, AllowPrinting, AllowScreenReaders, body, CenterWindow, colorNumber, crypto, currentPageNumber, currentPdfReaderInstance, DID_PRINT, DID_SAVE, directContent, directContentUnder, DirectionL2R, DirectionR2L, DOCUMENT_CLOSE, documentColors, documentExtGState, documentFonts, documentPatterns, documentShadingPatterns, documentShadings, documentSpotPatterns, FitWindow, fontNumber, formXObjects, formXObjectsCounter, group, HEADER, HideMenubar, HideToolbar, HideWindowUI, imageDictionary, importedPages, NO_SPACE_CHAR_RATIO, NonFullScreenPageModeUseNone, NonFullScreenPageModeUseOutlines, NonFullScreenPageModeUseThumbs, PAGE_CLOSE, PAGE_OPEN, PageLayoutOneColumn, PageLayoutSinglePage, PageLayoutTwoColumnLeft, PageLayoutTwoColumnRight, PageModeFullScreen, PageModeUseNone, PageModeUseOutlines, PageModeUseThumbs, pageReferences, patternColorspaceCMYK, patternColorspaceGRAY, patternColorspaceRGB, patternNumber, pdf, root, RUN_DIRECTION_DEFAULT, RUN_DIRECTION_LTR, RUN_DIRECTION_NO_BIDI, RUN_DIRECTION_RTL, runDirection, SIGNATURE_APPEND_ONLY, SIGNATURE_EXISTS, SPACE_CHAR_RATIO_DEFAULT, STRENGTH128BITS, STRENGTH40BITS, VERSION_1_2, VERSION_1_3, VERSION_1_4, VERSION_1_5, ViewerPreferencesMask, WILL_PRINT, WILL_SAVE |
Fields inherited from class com.lowagie.text.DocWriter |
closeStream, document, EQUALS, FORWARD, GT, LT, NEWLINE, open, os, pageSize, pause, QUOTE, SPACE, TAB |
Methods inherited from class com.lowagie.text.pdf.PdfWriter |
add, add, add, addAnnotation, addCalculationOrder, addDirectImageSimple, addDirectTemplateSimple, addJavaScript, addJavaScript, addJavaScript, addLocalDestinations, addSharedObjectsToBody, addSimple, addSimple, addSimpleExtGState, addSimplePattern, addSimplePatternColorspace, addSimpleShading, addSimpleShadingPattern, addToBody, addToBody, addToBody, close, eliminateFontSubset, fitsPage, fitsPage, fitsPage, fitsPage, freeReader, getAcroForm, getCatalog, getCurrentDocumentSize, getCurrentPage, getCurrentPageNumber, getDirectContent, getDirectContentUnder, getEncryption, getExtraCatalog, getGroup, getImageReference, getImportedPage, getIndirectReferenceNumber, getInfo, getInstance, getInstance, getOs, getPageEvent, getPageNumber, getPageReference, getPdfDocument, getPdfIndirectReference, getRootOutline, getRunDirection, getSpaceCharRatio, getTableBottom, isPaused, isStrictImageSequence, open, reorderPages, resetContent, setAdditionalAction, setCropBoxSize, setDuration, setEncryption, setEncryption, setExtraCatalog, setGroup, setLinearPageMode, setOpenAction, setOpenAction, setPageAction, setPageEmpty, setPageEvent, setPageLabels, setPdfVersion, setRunDirection, setSigFlags, setSpaceCharRatio, setStrictImageSequence, setTransition, setViewerPreferences, size |
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, 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 |
file
RandomAccessFileOrArray file
reader
PdfReader reader
myXref
int[] myXref
pagesToContent
HashMap pagesToContent
- Integer(page number) -> PageStamp
closed
boolean closed
rotateContents
private boolean rotateContents
- Holds value of property rotateContents.
acroFields
protected AcroFields acroFields
flat
protected boolean flat
PdfStamperImp
PdfStamperImp(PdfReader reader,
OutputStream os,
char pdfVersion)
throws DocumentException,
IOException
- Creates new PdfStamperImp.
- Parameters:
reader
- the read PDFos
- the output destinationpdfVersion
- the new pdf version or '\0' to keep the same version as the original
document
- Throws:
DocumentException
- on error
IOException
close
void close(HashMap moreInfo)
throws DocumentException,
IOException
DocumentException
IOException
applyRotation
void applyRotation(int pageNumber,
ByteBuffer out)
alterContents
void alterContents()
throws IOException
IOException
alterResources
void alterResources(PdfStamperImp.PageStamp ps)
getNewObjectNumber
int getNewObjectNumber(PdfReader reader,
int number,
int generation)
- Overrides:
getNewObjectNumber
in class PdfWriter
getReaderFile
RandomAccessFileOrArray getReaderFile(PdfReader reader)
- Overrides:
getReaderFile
in class PdfWriter
getPageStamp
PdfStamperImp.PageStamp getPageStamp(int pageNum)
getUnderContent
PdfContentByte getUnderContent(int pageNum)
getOverContent
PdfContentByte getOverContent(int pageNum)
isRotateContents
boolean isRotateContents()
- Getter for property rotateContents.
- Returns:
- Value of property rotateContents.
setRotateContents
void setRotateContents(boolean rotateContents)
- Setter for property rotateContents.
- Parameters:
rotateContents
- New value of property rotateContents.
isContentWritten
boolean isContentWritten()
getAcroFields
AcroFields getAcroFields()
setFormFlattening
void setFormFlattening(boolean flat)
flatFields
void flatFields()
eliminateAcroformObjects
void eliminateAcroformObjects()
sweepKids
void sweepKids(PdfObject obj)