iText 8.0.2 API
|
A wrapper for Image XObject. More...
Public Member Functions |
|
PdfImageXObject (ImageData image) | |
Creates Image XObject by image. More... |
|
PdfImageXObject (ImageData image, iText.Kernel.Pdf.Xobject.PdfImageXObject imageMask) | |
Creates Image XObject by image. More... |
|
PdfImageXObject (PdfStream pdfStream) | |
Create PdfImageXObject instance by iText.Kernel.Pdf.PdfStream. More... |
|
override float | GetWidth () |
Gets width of image, Width key. More... |
|
override float | GetHeight () |
Gets height of image, Height key. More... |
|
override void | Flush () |
To manually flush a PdfObject behind this wrapper, you have to ensure that this object is added to the document, i.e. it has an indirect reference. More... |
|
virtual iText.Kernel.Pdf.Xobject.PdfImageXObject | CopyTo (PdfDocument document) |
Copy Image XObject to the specified document. More... |
|
virtual byte[] | GetImageBytes () |
Gets decoded image bytes. More... |
|
virtual byte[] | GetImageBytes (bool decoded) |
Gets image bytes. More... |
|
virtual ImageType | IdentifyImageType () |
Identifies the type of the image that is stored in the bytes of this PdfImageXObject. More... |
|
virtual String | IdentifyImageFileExtension () |
Identifies recommended file extension to store the bytes of this PdfImageXObject. More... |
|
virtual iText.Kernel.Pdf.Xobject.PdfImageXObject | Put (PdfName key, PdfObject value) |
Puts the value into Image XObject dictionary and associates it with the specified key. More... |
|
![]() |
|
virtual void | SetLayer (IPdfOCG layer) |
Sets the layer this XObject belongs to. More... |
|
virtual void | AddAssociatedFile (PdfFileSpec fs) |
Adds file associated with PDF XObject and identifies the relationship between them. More... |
|
virtual PdfArray | GetAssociatedFiles (bool create) |
Returns files associated with XObject. More... |
|
![]() |
|
virtual T | GetPdfObject () |
virtual iText.Kernel.Pdf.PdfObjectWrapper< T > | MakeIndirect (PdfDocument document, PdfIndirectReference reference) |
Marks object behind wrapper to be saved as indirect. More... |
|
virtual iText.Kernel.Pdf.PdfObjectWrapper< T > | MakeIndirect (PdfDocument document) |
Marks object behind wrapper to be saved as indirect. More... |
|
virtual iText.Kernel.Pdf.PdfObjectWrapper< T > | SetModified () |
virtual bool | IsFlushed () |
Additional Inherited Members |
|
![]() |
|
static iText.Kernel.Pdf.Xobject.PdfXObject | MakeXObject (PdfStream stream) |
Create PdfFormXObject or PdfImageXObject by iText.Kernel.Pdf.PdfStream. More... |
|
static Rectangle | CalculateProportionallyFitRectangleWithWidth (iText.Kernel.Pdf.Xobject.PdfXObject xObject, float x, float y, float width) |
Calculates a rectangle with the specified coordinates and width, and the height is calculated in such a way that the original proportions of the xObject do not change. More... |
|
static Rectangle | CalculateProportionallyFitRectangleWithHeight (iText.Kernel.Pdf.Xobject.PdfXObject xObject, float x, float y, float height) |
Calculates a rectangle with the specified coordinates and height, and the width is calculated in such a way that the original proportions of the xObject do not change. More... |
|
A wrapper for Image XObject.
A wrapper for Image XObject. ISO 32000-1, 8.9 Images.
|
inline |
|
inline |
Creates Image XObject by image.
image |
iText.IO.Image.ImageData with actual image data.
imageMask |
PdfImageXObject with image mask.
|
inline |
Create PdfImageXObject instance by iText.Kernel.Pdf.PdfStream.
Create PdfImageXObject instance by iText.Kernel.Pdf.PdfStream. Note, this constructor doesn't perform any additional checks
pdfStream |
iText.Kernel.Pdf.PdfStream with Image XObject.
|
inlinevirtual |
Copy Image XObject to the specified document.
document | target document |
|
inlinevirtual |
To manually flush a PdfObject
behind this wrapper, you have to ensure that this object is added to the document, i.e. it has an indirect reference.
To manually flush a PdfObject
behind this wrapper, you have to ensure that this object is added to the document, i.e. it has an indirect reference. Basically this means that before flushing you need to explicitly call iText.Kernel.Pdf.PdfObjectWrapper
Reimplemented from iText.Kernel.Pdf.PdfObjectWrapper< PdfStream >.
|
inlinevirtual |
Gets height of image, Height
key.
Reimplemented from iText.Kernel.Pdf.Xobject.PdfXObject.
|
inlinevirtual |
Gets decoded image bytes.
|
inlinevirtual |
Gets image bytes.
Gets image bytes. Note, iText.Kernel.Pdf.PdfName.DCTDecode , iText.Kernel.Pdf.PdfName.JBIG2Decode and iText.Kernel.Pdf.PdfName.JPXDecode filters will be ignored.
decoded | if true , decodes stream bytes. |
|
inlinevirtual |
Gets width of image, Width
key.
Reimplemented from iText.Kernel.Pdf.Xobject.PdfXObject.
|
inlinevirtual |
Identifies recommended file extension to store the bytes of this PdfImageXObject.
Identifies recommended file extension to store the bytes of this PdfImageXObject. Possible values are: 'png', 'jpg', 'jp2', 'tif', 'jbig2'. This extension can later be used together with the result of GetImageBytes().
|
inlinevirtual |
Identifies the type of the image that is stored in the bytes of this PdfImageXObject.
Identifies the type of the image that is stored in the bytes of this PdfImageXObject. Note that this has nothing to do with the original type of the image. For instance, the return value of this method will never be iText.IO.Image.ImageType.PNG as we lose this information when converting a PNG image into something that can be put into a PDF file. The possible values are: iText.IO.Image.ImageType.JPEG , iText.IO.Image.ImageType.JPEG2000 , iText.IO.Image.ImageType.JBIG2 , iText.IO.Image.ImageType.TIFF , iText.IO.Image.ImageType.PNG
|
inlinevirtual |
Puts the value into Image XObject dictionary and associates it with the specified key.
Puts the value into Image XObject dictionary and associates it with the specified key. If the key is already present, it will override the old value with the specified one.
key | key to insert or to override |
value | the value to associate with the specified key |