Foxit Quick PDF Library

Can I embed a file in a PDF using Foxit Quick PDF Library?

Yes, you can easily embed a file in a PDF using the EmbedFile function. This will embed the file (any file type) in a PDF document and then make that file accessible from within the PDF via the attachment panel.

This C# sample code demonstrates how easy it is to embed a file within a PDF.

string Input = @"C:\temp\PICT1454.JPG";
string Output = @"C:\temp\embed-file.pdf";
DPL.EmbedFile("JPG Test", Input, "image / jpeg");
DPL.SaveToFile(Output);

This article refers to a deprecated product. If you are looking for support for Foxit PDF SDK, please click here.

Updated on May 16, 2022

Was this article helpful?
Thanks for your feedback. If you have a comment on how to improve the article, you can write it here: