MaxLen separately for field and parent

This commit is contained in:
Svetlana Kulikova
2025-04-11 16:09:29 +03:00
parent aaeb745ad3
commit ac300f57a6
7 changed files with 29 additions and 5 deletions

View File

@ -1132,6 +1132,8 @@ bool CWidgetsInfo::Read(NSOnlineOfficeBinToPdf::CBufferReader* pReader, IMetafil
}
}
}
if (nFlags & (1 << 9))
pParent->nMaxLen = pReader->ReadInt();
m_arrParents.push_back(pParent);
}

View File

@ -567,6 +567,7 @@ public:
{
int nID;
int nFlags;
int nMaxLen;
int nParentID;
int nFieldFlag;
std::wstring sName;

View File

@ -616,6 +616,8 @@ CFile.prototype["getInteractiveFormsInfo"] = function()
readAction(reader, rec["AA"][AAType]);
}
}
if (flags & (1 << 9))
rec["maxLen"] = reader.readInt();
res["Parents"].push(rec);
}

View File

@ -351,7 +351,7 @@ void ReadInteractiveForms(BYTE* pWidgets, int& i)
{
nPathLength = READ_INT(pWidgets + i);
i += 4;
std::cout << "Parent " << nPathLength;
std::cout << "Parent " << nPathLength << ", ";
}
if (nFlags & (1 << 5))
{
@ -392,7 +392,7 @@ void ReadInteractiveForms(BYTE* pWidgets, int& i)
{
nPathLength = READ_INT(pWidgets + i);
i += 4;
std::cout << "Ff " << nPathLength;
std::cout << "Ff " << nPathLength << ", ";
}
if (nFlags & (1 << 8))
{
@ -410,6 +410,12 @@ void ReadInteractiveForms(BYTE* pWidgets, int& i)
}
std::cout << std::endl;
}
if (nFlags & (1 << 9))
{
nPathLength = READ_INT(pWidgets + i);
i += 4;
std::cout << "MaxLen " << nPathLength << ", ";
}
std::cout << std::endl;
}