



Collapse AllThis method appends the contents of a previously saved PDF file (not a BLOB) to a newly created (or opened) PDF document.
Syntax| HRESULT Append ( BSTR fileName, BSTR password ) |
RemarksThe newly opened document appends to the existing one (in memory) like this:
When the document is appended, it loses all its metadata properties (Author, Producer, Creator, Title, Subject and Keywords).
Example{ PDF object is supposed to be created }
font := PDF.AddFont('Arial', false, false, false, false, fcDefault);
PDF.UseFont(font, 10);
PDF.ShowTextAt(10, 10, 'This is a page in a newly created document.');
PDF.ShowTextAt(10, 20, 'Now we append another document.');
PDF.Append('one.pdf', '');
PDF.SaveToFile('test.pdf', true);
// PDF object is supposed to be created
long font = PDF->AddFont("Arial", false, false, false, false, fcDefault);
PDF->UseFont(font, 10);
PDF->ShowTextAt(10, 10, "This is a page in a newly created document.");
PDF->ShowTextAt(10, 20, "Now we append another document.");
PDF->Append("one.pdf", "");
PDF->SaveToFile("test.pdf", true);
// PDF object is supposed to be created
long font = PDF.AddFont("Arial", false, false, false, false, FontCharset.fcDefault);
PDF.UseFont(font, 10);
PDF.ShowTextAt(10, 10, "This is a page in a newly created document.");
PDF.ShowTextAt(10, 20, "Now we append another document.");
PDF.Append("one.pdf", "");
PDF.SaveToFile("test.pdf", true);
' PDF object is supposed to be created
font = PDF.AddFont("Arial", False, False, False, False, 1) 'fcDefault
PDF.UseFont font, 10
PDF.ShowTextAt 10, 10, "This is a page in a newly created document."
PDF.ShowTextAt 10, 20, "Now we append another document."
PDF.Append "one.pdf", ""
PDF.SaveToFile "test.pdf", true
Set PDF = nothing
See Also