Copy link to clipboard
Copied
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
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
Copy link to clipboard
Copied
Have a look in Paragraph Styles under the Export Tagging tab.
Copy link to clipboard
Copied
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);
Copy link to clipboard
Copied
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…)
Copy link to clipboard
Copied
I have already defined this in several styles and unfortunately it does not change anything ...
Copy link to clipboard
Copied
delete
Copy link to clipboard
Copied
It should be epubExportPreference.tocStyleName
Copy link to clipboard
Copied
Sorry I misread your first screen capture,
Copy link to clipboard
Copied
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
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more