Image to Text PDF Turn a finished raster image into a PDF while preserving the image exactly and adding a transparent text layer for selection, copying, and search. Workflow 1. Get the complete image. - Treat the image as the visual source of truth. - Keep the original image dimensions; the layout coordinates should use the same pixel coordinate space whenever possible. 2. Build a text-layer layout JSON. - Prefer OCR or a vision model that returns text boxes over trying to infer positions manually. - Use the user's source text to correct OCR transcription. OCR boxes determine position; the so…