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
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:
Extensions / Add-ons Development
Regards,
Uwe
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
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
Copy link to clipboard
Copied
Moving to InDesign Scripting
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
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.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
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