First off, you do not need that first Set Variable action - it serves no useful purpose so just delete it.
- To extract text from a readable pdf, refer to this thread from elsewhere in this forum:
Copy Text From Multiple PDF Into a New Numbers Spreadsheet
There you will see the solution to your requirement. - Obviously sticking “.md” as an extension to a file will not automagically convert it to markdown, it will just open in your default markdown editor. I don’t know how you would do that conversion.
- Markdown is simply a text file with special tags in it that control the way the file is eventually displayed with formatting. To convert anything to markdown, you need to obtain a text file with the original layout preserved - and then you can convert the layout to markdown tags. Your macro gives you the ability to obtain text from images (jpg and pdf) which you then need to feed into a markdown converter; there are online ones, but KM has no actions built-in to support that. I can’t help with that but as a start, search the KM forum as I know lots of other users employ markdown and so someone may already have addressed this task.
Good luck.