PDF Attachments

PDF Attachments are an essential feature of PDF Documents. It is possible to embedd any type of documents as attachments to PDF Documents.

With Aloaha there are different ways on how to attach a file to a PDF documents. 

It is possible just to drag&drop any files to the PDF preview screen after a document has been printed to the Wrocklage PDF Printer.

With the Aloaha PDF Editor it is possible to attach manual any file to the PDF Document. Files can be just dragged and dropped to the editor or embedded via the attachment command in the Editor Menu.

There is also an embedded command attachmentPDF to instruct Aloaha to included attachments while generating a PDF.

 


PDF Attachment API

With the Aloaha PDF Suite Enterprise Edition it is possible to automate the inclusion of files into PDF Documents. Please find the sample code below:


Dim PDF
Dim PDFFile
Dim path
Dim Description
Dim Mimetype


set PDF = createobject("aloahapdf.edit") 

'set PDF to be opened
PDFFile="C:\document.pdf"

'set the Attachment Description
Description="Business Card"

'define the file to be attached
path="c:\Businesscard.rtf"

If PDF.load_pdf_to_mem(cstr(PDFFile)) = true then

     If pdf.insertfile(CStr(Description), CStr(path),CStr(Mimetype)) = true Then 

          call PDF.save_pdf_to_file(cstr("c:\targetpdf.pdf")) 

     end If 

end if


set PDF = nothing


Aloaha Software / Knowledge Base / PDF SDK / PDF Attachments

Download Aloaha PDF Suite





PDF Editor inclusive!
create PDF Software

PDF Attachments

Any questions?
Aloaha Software - Software Development / PDF SDK / PDF Attachments
ProductsKnowledge BaseShopSupportPress
Deutsche VersionEnglish version