mirror of
https://github.com/foliojs/pdfkit.git
synced 2025-12-08 20:15:54 +00:00
16 lines
399 B
JavaScript
16 lines
399 B
JavaScript
import PDFOutline from '../outline';
|
|
|
|
export default {
|
|
initOutline() {
|
|
return this.outline = new PDFOutline(this, null, null, null);
|
|
},
|
|
|
|
endOutline() {
|
|
this.outline.endOutline();
|
|
if (this.outline.children.length > 0) {
|
|
this._root.data.Outlines = this.outline.dictionary;
|
|
return this._root.data.PageMode = 'UseOutlines';
|
|
}
|
|
}
|
|
};
|