|
The following code illustrates how one might add text to a PDF
and then write it direct to the client browser. This code is an
entire Active Server Page - hello.asp.
<% @Language="VBScript" EnableSessionState=FALSE
%>
<%
Set theDoc = Server.CreateObject("ABCpdf3.Doc")
theDoc.FontSize = 96
theDoc.AddText "Hello World"
Response.ContentType = "application/pdf"
Response.AddHeader "content-disposition", "inline;
filename=MyPDF.PDF"
Response.BinaryWrite theDoc.GetData()
%>

hello.asp
|