| 61 | } |
| 62 | |
| 63 | void PDFAttributeList::appendFloatArray(const std::string& owner, const std::string& name, |
| 64 | const std::vector<float>& value) { |
| 65 | if (!attributes) { |
| 66 | attributes = MakePDFArray(); |
| 67 | } |
| 68 | auto attrDict = PDFDictionary::Make(); |
| 69 | attrDict->insertName("O", owner); |
| 70 | auto pdfArray = MakePDFArray(); |
| 71 | for (float element : value) { |
| 72 | pdfArray->appendScalar(element); |
| 73 | } |
| 74 | attrDict->insertObject(name, std::move(pdfArray)); |
| 75 | attributes->appendObject(std::move(attrDict)); |
| 76 | } |
| 77 | |
| 78 | void PDFAttributeList::appendNodeIdArray(const std::string& owner, const std::string& name, |
| 79 | const std::vector<int>& nodeIds) { |
nothing calls this directly
no test coverage detected