PDF Library - Generate PDF document from your VFP programs
PDF Library (PDFL) is a software tool that allows you to generate PDF documents from your VFP code. It provides a set of functions
that do all the work for you.
Example:
oDocument = evaluate([XFRX("PDFL#INIT")])
oDocument.createDocument("output.pdf")
oDocument.newPage("letter")
oDocument.setForeColor(0,0,224)
odocument.setBackColor(220,220,220)
oDocument.addBox(125,73,60,-20,1,1,1,99)
oDocument.setPos(130,80)
oDocument.setFont("Arial",12)
oDocument.outText("Hello world")
oDocument.endPage()
oDocument.finishDocument()
PDFL can add text, basic shapes - lines and rectangles, complicated shapes using paths and cubic Bézier curves, pictures, colors
and more. Please consult the manual for details.
PDFL can be used together with XFRX or independently. When used with XFRX, PDFL can add custom graphics and/or text to the pages generated by XFRX (company logo, watermark, evaluation messages, etc.) (demo).
|