for(auto type : {pdfa_XObject, pdfa_Pattern, pdfa_ExtGState})
{
...
}
///
pV = GetVarByPath(pD, {pdfa_SMask, pdfa_G, pdfa_Resources});
PdfStr5::PDFVariant GetVarByPath(PdfStr5::PDFVariant pVar, const std::initializer_list& path)
{
PdfStr5::PDFVariant* pRes = nullptr;
PdfStr5::PDFDictionary* pDict = pVar ? pVar->GetDictionary() : NULL;
for (auto key : path)
{
if (pDict == nullptr)
{
pRes = nullptr;
break;
}
Немає коментарів:
Дописати коментар