3D annotation - finishing

This commit is contained in:
Jakub Melka
2020-04-10 20:52:05 +02:00
parent a87670df1d
commit 0efc4bb40b
6 changed files with 323 additions and 2 deletions

View File

@ -635,6 +635,26 @@ std::vector<QByteArray> PDFDocumentDataLoaderDecorator::readStringArrayFromDicti
return std::vector<QByteArray>();
}
QStringList PDFDocumentDataLoaderDecorator::readTextStringList(const PDFObject& object)
{
QStringList result;
const PDFObject& dereferencedObject = m_storage->getObject(object);
if (dereferencedObject.isArray())
{
const PDFArray* array = dereferencedObject.getArray();
const size_t count = array->getCount();
result.reserve(int(count));
for (size_t i = 0; i < count; ++i)
{
result << readTextString(array->getItem(i), QString());
}
}
return result;
}
std::vector<QByteArray> PDFDocumentDataLoaderDecorator::readStringArray(const PDFObject& object) const
{
const PDFObject& dereferencedObject = m_storage->getObject(object);