mirror of
https://github.com/foliojs/pdfkit.git
synced 2026-02-01 16:56:57 +00:00
16 lines
367 B
JavaScript
16 lines
367 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');
|
|
}
|
|
}
|
|
};
|