Open topic with navigation

Report PDF Layout - Code

Use a set of commands to manipulate the pdf report.

The Report PDF application is based on the TCPDF class. The class methods are available to the user as well macros listed in the table bellow. Use the object $pdf with the selected method, exemplo: $pdf->AcceptPageBreak(parameters);

Click here to access the TCPPF a documentation.

Method FPDF Macro ScriptCase Description
AcceptPageBreak sc_pdf_accept_page_break Accept an automatic page break.
AddFont sc_pdf_add_font Add new font.
AddLink sc_pdf_add_link Create internal link.
AddPage sc_pdf_add_page Add new page.
AliasNbPages sc_pdf_alias_nb_pages Define alias to page number.
Cell sc_pdf_cell Print cell.
Close sc_pdf_close:  close the document.
error sc_pdf_error Display error message.
Footer sc_pdf footer.
GetStringWidth sc_pdf_get_string_length Calculate string seize.
GetX sc_pdf_get_x Returns X position.
GetY sc_pdf_get_y Returns Y position .
Header sc_pdf_header header.
Image sc_pdf_image Puts an image on the page.
Line sc_pdf_line Draws a line.
Link sc_pdf_link Inserts link.
Ln sc_pdf_ln Setting a line break.
MultiCell sc_pdf_multi_cell print text with line break.
Output sc_pdf_output Saves or send a document.
AliasNumPage sc_pdf_page Returns the string alias used for the page number.
AliasNbPages sc_pdf_page_tot Returns the string alias used for the total number of pages
Rect sc_pdf_rect Draws a rectangle.
SetAuthor sc_pdf_set_author Define document author.
SetAutoPageBreak sc_pdf_set_auto_page_break Activates/deactivates automatic page break.
SetCompression sc_pdf_set_compression Turns on/off page compression.
SetCreator sc_pdf_set_creator Define document creator.
SetDisplayMode sc_pdf_set_display_mode Define display mode.
SetDrawColor sc_pdf_set_draw_color Define the color used to picture.
SetFillColor sc_pdf_set_fill_color Define fill color.
SetFont sc_pdf_set_font Define font settings.
SetFontSize sc_pdf_set_font_size Define font size.
SetKeywords sc_pdf_set_keywords Set document keywords.
SetLeftMargin sc_pdf_set_left_margin Define left margin .
SetLineWidth sc_pdf_set_line_width Define line width.
SetLink sc_pdf_set_link Set internal link.
SetMargins sc_pdf_set_margins Define margins.
SetRightMargin sc_pdf_set_right_margin Define right margin.
SetSubject sc_pdf_set_subject Define subject.
SetTextColor sc_pdf_set_text_color Define text color.
SetTitle sc_pdf_set_title Define document title.
SetTopMargin sc_pdf_set_top_margin Define top margin.
SetX sc_pdf_set_x Define X position.
SetXY sc_pdf_set_xy Define XY position.
SetY sc_pdf_set_y Define Y position.
Text sc_pdf_text Print string.
Write sc_pdf_write Print characters string.