Merge pull request #4876 from tsiegleauq/refactor-PDF-TOC
Fix PDF TOC header
This commit is contained in:
commit
d330a4ca97
@ -132,7 +132,7 @@ export class MotionPdfCatalogService {
|
||||
body: [
|
||||
[
|
||||
{
|
||||
text: category.getTitle(),
|
||||
text: category.nameWithParentAbove,
|
||||
style: !!category.parent ? 'tocSubcategoryTitle' : 'tocCategoryTitle'
|
||||
}
|
||||
]
|
||||
@ -158,7 +158,12 @@ export class MotionPdfCatalogService {
|
||||
}
|
||||
|
||||
catTocBody.push(
|
||||
this.pdfService.createTocTableDef(tocBody, StyleType.CATEGORY_SECTION, layout, header)
|
||||
this.pdfService.createTocTableDef(
|
||||
tocBody,
|
||||
StyleType.CATEGORY_SECTION,
|
||||
layout,
|
||||
header ? JSON.parse(JSON.stringify(header)) : null
|
||||
)
|
||||
);
|
||||
|
||||
catTocBody.push(this.pdfService.getPageBreak());
|
||||
|
Loading…
Reference in New Issue
Block a user