create or replace package DOCX_ADDPARAGRAPH_BORDER is
   -- Required procedure
  procedure genDOCX;
 
  -- Required variable
  v_docx blob;
   
  
end DOCX_ADDPARAGRAPH_BORDER;
/
create or replace package body DOCX_ADDPARAGRAPH_BORDER is
/* 2016-JAN-26 10:41 */
/* PL/PDF REPORTER 3.7.0 */
l_paragraph1 pls_integer;
l_text_idx1 pls_integer;
l_borderSide1 ploffx_document_type.CT_Border;
l_border2 ploffx_document_type.CT_PBdr;
l_paragraph2 pls_integer;
l_text_idx2 pls_integer;
l_borderSide3 ploffx_document_type.CT_Border;
l_border4 ploffx_document_type.CT_PBdr;
l_paragraph3 pls_integer;
l_text_idx3 pls_integer;
l_borderSide5 ploffx_document_type.CT_Border;
l_border6 ploffx_document_type.CT_PBdr;
l_paragraph4 pls_integer;
l_text_idx4 pls_integer;
l_borderSide7 ploffx_document_type.CT_Border;
l_border8 ploffx_document_type.CT_PBdr;
l_paragraph5 pls_integer;
l_text_idx5 pls_integer;
procedure genDOCX is
 begin 
ploffx_docx.init( );
/* START PARAGRAPH */
l_paragraph1 := ploffx_docx.crParagraph();
l_text_idx1 := ploffx_docx.addText( p_paragraph_id => l_paragraph1, p_text => 'AddParagraph_Border');
ploffx_docx.addParagraph(p_paragraph_id => l_paragraph1);
/* START PARAGRAPH */
l_borderSide1 := ploffx_docx.crBorder(p_style => 'double', p_color => 'FF0000');
l_border2 := ploffx_docx.crParagraphBorder(p_top => l_borderSide1, p_bottom => l_borderSide1, p_left => l_borderSide1, p_right => l_borderSide1);
l_paragraph2 := ploffx_docx.crParagraph(p_border => l_border2);
l_text_idx2 := ploffx_docx.addText( p_paragraph_id => l_paragraph2, 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_fontName => 'Arial', p_fontSize => 10);
ploffx_docx.addParagraph(p_paragraph_id => l_paragraph2);
/* START PARAGRAPH */
l_borderSide3 := ploffx_docx.crBorder(p_style => 'dashed', p_color => '2E8B57');
l_border4 := ploffx_docx.crParagraphBorder(p_top => l_borderSide3, p_bottom => l_borderSide3, p_left => l_borderSide3, p_right => l_borderSide3);
l_paragraph3 := ploffx_docx.crParagraph(p_border => l_border4);
l_text_idx3 := ploffx_docx.addText( p_paragraph_id => l_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_fontName => 'Arial', p_fontSize => 10);
ploffx_docx.addParagraph(p_paragraph_id => l_paragraph3);
/* START PARAGRAPH */
l_borderSide5 := ploffx_docx.crBorder(p_style => 'single', p_color => 'A52A2A');
l_border6 := ploffx_docx.crParagraphBorder(p_top => l_borderSide5, p_bottom => l_borderSide5, p_left => l_borderSide5, p_right => l_borderSide5);
l_paragraph4 := ploffx_docx.crParagraph(p_border => l_border6);
l_text_idx4 := ploffx_docx.addText( p_paragraph_id => l_paragraph4, 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_fontName => 'Arial', p_fontSize => 10);
ploffx_docx.addParagraph(p_paragraph_id => l_paragraph4);
/* START PARAGRAPH */
l_borderSide7 := ploffx_docx.crBorder(p_style => 'dotted', p_color => 'EE82EE');
l_border8 := ploffx_docx.crParagraphBorder(p_top => l_borderSide7, p_bottom => l_borderSide7, p_left => l_borderSide7, p_right => l_borderSide7);
l_paragraph5 := ploffx_docx.crParagraph(p_border => l_border8);
l_text_idx5 := ploffx_docx.addText( p_paragraph_id => l_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_fontName => 'Arial', p_fontSize => 10);
ploffx_docx.addParagraph(p_paragraph_id => l_paragraph5);
ploffx_docx.getDoc( p_blob_file => v_Docx);
end;
end DOCX_ADDPARAGRAPH_BORDER;
/
