Description
Outputs the generated document to a variant.
Syntax
Public Function Draw() As Variant
Return Type
A Variant object.
Remarks
In Visual Basic, the output from the draw method should be assigned to a byte array variable.
Example
[ASP - VBScript]
<% Dim MyDocument Set MyDocument = Server.CreateObject( "DynamicPDF.Document" ) Dim MyPage Set MyPage = MyDocument.AddPage() Dim MyImportedPageArea ' Substitute with own pdf Document below Set MyImportedPageArea = MyPage.AddImportedPageArea( Server.MapPath( "PDFs/fw9AcroForm_03.pdf" ), 1, 0, 0, 50 ) MyImportedPageArea.Contents.ClipLeft = 10 MyImportedPageArea.Contents.ClipTop = 10 MyImportedPageArea.Contents.ClipRight = 10 MyImportedPageArea.Contents.ClipBottom = 10 Dim MyDocByte MyDocByte = MyDocument.Draw() Response.Clear() Response.ContentType = "application/pdf" ' Http content will be sent to client browser only after headers are all written Response.Buffer = True ' Use Binary write instead of write for outputting the Variant data Response.BinaryWrite( MyDocByte ) Set Mypage = Nothing Set MyDocument = Nothing %> |
See Also
Document Object
© Copyright 2007, ceTe Software