Package com.itextpdf.pdfua
Class PdfUAPage
- java.lang.Object
-
- com.itextpdf.kernel.pdf.PdfObjectWrapper<PdfDictionary>
-
- com.itextpdf.kernel.pdf.PdfPage
-
- com.itextpdf.pdfua.PdfUAPage
-
class PdfUAPage extends PdfPage
-
-
Field Summary
Fields Modifier and Type Field Description private PdfUAChecker
checker
-
Constructor Summary
Constructors Modifier Constructor Description protected
PdfUAPage(PdfDictionary pdfObject, PdfUA1Checker checker)
Deprecated.in favour ofPdfUAPage(PdfDictionary, PdfUAChecker)
protected
PdfUAPage(PdfDictionary pdfObject, PdfUAChecker checker)
Creates newPdfUAPage
instance.protected
PdfUAPage(PdfDocument pdfDocument, PageSize pageSize, PdfUA1Checker checker)
Deprecated.in favour ofPdfUAPage(PdfDocument, PageSize, PdfUAChecker)
protected
PdfUAPage(PdfDocument pdfDocument, PageSize pageSize, PdfUAChecker checker)
Creates newPdfUAPage
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
flush(boolean flushResourcesContentStreams)
Flushes page dictionary, its content streams, annotations and thumb image.-
Methods inherited from class com.itextpdf.kernel.pdf.PdfPage
addAnnotation, addAnnotation, addAssociatedFile, addAssociatedFile, addOutputIntent, containsAnnotation, copyAsFormXObject, copyTo, copyTo, copyTo, flush, getAnnotations, getAnnotsSize, getArtBox, getAssociatedFiles, getBleedBox, getContentBytes, getContentStream, getContentStreamCount, getCropBox, getDocument, getFirstContentStream, getLastContentStream, getMediaBox, getNextMcid, getOutlines, getPageSize, getPageSizeWithRotation, getPdfLayers, getResources, getRotation, getStreamBytes, getStructParentIndex, getTabOrder, getThumbnailImage, getTrimBox, getXmpMetadata, isIgnorePageRotationForContent, isWrappedObjectMustBeIndirect, newContentStreamAfter, newContentStreamBefore, put, remove, removeAnnotation, removeAnnotation, setAdditionalAction, setArtBox, setBleedBox, setCropBox, setIgnorePageRotationForContent, setMediaBox, setPageLabel, setPageLabel, setResources, setRotation, setTabOrder, setThumbnailImage, setTrimBox, setXmpMetadata, setXmpMetadata, setXmpMetadata
-
Methods inherited from class com.itextpdf.kernel.pdf.PdfObjectWrapper
ensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidRelease
-
-
-
-
Field Detail
-
checker
private final PdfUAChecker checker
-
-
Constructor Detail
-
PdfUAPage
@Deprecated protected PdfUAPage(PdfDictionary pdfObject, PdfUA1Checker checker)
Deprecated.in favour ofPdfUAPage(PdfDictionary, PdfUAChecker)
Creates newPdfUAPage
instance.- Parameters:
pdfObject
- thePdfDictionary
object on which thePdfUAPage
will be basedchecker
-PdfUA1Checker
to check the requirements of the PDF/UA-1 standard
-
PdfUAPage
@Deprecated protected PdfUAPage(PdfDocument pdfDocument, PageSize pageSize, PdfUA1Checker checker)
Deprecated.in favour ofPdfUAPage(PdfDocument, PageSize, PdfUAChecker)
Creates newPdfUAPage
instance.- Parameters:
pdfDocument
- thePdfDocument
object which will contain thePdfUAPage
pageSize
-PageSize
the size of thePdfUAPage
checker
-PdfUA1Checker
to check the requirements of the PDF/UA-1 standard
-
PdfUAPage
protected PdfUAPage(PdfDictionary pdfObject, PdfUAChecker checker)
Creates newPdfUAPage
instance.- Parameters:
pdfObject
- thePdfDictionary
object on which thePdfUAPage
will be basedchecker
-PdfUAChecker
to check the requirements of the PDF/UA standard
-
PdfUAPage
protected PdfUAPage(PdfDocument pdfDocument, PageSize pageSize, PdfUAChecker checker)
Creates newPdfUAPage
instance.- Parameters:
pdfDocument
- thePdfDocument
object which will contain thePdfUAPage
pageSize
-PageSize
the size of thePdfUAPage
checker
-PdfUAChecker
to check the requirements of the PDF/UA standard
-
-
Method Detail
-
flush
public void flush(boolean flushResourcesContentStreams)
Description copied from class:PdfPage
Flushes page dictionary, its content streams, annotations and thumb image. IfflushResourcesContentStreams
is true, all content streams that are rendered on this page (like FormXObjects, annotation appearance streams, patterns) and also all images associated with this page will also be flushed.For notes about tag structure flushing see
PdfPage#flush() method
.If
PdfADocument
is used, flushing will be applied only ifflushResourcesContentStreams
is true.Be careful with handling document in which some of the pages are flushed. Keep in mind that flushed objects are finalized and are completely written to the output stream. This frees their memory but makes it impossible to modify or read data from them. Whenever there is an attempt to modify or to fetch flushed object inner contents an exception will be thrown. Flushing is only possible for objects in the writing and stamping modes, also its possible to flush modified objects in append mode.
-
-