ontocast.cli.pdfs_to_markdown¶
Convert PDFs to Markdown files that ontocast process reads back.
Markdown, not JSON: a JSON input is read as one paragraph, while a .md file
goes through the converter and keeps its headings, which section routing needs.
Attributes¶
logger = logging.getLogger(__name__)
module-attribute
¶
Functions:¶
main(input_path, output_path, prefix)
¶
Source code in ontocast/cli/pdfs_to_markdown.py
process(output_path, f)
¶
Write f converted to Markdown as <output_path>/<stem>.md.