Description
Adds a BackgroundImage object to the Page and returns a New BackgroundImage object.
Parameters
- Image
- The physical file path to the background image.
Return Type
A BackgroundImage object.
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 using a Image File 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
Page Object
© Copyright 2007, ceTe Software