Document.LoadPdf Method | Document.AppendPdf Method | Page Class | Programming with Merger for COM/ActiveX

The LoadPdf method or AppendPdf method of Document class can be used to import a page from an existing document as a template and add page elements to it. The dimensions of the imported page are preserved.

The following code will import a page and add page elements to it.

[ASP - VBScript]
<!-- METADATA TYPE="typelib" UUID="{DF9225FE-94A4-490D-8CAD-E8366CE621D3}"-->
<%
    Dim MyDocument
    Dim MyPage
    Set MyDocument = Server.CreateObject( "DynamicPDF.Document" )
    Dim MyPageArray
    Set MyPageArray = MyDocument.LoadPdf( Server.MapPath( "PDFs/DocumentA.pdf" ), 1, 1 )
    Set MyPage =  MyPageArray( 0 )
    MyPage.AddLabel "Label Text", 100, 100, 100, 12
    MyPage.AddLabel "Label Text2", 100, 120, 100, 12
    MyDocument.DrawToWeb
    Set MyPage = Nothing
    Set MyDocument = Nothing
%>

See Also 

Document.LoadPdf Method | Document.AppendPdf Method | Page Class | Programming with Merger for COM/ActiveX