EforiaLog pdflib - A PDF-Library for tdbengine
Description of errors that may occur


No
ProcedureDescription of errorReason
1
get_handle_name() Wrong handle number! System error
2
pdf_new() File already exists! PDF-file with specified name already exist
3
pdf_new() Wrong working mode!Wrong working mode was set
4
pdf_new() Can't create temporary directory ../sessions/ to store PDF-Table file! System error, program can’t create temporary
directory. The name of the directory can be
changed by changing global variable “tmp_dir”
value. As a default symbol_dir = '../session/'
5
pdf_new() Can't find special symbols directory ../symbols/ !
Directory ../symbols/ doesn’t exist. The name of the directory can be changed by changing global variable “symbol_dir” value. By default symbol_dir = '../symbols/'
6
pdf_new() Can't find special symbols file SYMBOLS.TXT in directory ../symbols/ !
File Symbols.txt in directory ../symbols/ doesn’t exist. The name of the directory can be changed by changing global variable “symbol_dir” value. By default symbol_dir = '../symbols/'
7
pdf_begin_page() Wrong page size! Parameters width or height were set to less then 0
8
pdf_begin_page() Wrong margins!
Parameters leftmargin or rightmargin or topmargin or bottommargin were set to less then 0 or page_width <= left_margin + right_margin or page_height <= top_margin + bottom_margin
9
pdf_set_font_size()
pdf_set_char_space()
pdf_set_word_space()
pdf_set_horizontal_scaling()
pdf_set_leading()
pdf_set_rendering_mode()
pdf_set_rise()
pdf_write_str()
pdf_string_width()
Font not defined! The font or its size were not defined correctly
10
Pdf_goto_xy()
pdf_write_str()
Position out of allowed range! Parameters x or y set outside the page working area (width – left_margin – right_margin)
11
pdf_find_font() Incorrect Font name! Wrong parameter of font’s name
12
pdf_find_font() Font not found! Wrong parameter of font’s name or font’s file absent in fonts’ directory. The name of the directory can be changed by changing global variable “fonts_dir” value. As a default fonts_dir = '../fonts/'
13
pdf_find_font()
pdf_set_font()
Can't find fonts directory! Fonts’ directory is absent at the disk
14
pdf_set_font() Unknown font! Font having specified in function name is absent at the fonts’ directory
15
pdf_set_font() Illegal font size! Specified font size value either less than 0 or more than page working area (height – top_margin – bottom_margin)
16
pdf_set_char_space() Illegal value of char space! Specified char space value either less than 0 or more than page working area (width – left_margin – right_margin)
17
pdf_set_word_space() Illegal value of word space! Specified word space value either less than 0 or more than page working area (width – left_margin – right_margin)
18
pdf_set_horizontal_scaling() Illegal value of scaling! Specified parameter of scaling either less than 0 or more than 100
19
pdf_set_leading() Illegal value of leading! Specified parameter of leading less than 0
20
pdf_set_rendering_mode() Illegal value of rendering mode! Specified parameter of rendering mode either less than 0 or more than 7.
21
pdf_set_line_width()
pdf_page_border()
Illegal value of line width! Specified parameter of line width less than 0
22
pdf_line_dash()
pdf_page_border()
Illegal type of line dash! Specified parameter of line dash type either less than 0 or more than 5.
23
pdf_set_rgbcolor_fill()
pdf_set_rgbcolor_stroke()
pdf_set_rgbcolor()
pdf_set_text_rgbcolor_fill()
pdf_page_border()
Illegal value of red color! Specified parameter of color value either less than 0 or more than 1.
24
pdf_set_rgbcolor_fill()
pdf_set_rgbcolor_stroke()
pdf_set_rgbcolor()
pdf_set_text_rgbcolor_fill()
pdf_page_border()
Illegal value of green color! Specified parameter of color value either less than 0 or more than 1.
25
pdf_set_rgbcolor_fill()
pdf_set_rgbcolor_stroke()
pdf_set_rgbcolor()
pdf_set_text_rgbcolor_fill()
pdf_page_border()
Illegal value of blue color! Specified parameter of color value either less than 0 or more than 1.
26
pdf_lineto() Line start point out of allowed range!
This error may occur if previous procedure didn’t execute correctly





27 pdf_line_xy(),
pdf_lineto()
Line end point out of allowed
range!
Parameters x or y set outside the page working area
(x < 0 or x > poage_width – right_margin or y < 0
or y > page_height – top_margin – bottom_margin)
28 pdf_rectangle() Incorrect rectangle width or
height!
Specified parameter of width or height less then 0
29 pdf_rectangle() Rectangle left top point out of
allowed range!
Parameters x or y set outside the page working area
(x < 0 or x >= page_width – left_margin –
right_margin or y < 0 or y >= page_height –
top_margin – bottom_margin
30 pdf_rectangle() Rectangle right bottom point
out of allowed range!
Calculated parameters of rectangle right bottom
point is outside the page working area (x +
rect_width >= page_width – left_margin –
right_margin or y + rect_height >= page_height –
top_margin – bottom_margin)
31 pdf_polygon() Incorrect polygon radius! Specified parameter of radius less then 0
32 pdf_polygon() Incorrect point count! Specified parameter of point’s count less then 2
33 pdf_polygon() Some polygon's point out of
allowed range!
Calculated parameters of polygon right bottom
point is outside the page working area (x - r < 0 or x
+ r >= page_width – left_margin – right_margin or
y - r < 0 or y + r >= page_height – top_margin –
bottom_margin)
34 pdf_image() Incorrect coefficient! Specified parameter of image scaling coefficient
less then 0
35 pdf_image() Incorrect angle! Specified parameter of image angle rotation degree
either less then – 360 or more then 360
36 pdf_image() Can't find image file! Specified by parameter filename image file doesn’t
exist
37 pdf_image() Can't open image file! Specified by parameter filename image file used by
another application or damaged
38 pdf_image() Incorrect image file header! Wrong image file format
39 pdf_image() Some images point out of
allowed range!
Calculated parameters of image right bottom point
are outside the page working area (x < 0 or x +
ImageWidth * coef >= page_width – left_margin –
right_margin or y < 0 or y + ImageHeight * coef >=
page_height – top_margin – bottom_margin,
ImageWidth is taken from the image file)
40 pdf_set_title() Title too long! The length of parameter title is more then 100 chars
41 pdf_set_author() Author string too long! The length of parameter author is more then 100
chars
42 pdf_set_subject() Subject string too long! The length of parameter subject is more then 256
chars
43 pdf_close() Can't open output file! Specified by parameter filename in function
pdf_new() file used by another application or
pdf_new() file used by another application or
locked
44 pdf_close() Empty document! Created by previous functions PDF-documents is
empty
45 pdf_str_output(),
pdf_ramtext_output(),
pdf_file_output()
Wrong parameter of
justifying!
Parameter justify should have values “L”, “R”, “C”
or “W”
46 pdf_str_output(),
pdf_ramtext_output(),
pdf_file_output()
Size of char more then
specified to output range!
Sizes of some chars more then value (rm – lm)
47 pdf_file_output() Parameter Mode out of
allowed range!
Parameter Mode should contain values 0 or 1
48 pdf_begin_page() Can't find image file! Error while adding page header/footer. Specified by
parameter text in function pdf_header_add() or
pdf_footer_add() image file doesn’t exist
49 pdf_begin_page() Can't open image file! Error while adding page header/footer. Specified by
parameter text in function pdf_header_add() or
pdf_footer_add() image file used by another
application or damaged
50 pdf_begin_page() Incorrect image file header! Error while adding page header/footer. Specified by
parameter text in function pdf_header_add() or
pdf_footer_add() image file has wrong format
51,
52
pdf_begin_page() Image height is out of page
size!
53,
54
pdf_begin_page() Image width is out of page
size!
Error while adding page header/footer. Specified by
parameter text in function pdf_header_add() or
pdf_footer_add() image file doesn’t match the Pdfdocument
page
55,
58
pdf_header_init (),
pdf_footer_init()
FontSize must be more then 0! Incorrect values of parameter FontSize
56,
59
pdf_header_init(),
pdf_footer_init()
FontName required! Incorrect values of parameter FontName
57,
60
pdf_header_add(),
pdf_footer_add()
Header / Footer is not
initialized!
Header is not initialized before it is added to page
58 pdf_header_add(),
pdf_footer_add()
Unknown alignment format! Alignment format should be within values “L”,
“R”, “C” or “W”
61 pdf_dat2table() dbPath parameter is required! Parameter dbPath is empty
62 pdf_dat2table() Can't find file source dat-file! Dat-file, specified by parameter dbPath is absent
63 pdf_dat2table() Can't open source database
file!
Dat-file, specified by parameter dbPath is unable to
open. May be it is used by another application or
damaged