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

JSON in InDesign

Explorer ,
Dec 09, 2018 Dec 09, 2018

Copy link to clipboard

Copied

Dear All,

Is possible to extract the indesign information as json ? If possible means let explain the process of extracting the json?

Regards,

Prakash Chinnsamy

TOPICS
Scripting

Views

8.2K

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
Community Expert ,
Dec 10, 2018 Dec 10, 2018

Copy link to clipboard

Copied

Hi Prakash,

can you tell more about your intended workflow?

E.g. what do you mean by "indesign information"?

Search the forums:

InDesign Scripting

Extensions / Add-ons Development

Regards,
Uwe

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
Explorer ,
Dec 10, 2018 Dec 10, 2018

Copy link to clipboard

Copied

Hi Laubender,

I need to extract the InDesign paragraph (font, style, formatting) and character (style, font, formatting ) formats and other formats like paragraph index, index etc.,

Regards,

Prakash C

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
Community Beginner ,
Dec 10, 2018 Dec 10, 2018

Copy link to clipboard

Copied

Hi,

We don't have direct option in InDesign to extract the required details as JSON, instead you can develop the script to create the JSON file and then updating the same with required details.

Hope this helps.

Thanks,

Praveen

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
Community Expert ,
Dec 10, 2018 Dec 10, 2018

Copy link to clipboard

Copied

Moving to InDesign Scripting

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
Community Expert ,
Dec 10, 2018 Dec 10, 2018

Copy link to clipboard

Copied

There is no api to export any information out of InDesign in JSON format. But creating JSON is not a tough task you need to identify information you need to extract from InDesign document like for ex. you mentioned information about paragraph style, and then finalize on a JSON format that you need to export out the data. Once the format is finalised its just a matter of querying information from  InDesign and creating the JSON string. If you have any difficulty getting any property out of InDesign let us know we can help you in that, but be specific on what you need a generic statement like indesign information does not help.

-Manan

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
Participant ,
Dec 10, 2018 Dec 10, 2018

Copy link to clipboard

Copied

What information do you need? Image names and page location? Stories and page location? Document settings? All the information is available you would just need to parse through what you need and write to a JSON formatted file or sent to a database.

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
Community Expert ,
Dec 11, 2018 Dec 11, 2018

Copy link to clipboard

Copied

Hi together,

obviously this discussion continues here:

IDML to JSON

Regards,
Uwe

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
Community Expert ,
Dec 11, 2018 Dec 11, 2018

Copy link to clipboard

Copied

LATEST

prakashc39562731

please don't open similar kind of multiple threads and also make sure you participate in the discussion and update back with your findings so that others with similar issues could benefit from the discussion on the thread. Together we should aim at making the information in the thread as usable as possible to the next user who lands at it.

Hope that makes sense

-Manan

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