import java.util.Map;
import java.util.function.Supplier;
+import org.apache.logging.log4j.LogManager;
+import org.apache.logging.log4j.Logger;
import org.apache.poi.ddf.EscherRecord;
import org.apache.poi.ddf.EscherRecordFactory;
import org.apache.poi.ddf.EscherSerializationListener;
* the slide layout as specified in the SlideAtom record.
*/
public class EscherPlaceholder extends EscherRecord {
+ private static final Logger LOG = LogManager.getLogger(EscherPlaceholder.class);
+
public static final short RECORD_ID = RecordTypes.OEPlaceholderAtom.typeID;
public static final String RECORD_DESCRIPTION = "msofbtClientTextboxPlaceholder";
size = data[offset+13];
unused = LittleEndian.getShort(data, offset+14);
- assert(bytesRemaining + 8 == 16);
+ if (bytesRemaining + 8 != 16) {
+ LOG.warn("Invalid header-data received, should have 8 bytes left, but had: " + bytesRemaining);
+ }
+
return bytesRemaining + 8;
}