That will be outside the scope for ImageMagick. If anything is going to allow this sort of thing it is ghostscript. Hmm have a look at the script "ps2ascii" that comes with ghostscript.
Also "pdftotext"
You may need to modify these scripts to output positioning info with the text.
PDF conversion to GIF and text
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/