I want to include raw source code text that can be extracted from a PDF.
It looks like this might be possible using PDF layers or OCQ or some kind of accessible option but I can't find a TeX package. The source code does not have to be visible.
I have created my own "chunk" tags in latex that properly quotes blocks of code and I have a tool that will extract ("tangle") the code from the latex file. I want to extract the code from the PDF.
The goal is to be able to send someone a literate program PDF and give them a command line tool to extract the source code.