eDocEngine VCL
Create documents and reports in 18 formats
Compatibility
Delphi C++Builder

How to create a PDF document with multiple attachments in Delphi

Using eDocEngine VCL

Version 5 of eDocEngine VCL was released recently. One of the new features was the ability add multiple attachments to a document. Here is the sample code for it.

with gtPDFEngine1 do
begin
  Preferences.ShowSetupDialog := False;
  Preferences.OpenAfterCreate := False;
  FileName := 'e:\doc-with-attachments.pdf';
  Font.Size := 30;

  BeginDoc;
  BeginPara;
  TextOut('Hello, world!');
  EndPara;

  AttachFile('H:\api.png', 'api.png');
  AttachFile('H:\ap4.wmv', 'ap4.wmv');

  EndDoc;
end;

---o0O0o---

Our .NET Developer Tools
XtremeDocumentStudio .NET

Multi-format document-processing component suite for .NET developers.

PDFOne .NET

A .NET PDF component suite to create, edit, view, print, reorganize, encrypt, annotate, and bookmark PDF documents in .NET applications.

Our Delphi/C++Builder developer tools
XtremeDocumentStudio Delphi

Multi-format document-processing component suite for Delphi/C++Builder developers, covering both VCL and FireMonkey platforms.

eDocEngine VCL

A Delphi/C++Builder component suite for creating documents in over 20 formats and also export reports from popular Delphi reporting tools.

PDFtoolkit VCL

A Delphi/C++Builder component suite to edit, enhance, view, print, merge, split, encrypt, annotate, and bookmark PDF documents.

Our Java developer tools
XtremeDocumentStudio (for Java)

Multi-format document-processing component suite for Java developers.

PDFOne (for Java)

A Java PDF component suite to create, edit, view, print, reorganize, encrypt, annotate, bookmark PDF documents in Java applications.

Our Platform-Agnostic Cloud and On-Premises APIs
StarDocs

Cloud-hosted and On-Premises REST-based document-processing and document-viewing APIs

Privacy | Legal | Feedback | Newsletter | Blog | Resellers © 2002-2017 Gnostice Information Technologies Private Limited. All rights reserved.