EforiaLog pdflib - A PDF-Library for tdbengine
Functions for drawing

41. pdf_set_line_width(handle : Integer; width : Real) : Integer

Description:
The pdf_set_line_width() function sets the width of line.
Return value:
In success return 0, pdf_error otherwise.

42. pdf_set_dash(handle : Integer; type : Integer) : Integer

Description:
The pdf_set_dash() function sets the pattern of line.
Return value:
In success return 0, pdf_error otherwise.

43. pdf_set_rgbcolor_fill(handle : Integer; red, green, blue : Real) : Integer

Description:
The pdf_set_rgbcolor_fill() function sets the color applied for filling graphical objects.
Valid range of red, green, blue must be from 0.00 to 1.00.
Return value:
In success return 0, pdf_error otherwise.

44. pdf_set_rgbcolor_stroke(handle : Integer; red, green, blue : Real) : Integer

Description:
The pdf_set_rgbcolor_stroke() function sets the color applied for stroking graphical
objects which consists of lines.
Valid range of red, green, blue must be from 0.00 to 1.00.
Return value:
In success return 0, pdf_error otherwise.

45. pdf_set_rgbcolor(handle : Integer; red, green, blue : Real) : Integer

Description:
The pdf_set_rgbcolor() function sets the color applied for filling and stroking graphical
objects. It is the equivalent of pdf_set_rgbcolor_fill() and pdf_set_rgbcolor_stroke()
applied together with the same parameters.
Valid range of red, green, blue must be from 0.00 to 1.00.
Return value:
In success return 0, pdf_error otherwise.

46. pdf_lineto(handle : Integer; x_end, y_end : Real) : Integer

Description:
The pdf_lineto() function draws a line from the current point to the point with
coordinates (x ,y).
Return value:
In success return 0, pdf_error otherwise.

47. pdf_line_xy(handle : Integer; x_start, y_start, x_end, y_end : Real) : Integer

Description:
The pdf_line_xy() function draws a line from the current point with
coordinates(x_start,y_start) to the point with coordinates (x_end ,y_end).
Return value:
In success return 0, pdf_error otherwise.

48. pdf_rectangle(handle : Integer; x, y, width, height : Real) : Integer

Description:
The pdf_rectangle() function draws a rectangle with its upper left corner at point (x,y).
This width is set to width. This height is set to height.
Return value:
In success return 0, pdf_error otherwise.

49. pdf_polygon(handle : Integer; x, y, radius : Real; count : Integer) : Integer

Description:
The pdf_polygon function draws a polygon with determined (count) quantity of vertex
and with the center at (x,y) and with radius radius. This function could be used for
drawing the any figure. For drawing circle one should input count more than 30.
Return value:
In success return 0, pdf_error otherwise.

50. pdf_image(handle: Integer; filename: String, x, y, coef: Real; angle: Integer): Integer

Description:
The pdf_image() function opens an image stored in the file with the name filename. The
format of the image has to be JPEG. The image is placed on the current page at position
(x,y). The image is rotated by angle degrees and its height and width is scaled by
coefficient coef.
Return value:
In success return 0, pdf_error otherwise.

51. pdf_image_xy(handle: Integer; filename: String; x1, y1, x2, x2: Real; angle: Integer): Integer

Description:
The pdf_image_xy() function opens an image stored in the file with the name filename.
The format of the image has to be JPEG. The image is placed on the current page at
position (x1,y1) – this is coordinate of bottom left image’s corner. (x2, y2) is the
coordinate of top upper image’s corner. The image is rotated by angle degrees.
Return value:
In success return 0, pdf_error otherwise.

52. pdf_get_img_height(filename : String) : Integer

Description:
The pdf_get_img_height() calculate height of the image stored in the file with the name
filename. The format of the image has to be JPEG.
Return value:
In success return height of the image, -1 * pdf_error otherwise.

53. pdf_get_img_width(filename : String) : Integer

Description:
The pdf_get_img_width() calculate width of the image stored in the file with the name
filename. The format of the image has to be JPEG.
Return value:
In success return width of the image, -1 * pdf_error otherwise.