feature: vor und nachteile

This commit is contained in:
Hikyu
2026-05-31 13:54:31 +02:00
parent 552a947a1c
commit e3dad17446
23270 changed files with 3024794 additions and 200 deletions
@@ -0,0 +1,24 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createOutlineNodeFactory = void 0;
function createOutlineNodeFactory(_) {
const { PDFDict, PDFName } = _;
return function createOutlineNode(doc, _) {
const map = new Map();
map.set(PDFName.Title, _.Title);
map.set(PDFName.Parent, _.Parent);
if (_.Prev !== undefined)
map.set(PDFName.of("Prev"), _.Prev);
if (_.Next !== undefined)
map.set(PDFName.of("Next"), _.Next);
if (_.First !== undefined)
map.set(PDFName.of("First"), _.First);
if (_.Last !== undefined)
map.set(PDFName.of("Last"), _.Last);
if (_.Count !== undefined)
map.set(PDFName.of("Count"), _.Count);
map.set(PDFName.of("Dest"), _.Dest);
return PDFDict.fromMapWithContext(map, doc.context);
};
}
exports.createOutlineNodeFactory = createOutlineNodeFactory;