See Also

Document Object

!UNRECOGNISED ELEMENT TYPE 'defaultmemberrequirements'!
PdfDocument
PDF document to import.
StartPage
Page number to start importing from.
PageCount

Number of pages to import.

MergeOptions
MergeOptions object specifying the merge options.

Description

Appends a PDF document to the current document.

Syntax

Public Function AppendPdf( _
   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
Page number to start importing from.
PageCount

Number of pages to import.

MergeOptions
MergeOptions object specifying the merge options.

Example

[ASP - VBScript] 

<% 
    Dim MyDocument 
    Set MyDocument = Server.CreateObject( "DynamicPDF.Document" ) 
    MyDocument.Creator = "MergePDFs.asp" 
    MyDocument.Author = "Your Name" 
    MyDocument.Title = "Merge PDFs" 
    MyDocument.AddPage() 
    ' Append additional PDF 
    MyDocument.AppendPdf Server.MapPath( "PDFs/DocumentB.pdf" ) 
    MyDocument.AppendPdf Server.MapPath( "PDFs/DocumentC.pdf" ) 
    ' Append 3 MyPages from an aditional PDF 
    MyDocument.AppendPdf Server.MapPath( "PDFs/DocumentD.pdf" ), 1, 3 
    ' Outputs the merged document to the current web MyPage 
    MyDocument.DrawToWeb 
    Set MyDocument = Nothing 
%> 

See Also

Document Object

 

 


© Copyright 2007, ceTe Software