@e3HQ67S, No - I did not experience such a life-pan heuristic on my testing machines with their AVs. I think it's more a question of the actual AV, which is in use.
@LHYX1, The greater question now is, how to put that code (or bind it to) a PDF or an image? I looked over your code a little and thought of implementing /windows/fileformat/adobe_pdf_embedded_exe as the eighth choice. Would it be OK with you, if I'd mod your code a little to publish it afterwards right here? (If I'll do it). That way, a binded PDF-File could be put out right after the encoding.