MCPcopy Create free account
hub / github.com/Tencent/tgfx / appendNodeIdArray

Method appendNodeIdArray

src/pdf/PDFMetadata.cpp:78–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78void PDFAttributeList::appendNodeIdArray(const std::string& owner, const std::string& name,
79 const std::vector<int>& nodeIds) {
80 if (!attributes) {
81 attributes = MakePDFArray();
82 }
83 auto attrDict = PDFDictionary::Make();
84 attrDict->insertName("O", owner);
85 auto pdfArray = MakePDFArray();
86 for (int nodeId : nodeIds) {
87 auto idString = PDFTagNode::nodeIdToString(nodeId);
88 pdfArray->appendTextString(idString);
89 }
90 attrDict->insertObject(name, std::move(pdfArray));
91 attributes->appendObject(std::move(attrDict));
92}
93
94/////////////////////////////////////////////////////////////////////////////////////////////////
95

Callers

nothing calls this directly

Calls 6

MakePDFArrayFunction · 0.85
MakeFunction · 0.85
insertNameMethod · 0.80
appendTextStringMethod · 0.80
insertObjectMethod · 0.80
appendObjectMethod · 0.80

Tested by

no test coverage detected