create or replace package a_table_test is

  v_pdf blob;  
  procedure genPDF;

end a_table_test;
/
create or replace package body a_table_test is
/* 2016-JAN-25 11:48 */
/* PL/PDF REPORTER 3.7.0 */
/* THIS IS GENERATED CODE. DO NOT MODIFY DIRECTLY! PLEASE CHANGE THE TEMPLATE. */
l_font1 plpdf3.t_font;
l_listLevel1 plpdf3.t_ListLevel;
l_listLevel2 plpdf3.t_ListLevel;
l_listLevel3 plpdf3.t_ListLevel;
l_listLevel4 plpdf3.t_ListLevel;
l_listLevel5 plpdf3.t_ListLevel;
l_listLevel6 plpdf3.t_ListLevel;
l_listLevel7 plpdf3.t_ListLevel;
l_listLevel8 plpdf3.t_ListLevel;
l_listLevel9 plpdf3.t_ListLevel;

v_format1 plpdf_type.t_pageformat;
l_box1 plpdf3.t_box;
v_paragraph1 plpdf3.t_paragraph;
l_text_idx1 pls_integer;
l_text_idx2 pls_integer;
l_text_idx3 pls_integer;
l_box2 plpdf3.t_box;
v_paragraph2 plpdf3.t_paragraph;
l_text_idx4 pls_integer;
l_box3 plpdf3.t_box;
v_paragraph3 plpdf3.t_paragraph;
l_text_idx5 pls_integer;
l_box4 plpdf3.t_box;
v_paragraph4 plpdf3.t_paragraph;
l_text_idx6 pls_integer;
/* BODYSECTION */
procedure initNumbering 
 is 

begin

plpdf3.initNum();
l_font1 := plpdf3.crFont( p_sz => 9);
l_listLevel1 := plpdf3.crListLevel( p_numFmt => 'decimal', p_ilvl => 0, p_lvlJc => 'left', p_lvlText => '%1.', p_pPr_ind_left => 36, p_pPr_ind_hanging => 18, p_font => l_font1);
plpdf3.addListLevel( p_abstractNumId => 0, p_ListLevel => l_listLevel1);
l_listLevel2 := plpdf3.crListLevel( p_numFmt => 'lowerLetter', p_ilvl => 1, p_lvlJc => 'left', p_lvlText => '%2.', p_pPr_ind_left => 72, p_pPr_ind_hanging => 18);
plpdf3.addListLevel( p_abstractNumId => 0, p_ListLevel => l_listLevel2);
l_listLevel3 := plpdf3.crListLevel( p_numFmt => 'lowerRoman', p_ilvl => 2, p_lvlJc => 'right', p_lvlText => '%3.', p_pPr_ind_left => 108, p_pPr_ind_hanging => 9);
plpdf3.addListLevel( p_abstractNumId => 0, p_ListLevel => l_listLevel3);
l_listLevel4 := plpdf3.crListLevel( p_numFmt => 'decimal', p_ilvl => 3, p_lvlJc => 'left', p_lvlText => '%4.', p_pPr_ind_left => 144, p_pPr_ind_hanging => 18);
plpdf3.addListLevel( p_abstractNumId => 0, p_ListLevel => l_listLevel4);
l_listLevel5 := plpdf3.crListLevel( p_numFmt => 'lowerLetter', p_ilvl => 4, p_lvlJc => 'left', p_lvlText => '%5.', p_pPr_ind_left => 180, p_pPr_ind_hanging => 18);
plpdf3.addListLevel( p_abstractNumId => 0, p_ListLevel => l_listLevel5);
l_listLevel6 := plpdf3.crListLevel( p_numFmt => 'lowerRoman', p_ilvl => 5, p_lvlJc => 'right', p_lvlText => '%6.', p_pPr_ind_left => 216, p_pPr_ind_hanging => 9);
plpdf3.addListLevel( p_abstractNumId => 0, p_ListLevel => l_listLevel6);
l_listLevel7 := plpdf3.crListLevel( p_numFmt => 'decimal', p_ilvl => 6, p_lvlJc => 'left', p_lvlText => '%7.', p_pPr_ind_left => 252, p_pPr_ind_hanging => 18);
plpdf3.addListLevel( p_abstractNumId => 0, p_ListLevel => l_listLevel7);
l_listLevel8 := plpdf3.crListLevel( p_numFmt => 'lowerLetter', p_ilvl => 7, p_lvlJc => 'left', p_lvlText => '%8.', p_pPr_ind_left => 288, p_pPr_ind_hanging => 18);
plpdf3.addListLevel( p_abstractNumId => 0, p_ListLevel => l_listLevel8);
l_listLevel9 := plpdf3.crListLevel( p_numFmt => 'lowerRoman', p_ilvl => 8, p_lvlJc => 'right', p_lvlText => '%9.', p_pPr_ind_left => 324, p_pPr_ind_hanging => 9);
plpdf3.addListLevel( p_abstractNumId => 0, p_ListLevel => l_listLevel9);
plpdf3.AddNumbering( p_numId => 1, p_abstractNumId => 0);
end;

procedure genPDF is
 begin 
v_format1 := plpdf_util.crFormat( p_w => 595.300, p_h => 841.900);
plpdf.init1( p_orientation => 'P', p_unit => 'pt', p_format => v_format1);
initNumbering( );
plpdf.setTopMargin( p_margin => 35.400);
plpdf.setLeftMargin( p_margin => 70.850);
plpdf.setRightMargin( p_margin => 70.850);
plpdf.NewPage( );
/* PARAGRAPH */
l_box1 := plpdf3.crBox( );
v_paragraph1 := plpdf3.crParagraph( p_box => l_box1);
/* ADD TEXT */
l_text_idx1 := plpdf3.addText( p_paragraph => v_paragraph1, p_text => 'List ');
/* ADD TEXT */
l_text_idx2 := plpdf3.addText( p_paragraph => v_paragraph1, p_text => 'element');
/* ADD TEXT */
l_text_idx3 := plpdf3.addText( p_paragraph => v_paragraph1, p_text => ' 1');
plpdf3.setNumbering( p_paragraph => v_paragraph1, p_numId => 1, p_level => 0);
plpdf3.printParagraph( p_paragraph => v_paragraph1);
/* PARAGRAPH */
l_box2 := plpdf3.crBox( );
v_paragraph2 := plpdf3.crParagraph( p_box => l_box2);
/* ADD TEXT */
l_text_idx4 := plpdf3.addText( p_paragraph => v_paragraph2, p_text => 'List element2');
plpdf3.setNumbering( p_paragraph => v_paragraph2, p_numId => 1, p_level => 0);
plpdf3.printParagraph( p_paragraph => v_paragraph2);
/* PARAGRAPH */
l_box3 := plpdf3.crBox( );
v_paragraph3 := plpdf3.crParagraph( p_box => l_box3);
/* ADD TEXT */
l_text_idx5 := plpdf3.addText( p_paragraph => v_paragraph3, p_text => 'List element3');
plpdf3.setNumbering( p_paragraph => v_paragraph3, p_numId => 1, p_level => 0);
plpdf3.printParagraph( p_paragraph => v_paragraph3);
/* PARAGRAPH */
l_box4 := plpdf3.crBox( );
v_paragraph4 := plpdf3.crParagraph( p_box => l_box4);
/* ADD TEXT */
l_text_idx6 := plpdf3.addText( p_paragraph => v_paragraph4, p_text => 'List element4');
plpdf3.setNumbering( p_paragraph => v_paragraph4, p_numId => 1, p_level => 0);
plpdf3.printParagraph( p_paragraph => v_paragraph4);
plpdf.SendDoc( p_blob => v_pdf);
end;
end a_table_test;
/
