We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.
I'm new to Indesign scripting development.
I have batch of grouping paragraph styles in my indd file. Is there anyway to export these existing styles into css?
After surfacing discussion, the first approach is directly export my indd file from Indesign console. Yet, the idGeneratedStyles.css doesn't cover all styles shown in indd file.
The result shows as below:
Any thought will be appreciated
Export as HTML or as EPUB, you will find your exported CSS there.
Thanks for response.
I might not clearly describe my question. Besides we export css from Indesign, we have to ensure every paragraph/character style in Indd file will be retained.
CSS is not the mean to retain character and paragraph style to remain. Only InDesign and InCopy themselves will do it.
Tell us, what you want to accomplish?
The method I want is exporting paragraph/character style as css file. For example, in the indesign, we can add size, font, color within text. In addition, we can recognize size as font-size, font as font-family in css. Hence, there is a way to export paragraph/character style from Indesign, and convert there styles into css.
Hm. A huge task.
There are about 330 property/value pairs for formatting text.
You have to write your own routines to do that.
The real problems come with nested formatting like nested line styles, nested styles and especially GREP styles.
Perhaps it could help to see into the XML code of snippet files and IDML files.
( ACP )
Thanks for hint. For now, my solution is graping HTML style from IDML files.
On the other hand, nested line styles, nested styles might be faced in the future.