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

EPUB layout reflowable export options

Enthusiast ,
Mar 27, 2020 Mar 27, 2020

Hi,

I don't find in EPubExportPreference the property for turn on "Based on Paraghap Style export Tags".

An idea where I could find this property ?

Regards

 

InDesign_to_ePub_Reflowable.jpg

TOPICS
EPUB , Scripting
1.5K
Translate
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

Enthusiast , Mar 28, 2020 Mar 28, 2020

Hi,

I found the solution, set the property paragraphStyleName with empty string.

 

mDoc = app.documents[0];
with(mDoc.epubExportPreferences){       
    /*SPLIT DOCUMENT*/
    breakDocument = true;
    paragraphStyleName = ''; // name of paragraph style to break InDesign document
    /*VERSION*/
    version = EpubVersion.EPUB2;
}
var mFile = File('/Users/rhanot/Downloads/test.epub');
mDoc.exportFile(ExportFormat.EPUB, mFile, false);

 


Thanks for your help

Translate
Community Expert ,
Mar 27, 2020 Mar 27, 2020

Have a look in Paragraph Styles under the Export Tagging tab.

Translate
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
Enthusiast ,
Mar 27, 2020 Mar 27, 2020

Hi Derek,

I think I was not precise enough in my request 😉
My problem is not setting the paragraph style but how to set this property with a script

 

mDoc = app.documents[0];

with(mDoc.epubExportPreferences){       
    /*SPLIT DOCUMENT*/
    breakDocument = true;
    //paragraphStyleName = '' // name of paragraph style to break InDesign document

    // ???? property ???? Based on Paraghap Style export Tags 
    
    /*VERSION*/
    version = EpubVersion.EPUB2;
}

var mFile = File('/Users/rhanot/Downloads/test.epub');
mDoc.exportFile(ExportFormat.EPUB, mFile, false);

 

Options_de_style_de_paragraphe.jpg

Translate
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 ,
Mar 27, 2020 Mar 27, 2020

It's a ParagraphStyle property:

splitDocument

Boolean 

read/write

Split Document (EPUB only)

 

My guess is that if you have set this in at least one style, you'll get the behavior from that dialog box.

 

(It actually invites the question what happens when you set it on multiple styles…)

Translate
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
Enthusiast ,
Mar 28, 2020 Mar 28, 2020

I have already defined this in several styles and unfortunately it does not change anything ...

Translate
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
Enthusiast ,
Mar 28, 2020 Mar 28, 2020

delete

Translate
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 ,
Mar 28, 2020 Mar 28, 2020

It should be epubExportPreference.tocStyleName

 

Translate
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 ,
Mar 28, 2020 Mar 28, 2020

Sorry I misread your first screen capture,

Translate
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
Enthusiast ,
Mar 28, 2020 Mar 28, 2020
LATEST

Hi,

I found the solution, set the property paragraphStyleName with empty string.

 

mDoc = app.documents[0];
with(mDoc.epubExportPreferences){       
    /*SPLIT DOCUMENT*/
    breakDocument = true;
    paragraphStyleName = ''; // name of paragraph style to break InDesign document
    /*VERSION*/
    version = EpubVersion.EPUB2;
}
var mFile = File('/Users/rhanot/Downloads/test.epub');
mDoc.exportFile(ExportFormat.EPUB, mFile, false);

 


Thanks for your help

Translate
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