Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for structured json output? #43

Open
SaidKhudoyan opened this issue Jan 26, 2025 · 0 comments
Open

Support for structured json output? #43

SaidKhudoyan opened this issue Jan 26, 2025 · 0 comments

Comments

@SaidKhudoyan
Copy link

Hi there, does magic-doc also support outputting a structured json file (like in magic-pdf/minerU) which e.g shows the content this way:

[
  {
    "type": "text",
    "text": "EXAMPLE TITLE ",
    "text_level": 1,
    "page_idx": 0
  },
  {
    "type": "text",
    "text": "SOME TEXT ABOUT THE DOC ",
    "page_idx": 0
  },
  {
    "type": "text",
    "text": "SOME DETECTED SUBHEADER: ",
    "text_level": 1,
    "page_idx": 0
  },

Would be great if one could get a output also this way, as this would allign well if one has a mix of pdfs and word documents and wants to get structured jsons for all instead of markdowns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant