public class Page : IHaruObject
The Page class
Functions
@propertywidth | Gets the width of a page. | |
@propertywidth | Changes the width of a page | |
@propertyheight | Gets the height of a page. | |
@propertyheight | Changes the height of a page | |
setSize | Changes the size and direction of a page to a predefined size | |
setRotate | Sets rotation angle of the page. | |
createDestination | Creates a new Destination instance for the page | |
createTextAnnot | Creates a new Annotation instance for the page. | |
createLinkAnnot | Creates a new link Annotation instance object for the page. | |
createURILinkAnnot | Creates a new web link Annotation instance object for the page. | |
textWidth | Gets the width of the text in current fontsize, character spacing and word spacing. | |
measureText | Calculates the byte length which can be included within the specified width. | |
@propertygraphicMode | Gets the current graphics mode. | |
@propertycurrentPos | Gets the current position for path painting. | |
@propertycurrentTextPos | Gets the current position for text showing. | |
@propertycurrentFont | Gets a Font instance of the page's current font. | |
currentFontSize | Gets the size of the page's current font. | |
@propertytransMatrix | Gets the current transformation matrix of the page. | |
@propertylineCap | Gets the current line cap style of the page. | |
@propertylineCap | Sets the shape to be used at the ends of lines. | |
@propertylineJoin | Gets the current line join style of the page. | |
@propertylineJoin | Sets the line join style in the page. | |
@propertymiterLimit | Gets the current value of the page's miter limit. | |
@propertymiterLimit | Sets the miter limit | |
getDash | Gets the current pattern of the page. | |
setDash | Sets the dash pattern for lines in the page. | |
setSolid | Sets the dash pattern to solid line | |
setDotted | Sets the dash pattern to dotted line | |
setDashDashDot | Sets the dash pattern to dash-dash-dot line | |
setDashDot | Sets the dash pattern to dash-dot line | |
setDashed | Sets the dash pattern to dashed line | |
@propertyflat | Gets the current value of the page's flatness. | |
@propertycharSpace | Gets the current value of the page's character spacing. | |
@propertycharSpace | Sets the character spacing for text. | |
@propertywordSpace | Get the current value of the page's word spacing. | |
@propertywordSpace | Sets the word spacing for text. | |
@propertyhorizontalScalling | Gets the current value of the page's horizontal scalling for text showing. | |
@propertyhorizontalScalling | Sets the horizontal scalling (scaling) for text showing. | |
@propertytextLeading | Gets the current value of the page's line spacing. | |
@propertytextLeading | Sets the text leading (line spacing) for text showing. | |
@propertytextRenderingMode | Gets the current value of the page's text rendering mode. | |
@propertytextRenderingMode | Sets the text rendering mode. The initial value of text rendering mode is HPDF_FILL. | |
@propertytextRise | Gets the current value of the page's text rising. | |
@propertytextRise | Moves the text position in vertical direction by the amount of value. Useful for making subscripts or superscripts. | |
getRGBFill | Gets the current value of the page's filling color. | |
setRGBFill | Sets the filling color. | |
getRGBStroke | Gets the current value of the page's stroking color. | |
setRGBStroke | Sets the stroking color. | |
getCMYKFill | Gets the current value of the page's filling color. | |
getCMYKStroke | Gets the current value of the page's stroking color. | |
@propertygrayFill | Gets the current value of the page's filling color. | |
@propertygrayFill | Sets the filling color. | |
@propertygrayStroke | Gets the current value of the page's stroking color. | |
@propertygrayStroke | Sets the stroking color. | |
getStrokingColorSpace | Gets the current value of the page's stroking color space. | |
getFillingColorSpace | Gets the current value of the page's stroking color space. | |
getTextMatrix | Gets the current text transformation matrix of the page. | |
getGStateDepth | Gets the number of the page's graphics state stack. | |
setSlideShow | Configures the setting for slide transition of the page. | |
arc | Appends a circle arc to the current path. | |
beginText | Begins a text object and sets the text position to (0, 0). | |
circle | Appends a circle to the current path. | |
clip | Modifies the current clipping path by intersecting it with the current path using the nonzero winding number rule. | |
closePath | Appends a straight line from the current point to the start point of sub path. The current point is moved to the start point of sub path | |
closePathStroke | Closes the current path. Then, it paints the path. | |
closePathFillStroke | Closes the current path, fills the current path using the nonzero winding number rule, then paints the path. | |
concat | Concatenates the page's current transformation matrix and specified matrix. | |
curveTo | Appends a Bézier curve to the current path using the control points (x1, y1) and (x2, y2) and (x3, y3), then sets the current point to (x3, y3). | |
curveTo2 | Appends a Bézier curve to the current path using the current point and (x2, y2) and (x3, y3) as control points. Then, the current point is set to (x3, y3). | |
curveTo3 | Appends a Bézier curve to the current path using two spesified points. | |
drawImage | Shows an image in one operation. | |
ellipse | Appends an ellipse to the current path. | |
endPath | Ends the path object without filling or painting. | |
endText | Ends a text object. | |
eofill | Fills the current path using the even-odd rule. | |
eofillStroke | Fills the current path using the even-odd rule, then paints the path. | |
fill | Fills the current path using the nonzero winding number rule. | |
fillStroke | Fills the current path using the nonzero winding number rule, then paints the path. | |
gRestore | Restore the graphics state which is saved by HPDFPageGSave(). | |
gSave | Saves the page's current graphics parameter to the stack. An application can invoke gSave() up to 28 (???) and can restore the saved parameter by invoking gRestore(). | |
lineTo | Appends a path from the current point to the specified point. | |
moveTextPos | Changes the current text position, using the specified offset values. If the current text position is (x1, y1), the new text position will be (x1 + x, y1 + y). | |
moveTo | Starts a new subpath and move the current point for drawing path, moveTo() sets the start point for the path to the point (x, y). | |
moveToNextLine | Moves to the next line. | |
rectangle | Appends a rectangle to the current path. | |
setCMYKFill | Sets the filling color. | |
setCMYKStroke | Sets the stroking color. | |
setExtGState | Applyies the graphics state to the page. | |
setFontAndSize | Sets the type of font and size leading. | |
@propertylineWidth | Gets the current line width of the page. | |
@propertylineWidth | Sets the width of the line used to stroke a path. | |
setTextMatrix | Sets the text matrix | |
showTextNextLine | Moves the current text position to the start of the next line, then prints the text at the current position on the page. | |
stroke | Paints the current path. | |
textOut | Prints the text on the specified position. | |
textRect | Prints the text inside the specified region. |