Draw PDF on PDF Letterhead
The function Draw_A_as_Layer_on_B is the ideal function to merge two (or 3) PDF documents on top of each other so that one PDF acts like a letterhead.
First you need to create the Aloaha PDF Object with
set pdf = CreateObject("aloahapdf.edit")
Once the object is created you can directly merger to documents. The function call is:
Draw_A_as_Layer_on_B(A_PDF As String, B_PDF As String, OutputPDF As String, Allpages As Boolean) As Boolean
If Allpage is set to true the function will apply the letterhead only to the first page of the document.
You can point the aloahapdf.edit property
AdditionalPDFLetterhead to a third PDF document.
In that case Aloaha will render on the first Page the document specified in the function call. The PDF specified in
AdditionalPDFLetterhead will be rendered to all further pages.
Aloaha Software / Knowledge Base / PDF SDK / Draw PDF as Letterhead