Probably possible with DECLARE LIBRARY and the countless pdf libraries or you could write your own PDF routines, depends how advanced are the pdf features you want. OPEN "x.pdf" FOR BINARY and go from there
The easiest way of making pdf reports that I can think of is generating html then using one of the various converter tools, some are command-line and can be integrated into your program with SHELL.