Do you own a Debenu Quick PDF Library 12/11/10/9/8/7? Upgrade to Debenu Quick PDF Library 13!

Foxit Quick PDF Library

Frequently Asked Question:

Return to FAQ Index

Can I embed a file in a PDF?

Question

Can I embed a file in a PDF?

Answer

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";
qp.EmbedFile("JPG Test", Input, "image / jpeg");
qp.SaveToFile(Output);

© 2015 Debenu & Foxit. All rights reserved. AboutBuyContactBlogNewsletterSupportFAQProduct UpdatesForum