Does anyone have advice on converting "hexstring" objects to ascii? I'm using CAM::PDF to extract individual "Tj" and "TJ" commands. Sometimes they have a "string" argument that's just plain ASCII, in which case everything works great. In other cases, though, the string is of type "hexstring," and printing those characters out gives me garbage. This seems to happen for lines that have "smart quotes." The pdftotext tool handles the conversion just fine so I don't think it's a problem with the PDF. I'm assuming this means that the strings are in some non-ASCII encoding. Does anyone have pointers to code for converting these strings to ASCII?
Thanks a lot.