-
Notifications
You must be signed in to change notification settings - Fork 33
/
README
41 lines (35 loc) · 1.19 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Pl_fpdf is a pl/sql package that provides functions and procedure to produce pdf files from Oracle database.
This code gives you the same functions than FPDF, except that it converts all the images you need in PNG.
PHP library FPDF which was written by Olivier Plathey. (http://www.fpdf.org/)
Required Environment
- Oracle en version 10g (10.2.0.1 and above).
- Installation ofOracle Web Tool Kit required (owa, htp and htf packages).
- OrdSys.OrdImage required (Oracle cartridge for images).
- Installation of package URIFactory required.
Sample codes
- helloWord : Note that the "output" procedure calls automatically "ClosePdf".
<code>
procedure helloworld is
begin
pdf.FPDF('P','cm','A4');
pdf.openpdf;
pdf.AddPage();
pdf.SetFont('Arial','B',16);
pdf.Cell(0,1.2,'Hello World',0,1,'C');
pdf.Output();
end helloworld;
</code>
Put an image in a pdf file
<code>
procedure testImg is
img varchar2(2000);
begin
pdf.FPDF('P','cm','A4');
pdf.openpdf;
pdf.AddPage();
pdf.SetFont('Arial','B',16);
img := 'http://www.laclasse.com/v25/images/logo-laclasse.gif';
pdf.Image(img,1, 1, 10);
pdf.Output();
end testImg;
</code>