1. I would suggest to reseach about
and downloading their toolkit
2. I ran into this sample syntax that creates a pdf from and SQL statement and a few asp lines:
<%
'YOUR SQL STATEMENT HERE
request("idnref"

Dim oRSNew
Set oRSNew = Server.CreateObject("ADODB.Recordset"

oRSNew.open sql1, "dsn=SQL_DATABASE;uid=XXX;pwd=XXX"
response.buffer = True
response.expires = 0
'create and populate the PDF File =======================================================================
Set APToolkit = Server.CreateObject("APToolkit.Object"

APToolkit.OutputPageWidth=612
APToolkit.OutputPageHeight=792
r = APToolkit.OpenOutputFile("MEMORY"
'Set field values to equal your variables
vara = "Instructions to: & ORSNew("Client"

varb1 = "More instructions"
varb2 = "More instructions"
varb3 = "More instructions"
varb4 = "More instructions"
varb5 = "More instructions"
varb6 = "More instructions"
varb7 = "More instructions"
varc = "More instructions"
varc1 = "More instructions"
varc2 = "More instructions"
varc3 = "More instructions"
varc4 = "More instructions"
varc5 = "More instructions"
varc6 = "More instructions"
vard = "If you need assistance, please e-mail support@company.com or call (xxx) xxx-xxxx."
APToolkit.SetFont "Times-Roman",18
APToolkit.LineWidth(1)
'=========================================Header Section======================
'APToolkit.PrintText 36,548,reqTitleLine
APToolkit.PrintText 36,720,vara
APToolkit.SetFont "Times-Roman",12
APToolkit.PrintText 36,660,varb1
APToolkit.PrintText 36,640,varb2
APToolkit.PrintText 36,620,varb3
APToolkit.PrintText 36,600,varb4
APToolkit.PrintText 36,580,varb5
APToolkit.PrintText 36,560,varb6
APToolkit.PrintText 36,540,varb6
APToolkit.SetFont "Times-Roman",18
APToolkit.PrintText 36,500,varc
APToolkit.SetFont "Times-Roman",12
APToolkit.PrintText 36,480,varc1
APToolkit.PrintText 36,460,varc2
APToolkit.PrintText 36,440,varc3
APToolkit.PrintText 36,420,varc4
APToolkit.PrintText 36,400,varc5
APToolkit.PrintText 36,380,varc6
APToolkit.PrintText 36,320,vard
'=======================================Print Out Section ====================
r = APToolkit.CloseOutputFile()
zz = APToolkit.BinaryImage
response.expires = 0
response.clear
response.ContentType="application/pdf"
response.AddHeader"Content-Type","application/pdf"
response.AddHeader"Content-Disposition","inline;filename=ftppages.pdf"
response.BinaryWrite zz
response.End
set APToolkit = nothing
'oBuild.Close()
%>
hope it serves as guidence
[tt]