@Override public float getWidthFromFont(int code) throws IOException { PDType3CharProc charProc = getCharProc(code); if (charProc == null || charProc.getContentStream() == null || charProc.getContentStream().getLength() == 0) { return 0; } return charProc.getWidth(); }
if (widget.getAppearanceCharacteristics() != null || appearanceStream.getContentStream().getLength() == 0)
@Override public void put(COSObject indirect, PDXObject xobject) throws IOException { final int length = xobject.getStream().getLength(); if (length > environment.getMaxImageSize()) { LOG.trace("Not caching image with Size: {}", length); return; } if (xobject instanceof PDImageXObject) { PDImageXObject imageObj = (PDImageXObject) xobject; if (imageObj.getWidth() * imageObj.getHeight() > environment.getMaxImageSize()) { return; } } this.xobjects.put(indirect, new SoftReference<>(xobject)); } }
@Override public float getWidthFromFont(int code) throws IOException { PDType3CharProc charProc = getCharProc(code); if (charProc == null || charProc.getContentStream() == null || charProc.getContentStream().getLength() == 0) { return 0; } return charProc.getWidth(); }
int length = cidSet.getLength(); byte[] cidSetBytes = getCIDsFromCIDSet(stream, length);
if (widget.getAppearanceCharacteristics() != null || appearanceStream.getContentStream().getLength() == 0)
if (widget.getAppearanceCharacteristics() != null || appearanceStream.getContentStream().getLength() == 0)