iText 8.0.2 API
|
This class can be used to count the number of bytes needed when copying pages from an existing PDF into a newly created PDF. More...
Public Member Functions |
|
PdfResourceCounter (PdfObject obj) | |
Creates a PdfResourceCounter instance to be used to count the resources needed for either a page (in this case pass a page dictionary) or the trailer (root and info dictionary) of a PDF file. More... |
|
virtual IDictionary< int, PdfObject > | GetResources () |
Returns a map with the resources. More... |
|
virtual long | GetLength (IDictionary< int, PdfObject > res) |
Returns the resources needed for the object that was used to create this PdfResourceCounter. More... |
|
This class can be used to count the number of bytes needed when copying pages from an existing PDF into a newly created PDF.
|
inline |
Creates a PdfResourceCounter instance to be used to count the resources needed for either a page (in this case pass a page dictionary) or the trailer (root and info dictionary) of a PDF file.
obj | the object we want to examine |
|
inlinevirtual |
Returns the resources needed for the object that was used to create this PdfResourceCounter.
Returns the resources needed for the object that was used to create this PdfResourceCounter. If you pass a Map with resources that were already used by other objects, these objects will not be taken into account.
res | The resources that can be excluded when counting the bytes. |
|
inlinevirtual |
Returns a map with the resources.