Here's the code if it helps:
Set objDoc = Server.CreateObject("DPDF_Gen.Document")
objDoc.Creator = "DigitalMailer"
objDoc.Author = "DigitalMailer"
objDoc.Title = "Test"
objDoc.DefaultMarginLeft = pageLeftMargin
Do Until rs.EOF
'Add a page to the document
Set objPage = objDoc.AddPage()
If blnUseTemplate Then
Set objImage = objPage.AddImage(Server.MapPath("templates\" & Session("clientid") & ".jpg"), templatePosX, templatePosY, templateImageScale)
objImage.KeepProportions = False
objImage.Height = templateHeightPx
objImage.Width = templateWidthPx
End If
'Add a textarea to the page
objPage.AddTextArea rs.Fields("statementpage").Value, textPosX, textPosY, textWidthPx, textHeightPx, DPDF_Align_Left, textFontFace, textFontSizePt
rs.MoveNext
Loop
' Finished with RS/connection
rs.Close
Set rs = Nothing
conn.Close
Set conn = Nothing
'Draw the Document to the Browser
objDoc.InitialZoom = DPDF_Zoom_FitWidth
objDoc.DrawToASP
Set objPage = Nothing
Set objDoc = Nothing