From what I understood, it seems that the image is containing text and you want to convert it to PDF. Is this correct?
If yes, you will need to use the OCR for that. OCR will recognize characters from the image and saves is as PDF. I know a third-party SDK that support OCRing images and save them as PDF. There is an online demo you can try. Here is the link for the demo:
Online Recognition Demo