Appends a PDF to the end of the document.

 

   

Syntax
 

Doc.Append Doc

 

   

Params
 
Name Type Description
Doc Doc The document to add to the end of this one.

 

   

Notes
 

Use this method to append one PDF to the end of another one.

Individual pages from one PDF can be drawn into another using the AddImageDoc method.

If you are inserting a number of pages, it is much faster to use the Append method than to draw pages individually. It also has the advantage of maintaining other information such as bookmarks.

 

   

Example
 

The following code snippet illustrates how one might join two PDF documents together.

Set theDoc1 = Server.CreateObject("ABCpdf10.Doc")
theDoc1.FontSize = 192
theDoc1.HPos = 0.5
theDoc1.VPos = 0.5
theDoc1.AddText("Hello")
Set theDoc2 = Server.CreateObject("ABCpdf10.Doc")
theDoc2.FontSize = 192
theDoc2.HPos = 0.5
theDoc2.VPos = 0.5
theDoc2.AddText("World")
theDoc1.Append theDoc2
theDoc1.Save "c:\mypdfs\docjoin.pdf"


docjoin.pdf [Page 1]


docjoin.pdf [Page 2]