| 76 | } |
| 77 | |
| 78 | void 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 |
nothing calls this directly
no test coverage detected