| java.lang.Object com.caucho.quercus.lib.pdf.PDF
PDF | public class PDF (Code) | | pdf object oriented API facade
|
Constructor Summary | |
public | PDF(Env env) |
Method Summary | |
public boolean | arc(double x1, double y1, double r, double a, double b) | public boolean | arcn(double x1, double y1, double r, double a, double b) | public boolean | begin_document(String fileName, String optList) | public boolean | begin_page(double width, double height) | public boolean | begin_page_ext(double width, double height, String opt) | public boolean | circle(double x1, double y1, double r) | public boolean | clip() Appends the current path to the clipping path. | public boolean | close() | public boolean | closepath() | public boolean | closepath_fill_stroke() | public boolean | closepath_stroke() | public boolean | concat(double a, double b, double c, double d, double e, double f) | public boolean | continue_text(String text) | public boolean | curveto(double x1, double y1, double x2, double y2, double x3, double y3) | public boolean | curveto_b(double x1, double y1, double x2, double y2) | public boolean | curveto_e(double x1, double y1, double x2, double y2) | public boolean | delete() | public boolean | end_document(String optList) | public boolean | end_page() | public boolean | end_page_ext(String optlist) | public boolean | endpath() | public boolean | fill() | public boolean | fill_stroke() | public boolean | fit_image(PDFImage img, double x, double y, String opt) | public Value | get_buffer(Env env) Returns the result as a string. | public String | get_errmsg() Returns the error message. | public int | get_errnum() Returns the error number. | public String | get_parameter(String name, double modifier) Returns the value for a parameter. | public double | get_value(String name, double modifier) Returns the value for a parameter. | public boolean | initgraphics(Env env) | public boolean | lineto(double x, double y) Sets the graphics position. | public PDFFont | load_font(String name, String encoding, String opt) Loads a font for later use.
Parameters: name - the font name, e.g. | public PDFImage | load_image(String type, Path file, String optlist) | public boolean | moveto(double x, double y) Sets the graphics position. | public PDFImage | open_image_file(String type, Path file, String stringParam, int intParam) | public boolean | rect(double x, double y, double width, double height) | public boolean | restore() Restores the graphics state. | public boolean | rotate(double pDeg) | public boolean | save() Saves the graphics state. | public boolean | scale(double sx, double sy) | public boolean | set_info(String key, String value) | public boolean | set_parameter(String key, String value) | public boolean | set_text_pos(double x, double y) Sets the text position. | public boolean | set_value(String key, double value) | public boolean | setcolor(String fstype, String colorspace, double c1, double c2, double c3, double c4) | public boolean | setdash(double b, double w) | public boolean | setdashpattern(Env env, String optlist) | public boolean | setflat(Env env, double flatness) | public boolean | setfont(PDFFont font, double size) Sets the current font
Parameters: name - the font name, e.g. | public boolean | setgray(double g) | public boolean | setgray_fill(double g) | public boolean | setgray_stroke(double g) | public boolean | setlinecap(Env env, int cap) | public boolean | setlinejoin(Env env, int linejoin) | public boolean | setlinewidth(double w) | public boolean | setmatrix(Env env, double a, double b, double c, double d, double e, double f) | public boolean | setmiterlimit(Env env, double v) | public boolean | setrgbcolor(double r, double g, double b) | public boolean | setrgbcolor_fill(double r, double g, double b) | public boolean | setrgbcolor_stroke(double r, double g, double b) | public int | shading(Env env, String type, double x1, double y1, double x2, double y2, double c1, double c2, double c3, double c4, String optlist) | public boolean | shading_pattern(Env env, int shading, String optlist) | public boolean | shfill(Env env, int shading) Fill with a shading object. | public boolean | show(String text) | public boolean | show_boxed(String text, double x, double y, double width, double height, String mode, String feature) | public boolean | show_xy(String text, double x, double y) | public boolean | skew(double aDeg, double bDeg) | public double | stringwidth(String string, PDFFont font, double size) Returns the length of a string for a font. | public boolean | stroke() | public String | toString() | public boolean | translate(double tx, double ty) |
arc | public boolean arc(double x1, double y1, double r, double a, double b)(Code) | | Creates a counterclockwise arg
|
arcn | public boolean arcn(double x1, double y1, double r, double a, double b)(Code) | | Creates a clockwise arc
|
begin_page | public boolean begin_page(double width, double height) throws IOException(Code) | | |
circle | public boolean circle(double x1, double y1, double r)(Code) | | Creates a circle
|
clip | public boolean clip()(Code) | | Appends the current path to the clipping path.
|
closepath | public boolean closepath()(Code) | | Closes the path
|
closepath_fill_stroke | public boolean closepath_fill_stroke()(Code) | | Closes the path strokes
|
closepath_stroke | public boolean closepath_stroke()(Code) | | Closes the path strokes
|
concat | public boolean concat(double a, double b, double c, double d, double e, double f)(Code) | | Concatenates the matrix
|
continue_text | public boolean continue_text(String text)(Code) | | Displays text
|
curveto | public boolean curveto(double x1, double y1, double x2, double y2, double x3, double y3)(Code) | | Draws a bezier curve
|
curveto_b | public boolean curveto_b(double x1, double y1, double x2, double y2)(Code) | | Draws a bezier curve
|
curveto_e | public boolean curveto_e(double x1, double y1, double x2, double y2)(Code) | | Draws a bezier curve
|
end_page | public boolean end_page()(Code) | | |
end_page_ext | public boolean end_page_ext(String optlist)(Code) | | |
endpath | public boolean endpath()(Code) | | Ends the path
|
fill | public boolean fill()(Code) | | Fills
|
fill_stroke | public boolean fill_stroke()(Code) | | Fills
|
get_buffer | public Value get_buffer(Env env)(Code) | | Returns the result as a string.
|
get_errmsg | public String get_errmsg()(Code) | | Returns the error message.
|
get_errnum | public int get_errnum()(Code) | | Returns the error number.
|
get_parameter | public String get_parameter(String name, double modifier)(Code) | | Returns the value for a parameter.
|
get_value | public double get_value(String name, double modifier)(Code) | | Returns the value for a parameter.
|
initgraphics | public boolean initgraphics(Env env)(Code) | | |
lineto | public boolean lineto(double x, double y)(Code) | | Sets the graphics position.
|
load_font | public PDFFont load_font(String name, String encoding, String opt) throws IOException(Code) | | Loads a font for later use.
Parameters: name - the font name, e.g. Helvetica Parameters: encoding - the font encoding, e.g. winansi Parameters: opt - any options |
moveto | public boolean moveto(double x, double y)(Code) | | Sets the graphics position.
|
rect | public boolean rect(double x, double y, double width, double height)(Code) | | Creates a rectangle
|
restore | public boolean restore()(Code) | | Restores the graphics state.
|
rotate | public boolean rotate(double pDeg)(Code) | | rotates the coordinates
Parameters: p - amount to rotate |
save | public boolean save()(Code) | | Saves the graphics state.
|
scale | public boolean scale(double sx, double sy)(Code) | | scales the coordinates
Parameters: sx - amount to scale the x axis Parameters: sy - amount to scale the y axis |
set_text_pos | public boolean set_text_pos(double x, double y)(Code) | | Sets the text position.
|
set_value | public boolean set_value(String key, double value)(Code) | | |
setcolor | public boolean setcolor(String fstype, String colorspace, double c1, double c2, double c3, double c4)(Code) | | Sets the color
|
setdash | public boolean setdash(double b, double w)(Code) | | Sets the dashing
Parameters: b - black length Parameters: w - which length |
setdashpattern | public boolean setdashpattern(Env env, String optlist)(Code) | | Sets the dashing
|
setflat | public boolean setflat(Env env, double flatness)(Code) | | Sets the flatness
|
setfont | public boolean setfont(PDFFont font, double size) throws IOException(Code) | | Sets the current font
Parameters: name - the font name, e.g. Helvetica Parameters: encoding - the font encoding, e.g. winansi Parameters: opt - any options |
setgray | public boolean setgray(double g)(Code) | | Sets the color to a grayscale
|
setgray_fill | public boolean setgray_fill(double g)(Code) | | Sets the color to a grayscale
|
setgray_stroke | public boolean setgray_stroke(double g)(Code) | | Sets the color to a grayscale
|
setlinecap | public boolean setlinecap(Env env, int cap)(Code) | | Sets the linecap style
|
setlinejoin | public boolean setlinejoin(Env env, int linejoin)(Code) | | Sets the linejoin style
|
setlinewidth | public boolean setlinewidth(double w)(Code) | | Sets the line width
|
setmatrix | public boolean setmatrix(Env env, double a, double b, double c, double d, double e, double f)(Code) | | Sets the matrix style
|
setmiterlimit | public boolean setmiterlimit(Env env, double v)(Code) | | Sets the miter limit
|
setrgbcolor | public boolean setrgbcolor(double r, double g, double b)(Code) | | Sets the color to a rgb
|
setrgbcolor_fill | public boolean setrgbcolor_fill(double r, double g, double b)(Code) | | Sets the fill color to a rgb
|
setrgbcolor_stroke | public boolean setrgbcolor_stroke(double r, double g, double b)(Code) | | Sets the color to a rgb
|
shading | public int shading(Env env, String type, double x1, double y1, double x2, double y2, double c1, double c2, double c3, double c4, String optlist)(Code) | | Define a blend
|
shading_pattern | public boolean shading_pattern(Env env, int shading, String optlist)(Code) | | Sets the shading pattern
|
shfill | public boolean shfill(Env env, int shading)(Code) | | Fill with a shading object.
|
show_boxed | public boolean show_boxed(String text, double x, double y, double width, double height, String mode, String feature)(Code) | | Displays text
|
show_xy | public boolean show_xy(String text, double x, double y)(Code) | | Displays text
|
skew | public boolean skew(double aDeg, double bDeg)(Code) | | Skews the coordinates
Parameters: a - degrees to skew the x axis Parameters: b - degrees to skew the y axis |
stringwidth | public double stringwidth(String string, PDFFont font, double size)(Code) | | Returns the length of a string for a font.
|
stroke | public boolean stroke()(Code) | | Draws the graph
|
translate | public boolean translate(double tx, double ty)(Code) | | translates the coordinates
Parameters: tx - amount to translate the x axis Parameters: ty - amount to translate the y axis |
|
|