Frequently Asked Question:
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);