| 40 | } |
| 41 | |
| 42 | void PDFAttributeList::appendFloat(const std::string& owner, const std::string& name, float value) { |
| 43 | if (!attributes) { |
| 44 | attributes = MakePDFArray(); |
| 45 | } |
| 46 | auto attrDict = PDFDictionary::Make(); |
| 47 | attrDict->insertName("O", owner); |
| 48 | attrDict->insertScalar(name.c_str(), value); |
| 49 | attributes->appendObject(std::move(attrDict)); |
| 50 | } |
| 51 | |
| 52 | void PDFAttributeList::appendName(const std::string& owner, const std::string& name, |
| 53 | const std::string& value) { |
nothing calls this directly
no test coverage detected