See Also

Document Object

!UNRECOGNISED ELEMENT TYPE 'defaultmemberrequirements'!
PdfDocument
PDF document to import.
StartPage
Optional. Starting page number of an existing PDF document which needs to be imported to the calling document object. Default value is 1.
PageCount
Optional. Number of pages to import from an existing PDF document from the starting page number.
MergeOptions
MergeOptions object specifying the merge options.

Description

Loads a existing PDF document pages into the calling document object.

Syntax

Public Function LoadPdf( _
   ByVal PdfDocument As Variant, _
   Optional ByVal StartPage As Long = 1, _
   Optional ByVal PageCount As Long = -1, _
   Optional ByVal MergeOptions As Variant _
) As ArrayList

Parameters

PdfDocument
PDF document to import.
StartPage
Optional. Starting page number of an existing PDF document which needs to be imported to the calling document object. Default value is 1.
PageCount
Optional. Number of pages to import from an existing PDF document from the starting page number.
MergeOptions
MergeOptions object specifying the merge options.

Remarks

LoadPdf method overwrites document contents with the existing PDF document which is passed as file path.

Example

[ASP - VBScript] 

<% 
    Dim MyDocument 
    Dim MyPage 
    Set MyDocument = Server.CreateObject( "DynamicPDF.Document" ) 
    MyDocument.LoadPdf Server.MapPath( "PDFs/DocumentA.pdf" ) 
    Set MyPage = MyDocument.GetPage( 1 ) 
    MyPage.AddLabel "Appended Label", 100, 300, 150, 40 
    MyDocument.DrawToWeb 
    Set MyPage = Nothing 
    Set MyDocument = Nothing 
%> 

See Also

Document Object

 

 


© Copyright 2007, ceTe Software