I am a trying to write a hobby project that allows users to package files like pdf (later docx) as executables that can be viewed on other machines without pdf readers. The most common way is to convert it into another format (for which you have an application installed).
I am thinking about creating an ".exe". The idea is to develop a C application that takes pdf file as input and makes the functions calls that a pdf-reader (library not yet decided) makes to "open" & "display" a pdf.
Then I can compile this into an ".exe" that can be run on any PC to display this particular file.
I just wanted to ask you guys if this makes sense or is utterly stupid?