create or replace package X_ADDPARAGRAPH_ALIGNMENT is
  
  v_pdf blob;
  procedure genPDF;

end X_ADDPARAGRAPH_ALIGNMENT;
/
create or replace package body X_ADDPARAGRAPH_ALIGNMENT is
/* 2016-JAN-25 13:56 */
/* 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_font2 plpdf3.t_font;
l_listLevel2 plpdf3.t_ListLevel;
l_font3 plpdf3.t_font;
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_box2 plpdf3.t_box;
v_paragraph2 plpdf3.t_paragraph;
l_font4 plpdf3.t_font;
l_text_idx2 pls_integer;
l_box3 plpdf3.t_box;
v_paragraph3 plpdf3.t_paragraph;
l_font5 plpdf3.t_font;
l_text_idx3 pls_integer;
l_box4 plpdf3.t_box;
v_paragraph4 plpdf3.t_paragraph;
l_text_idx4 pls_integer;
l_box5 plpdf3.t_box;
v_paragraph5 plpdf3.t_paragraph;
l_text_idx5 pls_integer;
l_box6 plpdf3.t_box;
v_paragraph6 plpdf3.t_paragraph;
l_text_idx6 pls_integer;
l_box7 plpdf3.t_box;
v_paragraph7 plpdf3.t_paragraph;
l_text_idx7 pls_integer;
l_box8 plpdf3.t_box;
v_paragraph8 plpdf3.t_paragraph;
l_text_idx8 pls_integer;
l_box9 plpdf3.t_box;
v_paragraph9 plpdf3.t_paragraph;
l_text_idx9 pls_integer;
/* BODYSECTION */
procedure initNumbering 
 is 

begin

plpdf3.initNum();
l_font1 := plpdf3.crFont( p_fontname => 'Symbol');
l_listLevel1 := plpdf3.crListLevel( p_numFmt => 'bullet', p_ilvl => 0, p_lvlJc => 'left', p_lvlText => chr(45), p_pPr_ind_left => 36, p_pPr_ind_hanging => 18, p_font => l_font1);
plpdf3.addListLevel( p_abstractNumId => 0, p_ListLevel => l_listLevel1);
l_font2 := plpdf3.crFont( p_fontname => 'Courier');
l_listLevel2 := plpdf3.crListLevel( p_numFmt => 'bullet', p_ilvl => 1, p_lvlJc => 'left', p_lvlText => chr(111), p_pPr_ind_left => 72, p_pPr_ind_hanging => 18, p_font => l_font2);
plpdf3.addListLevel( p_abstractNumId => 0, p_ListLevel => l_listLevel2);
l_font3 := plpdf3.crFont( p_fontname => 'wingdings');
l_listLevel3 := plpdf3.crListLevel( p_numFmt => 'bullet', p_ilvl => 2, p_lvlJc => 'left', p_lvlText => chr(45), p_pPr_ind_left => 108, p_pPr_ind_hanging => 18, p_font => l_font3);
plpdf3.addListLevel( p_abstractNumId => 0, p_ListLevel => l_listLevel3);
l_listLevel4 := plpdf3.crListLevel( p_numFmt => 'bullet', p_ilvl => 3, p_lvlJc => 'left', p_lvlText => chr(45), p_pPr_ind_left => 144, p_pPr_ind_hanging => 18, p_font => l_font1);
plpdf3.addListLevel( p_abstractNumId => 0, p_ListLevel => l_listLevel4);
l_listLevel5 := plpdf3.crListLevel( p_numFmt => 'bullet', p_ilvl => 4, p_lvlJc => 'left', p_lvlText => chr(111), p_pPr_ind_left => 180, p_pPr_ind_hanging => 18, p_font => l_font2);
plpdf3.addListLevel( p_abstractNumId => 0, p_ListLevel => l_listLevel5);
l_listLevel6 := plpdf3.crListLevel( p_numFmt => 'bullet', p_ilvl => 5, p_lvlJc => 'left', p_lvlText => chr(45), p_pPr_ind_left => 216, p_pPr_ind_hanging => 18, p_font => l_font3);
plpdf3.addListLevel( p_abstractNumId => 0, p_ListLevel => l_listLevel6);
l_listLevel7 := plpdf3.crListLevel( p_numFmt => 'bullet', p_ilvl => 6, p_lvlJc => 'left', p_lvlText => chr(45), p_pPr_ind_left => 252, p_pPr_ind_hanging => 18, p_font => l_font1);
plpdf3.addListLevel( p_abstractNumId => 0, p_ListLevel => l_listLevel7);
l_listLevel8 := plpdf3.crListLevel( p_numFmt => 'bullet', p_ilvl => 7, p_lvlJc => 'left', p_lvlText => chr(111), p_pPr_ind_left => 288, p_pPr_ind_hanging => 18, p_font => l_font2);
plpdf3.addListLevel( p_abstractNumId => 0, p_ListLevel => l_listLevel8);
l_listLevel9 := plpdf3.crListLevel( p_numFmt => 'bullet', p_ilvl => 8, p_lvlJc => 'left', p_lvlText => chr(45), p_pPr_ind_left => 324, p_pPr_ind_hanging => 18, p_font => l_font3);
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.280, p_h => 841.890);
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 => 'AddParagraph_Alignment');
plpdf3.printParagraph( p_paragraph => v_paragraph1);
/* PARAGRAPH */
l_box2 := plpdf3.crBox( );
v_paragraph2 := plpdf3.crParagraph( p_box => l_box2, p_alignment => 'right');
/* ADD TEXT */
l_font4 := plpdf3.crFont( p_fontname => 'Helvetica', p_sz => 16);
l_text_idx2 := plpdf3.addText( p_paragraph => v_paragraph2, p_text => 'Paragraph alignment: right', p_font => l_font4);
plpdf3.printParagraph( p_paragraph => v_paragraph2);
/* PARAGRAPH */
l_box3 := plpdf3.crBox( );
v_paragraph3 := plpdf3.crParagraph( p_box => l_box3, p_alignment => 'right');
/* ADD TEXT */
l_font5 := plpdf3.crFont( p_fontname => 'Helvetica', p_sz => 10);
l_text_idx3 := plpdf3.addText( p_paragraph => v_paragraph3, p_text => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer ut placerat libero, eu lobortis ante. Suspendisse sagittis felis sem, a ullamcorper libero semper eget. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Nam semper mi orci, ultrices tincidunt magna ultricies quis. Ut sodales nisi ac tincidunt auctor. Mauris ac tellus massa. Fusce ornare porttitor orci, vitae ornare nulla congue eu. Quisque vehicula, nisl id vestibulum gravida, tellus metus sollicitudin tortor, dignissim semper tellus elit quis quam. Aenean placerat mi eu ligula blandit blandit. Curabitur ut volutpat sapien. Nullam sed nisl enim. Proin id cursus quam.', p_font => l_font5);
plpdf3.printParagraph( p_paragraph => v_paragraph3);
/* PARAGRAPH */
l_box4 := plpdf3.crBox( );
v_paragraph4 := plpdf3.crParagraph( p_box => l_box4, p_alignment => 'left');
/* ADD TEXT */
l_text_idx4 := plpdf3.addText( p_paragraph => v_paragraph4, p_text => 'Paragraph alignment: left', p_font => l_font4);
plpdf3.printParagraph( p_paragraph => v_paragraph4);
/* PARAGRAPH */
l_box5 := plpdf3.crBox( );
v_paragraph5 := plpdf3.crParagraph( p_box => l_box5, p_alignment => 'left');
/* ADD TEXT */
l_text_idx5 := plpdf3.addText( p_paragraph => v_paragraph5, p_text => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer ut placerat libero, eu lobortis ante. Suspendisse sagittis felis sem, a ullamcorper libero semper eget. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Nam semper mi orci, ultrices tincidunt magna ultricies quis. Ut sodales nisi ac tincidunt auctor. Mauris ac tellus massa. Fusce ornare porttitor orci, vitae ornare nulla congue eu. Quisque vehicula, nisl id vestibulum gravida, tellus metus sollicitudin tortor, dignissim semper tellus elit quis quam. Aenean placerat mi eu ligula blandit blandit. Curabitur ut volutpat sapien. Nullam sed nisl enim. Proin id cursus quam.', p_font => l_font5);
plpdf3.printParagraph( p_paragraph => v_paragraph5);
/* PARAGRAPH */
l_box6 := plpdf3.crBox( );
v_paragraph6 := plpdf3.crParagraph( p_box => l_box6, p_alignment => 'center');
/* ADD TEXT */
l_text_idx6 := plpdf3.addText( p_paragraph => v_paragraph6, p_text => 'Paragraph alignment: center', p_font => l_font4);
plpdf3.printParagraph( p_paragraph => v_paragraph6);
/* PARAGRAPH */
l_box7 := plpdf3.crBox( );
v_paragraph7 := plpdf3.crParagraph( p_box => l_box7, p_alignment => 'center');
/* ADD TEXT */
l_text_idx7 := plpdf3.addText( p_paragraph => v_paragraph7, p_text => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer ut placerat libero, eu lobortis ante. Suspendisse sagittis felis sem, a ullamcorper libero semper eget. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Nam semper mi orci, ultrices tincidunt magna ultricies quis. Ut sodales nisi ac tincidunt auctor. Mauris ac tellus massa. Fusce ornare porttitor orci, vitae ornare nulla congue eu. Quisque vehicula, nisl id vestibulum gravida, tellus metus sollicitudin tortor, dignissim semper tellus elit quis quam. Aenean placerat mi eu ligula blandit blandit. Curabitur ut volutpat sapien. Nullam sed nisl enim. Proin id cursus quam.', p_font => l_font5);
plpdf3.printParagraph( p_paragraph => v_paragraph7);
/* PARAGRAPH */
l_box8 := plpdf3.crBox( );
v_paragraph8 := plpdf3.crParagraph( p_box => l_box8, p_alignment => 'justified');
/* ADD TEXT */
l_text_idx8 := plpdf3.addText( p_paragraph => v_paragraph8, p_text => 'Paragraph alignment: justify ', p_font => l_font4);
plpdf3.printParagraph( p_paragraph => v_paragraph8);
/* PARAGRAPH */
l_box9 := plpdf3.crBox( );
v_paragraph9 := plpdf3.crParagraph( p_box => l_box9, p_alignment => 'justified');
/* ADD TEXT */
l_text_idx9 := plpdf3.addText( p_paragraph => v_paragraph9, p_text => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer ut placerat libero, eu lobortis ante. Suspendisse sagittis felis sem, a ullamcorper libero semper eget. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Nam semper mi orci, ultrices tincidunt magna ultricies quis. Ut sodales nisi ac tincidunt auctor. Mauris ac tellus massa. Fusce ornare porttitor orci, vitae ornare nulla congue eu. Quisque vehicula, nisl id vestibulum gravida, tellus metus sollicitudin tortor, dignissim semper tellus elit quis quam. Aenean placerat mi eu ligula blandit blandit. Curabitur ut volutpat sapien. Nullam sed nisl enim. Proin id cursus quam.', p_font => l_font5);
plpdf3.printParagraph( p_paragraph => v_paragraph9);
plpdf.SendDoc( p_blob => v_pdf);
end;
end X_ADDPARAGRAPH_ALIGNMENT;
/
