Foxit PDF SDK
9.1
|
Public Member Functions | |
int | getFillMode () throws com.foxit.sdk.PDFException |
Get fill mode. More... | |
void | setFillMode (int fill_mode) throws com.foxit.sdk.PDFException |
Set fill mode. More... | |
boolean | getStrokeState () throws com.foxit.sdk.PDFException |
Get stroke state. More... | |
void | setStrokeState (boolean is_stroke) throws com.foxit.sdk.PDFException |
Set stroke state. More... | |
Path | getPathData () throws com.foxit.sdk.PDFException |
Get the path data. More... | |
void | setPathData (Path path_data) throws com.foxit.sdk.PDFException |
Set the path data. More... | |
![]() | |
void | release () |
Release a cloned or newly created PDF graphics object which has not been inserted into any PDF page or other object. More... | |
int | getType () |
Get the type of current graphics object. More... | |
RectF | getRect () |
Get the rectangle of current graphics object. More... | |
boolean | hasTransparency () |
Check whether current graphics object has transparency or not. More... | |
int | getStrokeColor () |
Get the stroke color. More... | |
int | getFillColor () |
Get the fill color. More... | |
void | setStrokeColor (int color) throws com.foxit.sdk.PDFException |
Set the stroke color. More... | |
void | setFillColor (int color) throws com.foxit.sdk.PDFException |
Set the fill color. More... | |
ColorState | getColorState () |
Get color state. More... | |
void | setColorState (ColorState color_state) throws com.foxit.sdk.PDFException |
Set color state. More... | |
void | setFillOpacity (float opacity) throws com.foxit.sdk.PDFException |
Set the opacity value for painting operations other than stroking. More... | |
void | setStrokeOpacity (float opacity) throws com.foxit.sdk.PDFException |
Set opacity value for stroke painting operations for paths and glyph outlines. More... | |
float | getFillOpacity () throws com.foxit.sdk.PDFException |
Get the opacity value for painting operations other than stroking. More... | |
float | getStrokeOpacity () throws com.foxit.sdk.PDFException |
Get opacity value for stroke painting operations for paths and glyph outlines. More... | |
Matrix2D | getMatrix () throws com.foxit.sdk.PDFException |
Get matrix. More... | |
void | setMatrix (Matrix2D matrix) throws com.foxit.sdk.PDFException |
Set matrix. More... | |
boolean | transform (Matrix2D matrix, boolean need_transform_clippath) |
Transform current graphics object. More... | |
GraphicsObject | clone () |
Clone a new graphics object. More... | |
GraphicsObject | clone (GraphicsObjects src_graphicsobjects, GraphicsObjects dest_graphicsobjects) |
Clone a new graphics object. More... | |
GraphState | getGraphState () |
Get graph state. More... | |
void | setGraphState (GraphState graph_state) throws com.foxit.sdk.PDFException |
Set graph state. More... | |
int | getBlendMode () throws com.foxit.sdk.PDFException |
Get the blend mode for transparent imaging model. More... | |
void | setBlendMode (int blend_mode) throws com.foxit.sdk.PDFException |
Set the blend mode for transparent imaging model. More... | |
int | getClipPathCount () |
Get the count of path clip. More... | |
Path | getClipPath (int index) throws com.foxit.sdk.PDFException |
Get a path clip by index. More... | |
int | getClipPathFillMode (int index) throws com.foxit.sdk.PDFException |
Get the fill mode of a path clip by index. More... | |
boolean | addClipPath (Path path, int fill_mode) throws com.foxit.sdk.PDFException |
Add a path for clipping. More... | |
boolean | removeClipPath (int index) throws com.foxit.sdk.PDFException |
Remove a path clip by index. More... | |
int | getClipTextObjectCount () |
Get the count of text clip. More... | |
TextObject | getClipTextObject (int index) throws com.foxit.sdk.PDFException |
Get the text object of a text clip by index. More... | |
boolean | addClipTextObject (TextObject textobject) throws com.foxit.sdk.PDFException |
Add text object for clipping. More... | |
boolean | removeClipTextObject (int index) throws com.foxit.sdk.PDFException |
Remove a text clip by index for clipping. More... | |
RectF | getClipRect () |
Get clip rectangle. More... | |
void | setClipRect (RectF clip_rect) |
Set clip rectangle. More... | |
boolean | clearClips () |
Clear all clips. More... | |
MarkedContent | getMarkedContent () |
Get marked content object. More... | |
LayerNodeArray | getLayers (LayerTree layer_tree) throws com.foxit.sdk.PDFException |
Get all the layers which are associated with current graphics object. More... | |
TextObject | getTextObject () |
Get the text graphics object if current graphics object represents a text object. More... | |
FormXObject | getFormXObject () |
Get the form XObject graphics object if current graphics object represents a form XObject object. More... | |
ImageObject | getImageObject () |
Get the image graphics object if current graphics object represents an image object. More... | |
PathObject | getPathObject () |
Get the path graphics object if current graphics object represents a path object. More... | |
ShadingObject | getShadingObject () |
Get the shading graphics object if current graphics object represents a shading object. More... | |
void | rotate (int angle) |
Rotate current graphics object from current state with specified angle degree in clockwise. More... | |
Static Public Member Functions | |
static PathObject | create () throws com.foxit.sdk.PDFException |
Create a new path graphics object. More... | |
static PathObject | createFromTextObject (PDFPage page, TextObject text_obj) throws com.foxit.sdk.PDFException |
Create a path graphics object from a text object. More... | |
Additional Inherited Members | |
![]() | |
static final int | e_BlendNormal = 0 |
Selecting source color and ignoring backdrop color. *. More... | |
static final int | e_BlendMultiply = 1 |
Multiply backdrop by source color values. *. More... | |
static final int | e_BlendScreen = 2 |
Multiply complements of backdrop by source color values, and then complement the result. *. More... | |
static final int | e_BlendOverlay = 3 |
Multiply or screens colors, depending on backdrop color value. *. More... | |
static final int | e_BlendDarken = 4 |
Select darker one of backdrop and source colors. *. More... | |
static final int | e_BlendLighten = 5 |
Select lighter one of backdrop and source colors. *. More... | |
static final int | e_BlendColorDodge = 6 |
Brightens backdrop color to reflect source colors. *. More... | |
static final int | e_BlendColorBurn = 7 |
Darkens backdrop color to reflect the source color. *. More... | |
static final int | e_BlendHardlight = 8 |
Multiply or screens colors, depending on source color value. *. More... | |
static final int | e_BlendSoftlight = 9 |
Darkens or lightens colors, depending on source color value. *. More... | |
static final int | e_BlendDifference = 10 |
Subtracts the darker of the two constituent colors from lighter colors. *. More... | |
static final int | e_BlendExclusion = 11 |
Creates a color with the hue of the source color, * and the saturation and luminosity of the backdrop color. *. More... | |
static final int | e_BlendHue = 21 |
Creates a color with the hue of the source color, * and the saturation and luminosity of the backdrop color. *. More... | |
static final int | e_BlendSaturation = 22 |
Creates a color with the saturation of the source color, * and the hue and luminosity of the backdrop color. *. More... | |
static final int | e_BlendColor = 23 |
Creates a color with the hue and saturation of the source color, * and the luminosity of the backdrop color. *. More... | |
static final int | e_BlendLuminosity = 24 |
Creates a color with the luminosity of the source color, * and the hue and saturation of the backdrop color. *. More... | |
static final int | e_TypeAll = 0 |
Represents all graphics object types, only used as filter. | |
static final int | e_TypeText = 1 |
Text graphics object. | |
static final int | e_TypePath = 2 |
Path graphics object. | |
static final int | e_TypeImage = 3 |
Image graphics object. | |
static final int | e_TypeShading = 4 |
Shading graphics object. | |
static final int | e_TypeFormXObject = 5 |
Form XObject graphics object. | |
Path graphics object is a kind of PDF graphics object, so class PathObject is derived from class GraphicsObject . It offers functions to get/set path graphics object's data.
To create a new path graphics object, please use function PathObject.create and then use setting functions to set information to the new path graphics object. Function PathObject.createFromTextObject can be used to create a path graphics object from a text graphics object.
|
static |
Create a new path graphics object.
The newly created path graphics object does not have any data yet. Then, setting functions can be called to set data to the new path graphics object. If the newly created path graphics object will not inserted to any page or other objects, please remember to call function GraphicsObject.release to release it when no use.
|
static |
Create a path graphics object from a text object.
If the newly created path graphics object will not inserted to any page or other objects, please remember to call function GraphicsObject.release to release it when no use.
[in] | page | A valid PDF page object. |
[in] | text_obj | A text graphics object. It should not be null. Please ensure the text graphics object is in the PDF page specified by parameter page. |
int com.foxit.sdk.pdf.graphics.PathObject.getFillMode | ( | ) | throws com.foxit.sdk.PDFException |
Get fill mode.
Path com.foxit.sdk.pdf.graphics.PathObject.getPathData | ( | ) | throws com.foxit.sdk.PDFException |
Get the path data.
boolean com.foxit.sdk.pdf.graphics.PathObject.getStrokeState | ( | ) | throws com.foxit.sdk.PDFException |
Get stroke state.
void com.foxit.sdk.pdf.graphics.PathObject.setFillMode | ( | int | fill_mode | ) | throws com.foxit.sdk.PDFException |
Set fill mode.
[in] | fill_mode | Fill mode. Please refer to values starting from com.foxit.sdk.common.Constants.e_FillModeNone and this should be one of these values. |
void com.foxit.sdk.pdf.graphics.PathObject.setPathData | ( | Path | path_data | ) | throws com.foxit.sdk.PDFException |
Set the path data.
[in] | path_data | A valid path object which represents the path data to be set. |
void com.foxit.sdk.pdf.graphics.PathObject.setStrokeState | ( | boolean | is_stroke | ) | throws com.foxit.sdk.PDFException |
Set stroke state.
[in] | is_stroke | true means current path graphics object is to be stroked. false means current path graphics object is not to be stroked. |