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

end X_FONTMAPPING;
/
create or replace package body X_FONTMAPPING is
/* 2016-JAN-25 14:39 */
/* PL/PDF REPORTER 3.7.0 */
/* THIS IS GENERATED CODE. DO NOT MODIFY DIRECTLY! PLEASE CHANGE THE TEMPLATE. */
l_ttf1 plpdf_type.t_addfont;
l_ttf2 plpdf_type.t_addfont;
v_format1 plpdf_type.t_pageformat;
l_margin1 plpdf3.t_margin;
l_box1 plpdf3.t_box;
v_paragraph1 plpdf3.t_paragraph;
l_font1 plpdf3.t_font;
l_text_idx1 pls_integer;
v_paragraph2 plpdf3.t_paragraph;
l_text_idx2 pls_integer;
v_paragraph3 plpdf3.t_paragraph;
l_font2 plpdf3.t_font;
l_text_idx3 pls_integer;
l_text_idx4 pls_integer;
l_text_idx5 pls_integer;
v_paragraph4 plpdf3.t_paragraph;
l_text_idx6 pls_integer;
v_paragraph5 plpdf3.t_paragraph;
l_font3 plpdf3.t_font;
l_text_idx7 pls_integer;
l_text_idx8 pls_integer;
l_link1 pls_integer;
l_text_idx9 pls_integer;
l_text_idx10 pls_integer;
v_paragraph6 plpdf3.t_paragraph;
l_text_idx11 pls_integer;
/* BODYSECTION */
procedure genPDF is
 begin 
l_ttf1 := plpdf_ttf.GetTTF( p_id => 1);
l_ttf2 := plpdf_ttf.GetTTF( p_id => 22);
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);
plpdf.AddTTF( p_family => 'DejaVuSerif-Italic', p_style => 'I', p_data => l_ttf1);
plpdf.AddTTF( p_family => 'Roboto-Bold', p_style => 'B', p_data => l_ttf2);
plpdf.setTopMargin( p_margin => 35.400);
plpdf.setLeftMargin( p_margin => 70.850);
plpdf.setRightMargin( p_margin => 70.850);
plpdf.NewPage( );
/* PARAGRAPH */
l_margin1 := plpdf3.crMargin( p_bottom => 9);
l_box1 := plpdf3.crBox( p_margin => l_margin1);
v_paragraph1 := plpdf3.crParagraph( p_box => l_box1);
/* ADD TEXT */
l_font1 := plpdf3.crFont( p_b => true, p_fontname => 'Helvetica');
l_text_idx1 := plpdf3.addText( p_paragraph => v_paragraph1, p_text => 'DejaVu Sans: ', p_font => l_font1);
plpdf3.printParagraph( p_paragraph => v_paragraph1);
/* PARAGRAPH */
v_paragraph2 := plpdf3.crParagraph( p_box => l_box1);
/* ADD TEXT */
l_text_idx2 := plpdf3.addText( p_paragraph => v_paragraph2, p_text => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin in justo consequat, malesuada leo nec, pretium nulla. Nulla finibus, massa a lacinia iaculis, orci nisl maximus risus, sed venenatis tellus orci nec orci. ', p_font => l_font1);
plpdf3.printParagraph( p_paragraph => v_paragraph2);
/* PARAGRAPH */
v_paragraph3 := plpdf3.crParagraph( p_box => l_box1);
/* ADD TEXT */
l_font2 := plpdf3.crFont( p_fontname => 'Helvetica');
l_text_idx3 := plpdf3.addText( p_paragraph => v_paragraph3, p_text => 'Times New Roman', p_font => l_font2);
/* ADD TEXT */
l_text_idx4 := plpdf3.addText( p_paragraph => v_paragraph3, p_text => ' to Helvetica', p_font => l_font2);
/* ADD TEXT */
l_text_idx5 := plpdf3.addText( p_paragraph => v_paragraph3, p_text => ':', p_font => l_font2);
plpdf3.printParagraph( p_paragraph => v_paragraph3);
/* PARAGRAPH */
v_paragraph4 := plpdf3.crParagraph( p_box => l_box1);
/* ADD TEXT */
l_text_idx6 := plpdf3.addText( p_paragraph => v_paragraph4, p_text => 'Maecenas pulvinar pulvinar pellentesque. Integer dictum dui id augue euismod dictum. Cras quis justo nisi. Aenean gravida venenatis eros ut facilisis. Nulla leo justo, vestibulum sed dolor eget, molestie elementum ipsum. Maecenas rutrum porttitor odio, aliquet facilisis justo pharetra quis. Integer elementum nec eros at aliquam. ', p_font => l_font2);
plpdf3.printParagraph( p_paragraph => v_paragraph4);
/* PARAGRAPH */
v_paragraph5 := plpdf3.crParagraph( p_box => l_box1);
/* ADD TEXT */
l_font3 := plpdf3.crFont( p_fontname => 'Courier');
l_text_idx7 := plpdf3.addText( p_paragraph => v_paragraph5, p_text => 'Calibri', p_font => l_font3);
/* ADD TEXT */
l_text_idx8 := plpdf3.addText( p_paragraph => v_paragraph5, p_text => ' to Co', p_font => l_font3);
l_link1 := plpdf.crInternalLink( );
plpdf.setLinkDest( p_link => l_link1);
/* ADD TEXT */
l_text_idx9 := plpdf3.addText( p_paragraph => v_paragraph5, p_text => 'urier', p_font => l_font3);
/* ADD TEXT */
l_text_idx10 := plpdf3.addText( p_paragraph => v_paragraph5, p_text => ':', p_font => l_font3);
plpdf3.printParagraph( p_paragraph => v_paragraph5);
/* PARAGRAPH */
v_paragraph6 := plpdf3.crParagraph( p_box => l_box1);
/* ADD TEXT */
l_text_idx11 := plpdf3.addText( p_paragraph => v_paragraph6, p_text => 'Nunc non lectus est. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ullamcorper, enim ac eleifend convallis, arcu nisi blandit est, efficitur lobortis quam ligula non tellus.', p_font => l_font3);
plpdf3.printParagraph( p_paragraph => v_paragraph6);
plpdf.SendDoc( p_blob => v_pdf);
end;
end X_FONTMAPPING;
/
