Has anybody ever tried inserting a .pdf into a cell comment?

I have a list of .jpg ,this code inserts the picture into the cell comment.
Please Login or Register  to view this content.
But it will not work for a list of .PDF, the comment just appears blank.