Description

Represents an even / odd document or Section template.

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

Object Model











































Remarks

This class can be used to define a template that can contain separate information to go on even and odd pages.

Example

[ASP - VBScript] 

<% 
    ' Create a PDF Document 
    Dim MyDocument  
    Dim MyDocTemplate 
    Set MyDocument = Server.CreateObject( "DynamicPDF.Document" )   
    Set MyDocTemplate = MyDocument.SetEvenOddTemplate() 
    MyDocTemplate.AddPageNumberingLabel "Page %%CP%%", 350, 40, 120, 30 
    'Background Image in the Template for Even Pages  
    Dim MyEvenGroup 
    Set MyEvenGroup = MyDocTemplate.EvenElements 
    Dim MyBackGroundImage 
    ' Create a background image 
    Set MyBackgroundImage = MyEvenGroup.AddBackgroundImage( Server.MapPath( "Images/DynamicPDF.gif" ) ) 
    ' Place the image with in the page margins  
    MyBackgroundImage.UseMargins = True 
    MyDocument.AddPage() 
    MyDocument.AddPage() 
    MyDocument.AddPage() 
    ' Draw the PDF 
    MyDocument.DrawToWeb 
    Set MyDocument = Nothing 
%> 

See Also

EvenOddTemplate Members