CREATE OR REPLACE procedure test12 is -- Set text color l_blob blob; begin plpdf.init; -- initialize, without parameters means: page orientation: portrait, unit: mm, default page format: A4 plpdf.NewPage; -- begin a new page, without parameters means: page orientation: default (portrait) plpdf.SetPrintFont('Arial',null,12); -- set font attributes: family: Arial, style: regular, font size: 12 plpdf.SetColor4Text(220,50,50); -- set text color (RGB): Red: 220, Green: 50, Blue: 50 plpdf.PrintCell(50,10,'Hello World!'); -- print text: cell size:50*10 plpdf.LineBreak(20); -- line break, height is 20 plpdf.SetColor4Text(0); -- set text color back plpdf.PrintCell(50,10,'Hello World!'); -- print text: cell size:50*10 plpdf.SendDoc(l_blob); -- create content -- print -- plpdf_util.print_blob(l_blob); -- or store insert into STORE_BLOB (blob_file, created_date) values (l_blob, sysdate); commit; end; /