Description

Represents a background image.

For a list of all members defined in this module, see BackgroundImage members.

Remarks

This class can be used to place an image on the page that will be stretched to the dimensions of the page. If an image will be used more than once, please see the Image Reuse topic.

Example

[ASP - VBScript] 

<% 
    ' Create a PDF Document 
    Dim MyDocument  
    Set MyDocument = Server.CreateObject( "DynamicPDF.Document" )   
    ' Create a Page and add it to the document 
    Dim MyPage  
    Set MyPage = MyDocument.AddPage() 
    ' Create a background image 
    Dim MyBackgroundImage  
    Set MyBackgroundImage = MyPage.AddBackgroundImage( Server.MapPath( "Images/DPDFLogo_TM.png" ) ) 
    ' Place the image with in the page margins  
    MyBackgroundImage.UseMargins = True 
    ' Draw the PDF 
    MyDocument.DrawToWeb 
    Set MyPage = Nothing 
    Set MyDocument = Nothing 
%> 
 

See Also

BackgroundImage Members