/** * Checks if the PDF is a tagged PDF. */ public boolean isTagged() { PdfDictionary markInfo = catalog.getAsDict(PdfName.MARKINFO); if (markInfo == null) return false; if ( PdfBoolean.PDFTRUE.equals(markInfo.getAsBoolean(PdfName.MARKED))) { return catalog.getAsDict(PdfName.STRUCTTREEROOT) != null; } else { return false; } }
/** * Checks if the PDF is a tagged PDF. */ public boolean isTagged() { PdfDictionary markInfo = catalog.getAsDict(PdfName.MARKINFO); if (markInfo == null) return false; if ( PdfBoolean.PDFTRUE.equals(markInfo.getAsBoolean(PdfName.MARKED))) { return catalog.getAsDict(PdfName.STRUCTTREEROOT) != null; } else { return false; } }
if (kn != null) k = kn.intValue(); PdfBoolean bo = param.getAsBoolean(PdfName.BLACKIS1); if (bo != null) blackIs1 = bo.booleanValue(); bo = param.getAsBoolean(PdfName.ENCODEDBYTEALIGN); if (bo != null) byteAlign = bo.booleanValue();
if (kn != null) k = kn.intValue(); PdfBoolean bo = param.getAsBoolean(PdfName.BLACKIS1); if (bo != null) blackIs1 = bo.booleanValue(); bo = param.getAsBoolean(PdfName.ENCODEDBYTEALIGN); if (bo != null) byteAlign = bo.booleanValue();
if (markInfo == null || markInfo.getAsBoolean(PdfName.MARKED) == null || markInfo.getAsBoolean(PdfName.MARKED).booleanValue() == false) { throw new PdfAConformanceException(obj1, MessageLocalization.getComposedMessage("document.catalog.dictionary.shall.include.a.markinfo.dictionary.whose.entry.marked.shall.have.a.value.of.true"));
if (top == null) return; PdfBoolean needappearances = top.getAsBoolean(PdfName.NEEDAPPEARANCES); if (needappearances == null || !needappearances.booleanValue()) setGenerateAppearances(true);
if (top == null) return; PdfBoolean needappearances = top.getAsBoolean(PdfName.NEEDAPPEARANCES); if (needappearances == null || !needappearances.booleanValue()) setGenerateAppearances(true);
newButton.setIconVerticalAdjustment(bottom); PdfBoolean fb = ifit.getAsBoolean(PdfName.FB); if (fb != null && fb.booleanValue()) newButton.setIconFitToBounds(true);
newButton.setIconVerticalAdjustment(bottom); PdfBoolean fb = ifit.getAsBoolean(PdfName.FB); if (fb != null && fb.booleanValue()) newButton.setIconFitToBounds(true);
if (markInfo == null || markInfo.getAsBoolean(PdfName.MARKED) == null || markInfo.getAsBoolean(PdfName.MARKED).booleanValue() == false) { throw new PdfAConformanceException(obj1, MessageLocalization.getComposedMessage("document.catalog.dictionary.shall.include.a.markinfo.dictionary.whose.entry.marked.shall.have.a.value.of.true"));