| 48 | } |
| 49 | |
| 50 | void AddSubDictionary(const std::vector<PDFIndirectReference>& resourceList, PDFResourceType type, |
| 51 | PDFDictionary* destination) { |
| 52 | if (!resourceList.empty()) { |
| 53 | auto resources = PDFDictionary::Make(); |
| 54 | for (auto ref : resourceList) { |
| 55 | resources->insertRef(GetResourceName(type, ref.value), ref); |
| 56 | } |
| 57 | destination->insertObject(ResourceName(type), std::move(resources)); |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | } // namespace |
| 62 |
no test coverage detected