oDocument = evaluate([XFRX("PDFL#INIT")]) IF oDocument.createDocument("output.pdf")!=0 =MESSAGEBOX("Cannot create output.pdf") RETURN .f. ENDIF WITH oDocument .newPage(220,150) .setPos(130,80) .setForeColor(0,0,224) .setBackColor(220,220,220) .addBox(125,73,60,-20,1,1,1,99) .outText("Hello world") .setForeColor(0,0,0) .addLine(10,20,180,20,1,8) .setColor(255,0,0,255,255,255) .addLine(10,60,170,60,1,3) .setColor(0,0,0,255,255,255) .addLine(20,10,20,80,1,8) .setBackColor(200,200,240) .startPath(21,59) .appendLine(120,59) .appendBezier(45,20,90,65,21,26) .closePath() .fill() FOR i = 1 TO 8 .setPos(i*20-3+20,10) .addLine(i*20+20,18,i*20+20,22,1,8) .outText(ALLTRIM(STR(i))) ENDFOR .addLine(140,65, 20, 25,1,1) .addPicture("pdfl.bmp",10,73,60,20,1) .setColor(140,140,40,5,5,255) .startPath(30,90) .appendLine(40,80) .appendBezier(45,115,90,65,50,110) .closePath() .strokeandfill() .setColor(40,140,40,140,140,255) .startPath(70,90) .appendLine(60,150) .appendBezier(45,115,90,65,80,140) .closePath() .fill() .setBackColor(170,240,170) .addBox(45,20,4,-50,0,8,0) .endPage() .finishDocument() ENDWITH