Support indirect objects
This commit is contained in:
parent
8c49c53dde
commit
29a93e2cfc
|
@ -33,11 +33,17 @@ namespace uPDFParser
|
||||||
std::stringstream res;
|
std::stringstream res;
|
||||||
|
|
||||||
res << _objectId << " " << _generationNumber << " obj\n";
|
res << _objectId << " " << _generationNumber << " obj\n";
|
||||||
|
if (isIndirect())
|
||||||
|
res << " " << indirectOffset << "\n";
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (!_dictionary.empty())
|
||||||
res << _dictionary.str();
|
res << _dictionary.str();
|
||||||
|
|
||||||
std::vector<DataType*>::iterator it;
|
std::vector<DataType*>::iterator it;
|
||||||
for(it=_data.begin(); it!=_data.end(); it++)
|
for(it=_data.begin(); it!=_data.end(); it++)
|
||||||
res << (*it)->str();
|
res << (*it)->str();
|
||||||
|
}
|
||||||
|
|
||||||
res << "endobj\n";
|
res << "endobj\n";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user