1. Receive the PDF file path and optional output path.
2. Install dependencies (`npm install`) if not already installed.
3. Execute the `convert.cjs` script with the provided file and output parameters.
4. Parse the JSON output from the conversion script.
5. Check for success status and log any warnings.
6. Return the converted markdown file path and conversion statistics.