1. Home
  2. Foxit Quick PDF Library
  3. Can I embed a file in a PDF using 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);
Updated on April 10, 2017

Was this article helpful?

Related Articles

Ready to try Foxit PDF SDK?
Click the link below to download your trial
Free Trial

Leave a Comment