MCPcopy Create free account
hub / github.com/Tencent/tgfx / MakePDFId

Method MakePDFId

src/pdf/PDFMetadataUtils.cpp:156–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156std::unique_ptr<PDFObject> PDFMetadataUtils::MakePDFId(const UUID& doc, const UUID& instance) {
157 // /ID [ <81b14aafa313db63dbd6f981e49f94f4>
158 // <81b14aafa313db63dbd6f981e49f94f4> ]
159 auto array = MakePDFArray();
160 static_assert(sizeof(UUID) == 16, "uuid_size");
161 array->appendTextString(
162 std::string(reinterpret_cast<const char*>(doc.data.data()), sizeof(UUID)));
163 array->appendTextString(
164 std::string(reinterpret_cast<const char*>(instance.data.data()), sizeof(UUID)));
165 return array;
166}
167
168namespace {
169uint32_t CountXMLEscapeSize(const std::string& input) {

Callers

nothing calls this directly

Calls 3

MakePDFArrayFunction · 0.85
appendTextStringMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected