An abstract wrapper for supported types of XObject. More...
|
|
PdfXObject (PdfStream pdfObject) |
|
override bool |
IsWrappedObjectMustBeIndirect () |
|
Defines if the object behind this wrapper must be an indirect object in the resultant document. More...
|
|
|
PdfObjectWrapper (T pdfObject) |
|
virtual void |
SetPdfObject (T pdfObject) |
|
virtual void |
SetForbidRelease () |
|
virtual void |
UnsetForbidRelease () |
|
virtual void |
EnsureUnderlyingObjectHasIndirectReference () |
|
An abstract wrapper for supported types of XObject.
-
See also
-
PdfFormXObject, PdfImageXObject
◆ AddAssociatedFile()
virtual void iText.Kernel.Pdf.Xobject.PdfXObject.AddAssociatedFile |
( |
PdfFileSpec |
fs |
) |
|
|
inlinevirtual |
Adds file associated with PDF XObject and identifies the relationship between them.
Adds file associated with PDF XObject and identifies the relationship between them. Associated files may be used in Pdf/A-3 and Pdf 2.0 documents. The method adds file to array value of the AF key in the XObject dictionary.
For associated files their associated file specification dictionaries shall include the AFRelationship key
-
Parameters
-
fs |
file specification dictionary of associated file |
◆ CalculateProportionallyFitRectangleWithHeight()
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.
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.
To calculate the original width and height of the xObject, the BBox and Matrix fields are used. For mor information see paragraph 8.10.1 in ISO-32000-1.
-
Parameters
-
xObject |
the xObject for which we are calculating the rectangle |
x |
the x-coordinate of the lower-left corner of the rectangle |
y |
the y-coordinate of the lower-left corner of the rectangle |
height |
the height of the rectangle |
-
Returns
-
the rectangle with specified coordinates and height
◆ CalculateProportionallyFitRectangleWithWidth()
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.
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.
To calculate the original width and height of the xObject, the BBox and Matrix fields are used. For mor information see paragraph 8.10.1 in ISO-32000-1.
-
Parameters
-
xObject |
the xObject for which we are calculating the rectangle |
x |
the x-coordinate of the lower-left corner of the rectangle |
y |
the y-coordinate of the lower-left corner of the rectangle |
width |
the width of the rectangle |
-
Returns
-
the rectangle with specified coordinates and width
◆ GetAssociatedFiles()
virtual PdfArray iText.Kernel.Pdf.Xobject.PdfXObject.GetAssociatedFiles |
( |
bool |
create |
) |
|
|
inlinevirtual |
Returns files associated with XObject.
-
Parameters
-
create |
defines whether AF arrays will be created if it doesn't exist |
-
Returns
-
associated files array
◆ GetHeight()
virtual float iText.Kernel.Pdf.Xobject.PdfXObject.GetHeight |
( |
|
) |
|
|
inlinevirtual |
◆ GetWidth()
virtual float iText.Kernel.Pdf.Xobject.PdfXObject.GetWidth |
( |
|
) |
|
|
inlinevirtual |
◆ IsWrappedObjectMustBeIndirect()
override bool iText.Kernel.Pdf.Xobject.PdfXObject.IsWrappedObjectMustBeIndirect |
( |
|
) |
|
|
inlinepackagevirtual |
◆ MakeXObject()
◆ SetLayer()
virtual void iText.Kernel.Pdf.Xobject.PdfXObject.SetLayer |
( |
IPdfOCG |
layer |
) |
|
|
inlinevirtual |
Sets the layer this XObject belongs to.
-
Parameters
-
layer |
the layer this XObject belongs to. |