@Override /** * Fill the CosDocument with some object that isn't set by the NonSequentialParser */ protected void initialParse() throws IOException { super.initialParse(); // For each ObjectKey, we check if the object has been loaded // useful for linearized PDFs Map<COSObjectKey, Long> xrefTable = document.getXrefTable(); for (Entry<COSObjectKey, Long> entry : xrefTable.entrySet()) { COSObject co = document.getObjectFromPool(entry.getKey()); if (co.getObject() == null) { // object isn't loaded - parse the object to load its content parseObjectDynamically(co, true); } } }
@Override /** * Fill the CosDocument with some object that isn't set by the NonSequentialParser */ protected void initialParse() throws IOException { super.initialParse(); // For each ObjectKey, we check if the object has been loaded // useful for linearized PDFs Map<COSObjectKey, Long> xrefTable = document.getXrefTable(); for (Entry<COSObjectKey, Long> entry : xrefTable.entrySet()) { COSObject co = document.getObjectFromPool(entry.getKey()); if (co.getObject() == null) { // object isn't loaded - parse the object to load its content parseObjectDynamically(co, true); } } }
@Override /** * Fill the CosDocument with some object that isn't set by the NonSequentialParser */ protected void initialParse() throws IOException { super.initialParse(); // For each ObjectKey, we check if the object has been loaded // useful for linearized PDFs Map<COSObjectKey, Long> xrefTable = document.getXrefTable(); for (Entry<COSObjectKey, Long> entry : xrefTable.entrySet()) { COSObject co = document.getObjectFromPool(entry.getKey()); if (co.getObject() == null) { // object isn't loaded - parse the object to load its content parseObjectDynamically(co, true); } } }