• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

PDF Extract API: JSON output file no indent

New Here ,
Dec 27, 2023 Dec 27, 2023

Copy link to clipboard

Copied

Please, could I ask if the Extract API JSON output file is indented?

I ran successfully the the following Python code provided in the website: "Extract Text and tables (w/ Tables and Figures Renditions)"

I got the tables, the pictures and the JSON file. However, the JSON file is not indented. I do not know if it is expected to be so I ask just in case. 

Please, find attached the pdf and the JSON file.

Thank you very much 🙂

Views

330

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Jan 02, 2024 Jan 02, 2024

Check your editor, or how you view JSON files in general. I use Visual Studio Code and it can pretty up JSON nicely.

Votes

Translate

Translate
Adobe Employee ,
Jan 02, 2024 Jan 02, 2024

Copy link to clipboard

Copied

White space and indentations do not matter in a JSON file. Are you asking if the JSON file contains _information_ about indentations in the PDF? If so, that's a different question.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 02, 2024 Jan 02, 2024

Copy link to clipboard

Copied

Hi Raymond,

Thank you very much for your quick response 🙂

It was only that for me it is easier to check at a first view if the
information is correctly extracted when the JSON file is indented.

As I was reading some posts in the Forum with indented JSON files attached
so I thought that maybe the service was providing indented JSON files too.

Again, thank you very much.

Regards,
Maria

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jan 02, 2024 Jan 02, 2024

Copy link to clipboard

Copied

Check your editor, or how you view JSON files in general. I use Visual Studio Code and it can pretty up JSON nicely.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 02, 2024 Jan 02, 2024

Copy link to clipboard

Copied

LATEST
Thanks! I will do so 🙂

Please, I am going to post a new message regarding keeping the shaded rows
in tables when extracting them. I was wondering if future features in
Extract API could do it.

Cheers,
Maria

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources