Interface: ISurfacesFromMultipageTemplate
A structure holding settings to create a set of template-based surfaces.
Remarks
This interface uses pages of an IDML template. For details, see the Loading Multipage Products topic.
Example
const productDefinition = {
surfaces: {
// Get surfaces from the three-page template "BookCover.idml".
file: "BookCover",
// Name the surfaces.
names: ["Front cover", "Endpapers", "Back cover"],
},
};
Extends
Properties
name?
optionalname?:string
A name of a surface (a page) in the product.
Remarks
In multipage products, it allows you to use a name mask for product surfaces. If this string contains the {0} placeholder, it will be replaced with a page number, starting from 1. For example, name: "Page {0}" specifies the following page captions in the Bottom toolbar: Page 1, Page 2, and so on.
Inherited from
foldingLines?
optionalfoldingLines?:IFoldingLine[]
A collection of folding lines defined in the surface (page).
Inherited from
IBaseSurfacesDefinition.foldingLines
spines?
optionalspines?:ISpine[]
A collection of spines defined in the surface (page).
Inherited from
IBaseSurfacesDefinition.spines
bgFoldingMode?
optionalbgFoldingMode?:IBgFoldingModeParams
Parameters of the background folding mode.
Inherited from
IBaseSurfacesDefinition.bgFoldingMode
proofImage?
optionalproofImage?:IProofImage
Settings of proof images.
Inherited from
IBaseSurfacesDefinition.proofImage
names?
optionalnames?:string[]
An array of surface names. The number of array elements must match the number of surfaces. Otherwise, the default page captions appear in the Bottom toolbar.
Inherited from
file?
optionalfile?:string
The name of an IDML template.
pageTemplates?
optionalpageTemplates?:IPageTemplate[]
Product mockups.
hiResOutput?
optionalhiResOutput?:IHiResOutput
Settings of the hi-res output.