Knowledge Base - Attach file to a PDF

Using the following code you can attach a file to a PDF:


* Add a file as an attachment to PDF.
* @param filePath PDF file path
* @param attachmentPath the path of the file to be attached
* @return true in case of success, false otherwise
public static boolean addFileAttachment(String filePath, String attachmentPath) {
//init the library and activate the license
Document Document = new Document();
Document.Open(filePath, "");
//add the attachment
return Document.Save();
return false;
Applies To

RadaeePDF SDK for Android, RadaeePDF Master SDK


Created : 2020-10-01 09:02:44, Last Modified : 2020-10-01 09:09:35