This example shows how to render a PDF document.

 

   

Read
 

We create an ABCpdf Doc object and read our source PDF.

Set theDoc = Server.CreateObject("ABCpdf10.Doc")
theDoc.Read "c:\mypdfs\spaceshuttle.pdf"

 

   

Prefs
 

We specify our base rendering settings.

theDoc.Rendering.DotsPerInch = 36

 

   

Save
 

Finally, we save the first four pages of the document in png format.

For i = 1 To 4
  theDoc.PageNumber = i
  theDoc.Rect = theDoc.CropBox
  theDoc.Rendering.Save "c:\mypdfs\shuttle_p" & i & ".png"
Next

 

   

Results
 


shuttle_p1.gif


shuttle_p2.png


shuttle_p3.png


shuttle_p4.png