A tool to combine a PDF and a JPG into one polyglot file which is both a PDF and JPG. The tool is based on Ange Albertini's PoC from PoC||GTFO 0x03.
Compile the tool by running
make
Then, just run
./pdfjpg <pdf file> <jpg file> <output file>
to generate a file which is both a PDF and a JPG file. See PoC||GTFO 0x03 for more details.
Acrobat Reader since version 10 cannot open the resulting PDF.