| 50 | } |
| 51 | |
| 52 | void PDFAttributeList::appendName(const std::string& owner, const std::string& name, |
| 53 | const std::string& value) { |
| 54 | if (!attributes) { |
| 55 | attributes = MakePDFArray(); |
| 56 | } |
| 57 | auto attrDict = PDFDictionary::Make(); |
| 58 | attrDict->insertName("O", owner); |
| 59 | attrDict->insertName(name.c_str(), value); |
| 60 | attributes->appendObject(std::move(attrDict)); |
| 61 | } |
| 62 | |
| 63 | void PDFAttributeList::appendFloatArray(const std::string& owner, const std::string& name, |
| 64 | const std::vector<float>& value) { |
nothing calls this directly
no test coverage detected