return "No XObjects"; for (PdfName entryName : xobjects.getKeys()) { PdfStream xobjectStream = xobjects.getAsStream(entryName);
return "No XObjects"; for (PdfName entryName : xobjects.getKeys()) { PdfStream xobjectStream = xobjects.getAsStream(entryName);
if (fonts != null) { for (PdfName curFontName : fonts.keySet()) { PRStream curFont (PRStream)= fonts.getAsStream(curFontName); if (desiredName.equals(curFont.getAsString(PdfName.BASEFONT).toString()) { return (PRIndirectReference) curFont.getIndirectReference(); if (xobjs != null) { for (PdfName curXObjName : xobjs.keySet()) { PRStream curXObj = (PRStream)xobjs.getAsStream(curXObjName); if (curXObj != null && PdfName.FORM.equals(curXObj.getAsName(PdfName.SUBTYPE)) { PdfDictionary resources = curXObj.getAsDict(PdfName.RESOURCES);
protected void readColorProfile() { PdfObject outputIntents = reader.getCatalog().getAsArray(PdfName.OUTPUTINTENTS); if (outputIntents != null && ((PdfArray) outputIntents).size() > 0) { PdfStream iccProfileStream = null; for (int i = 0; i < ((PdfArray) outputIntents).size(); i++) { PdfDictionary outputIntentDictionary = ((PdfArray) outputIntents).getAsDict(i); if (outputIntentDictionary != null) { iccProfileStream = outputIntentDictionary.getAsStream(PdfName.DESTOUTPUTPROFILE); if (iccProfileStream != null) break; } } if (iccProfileStream instanceof PRStream) { try { colorProfile = ICC_Profile.getInstance(PdfReader.getStreamBytes((PRStream) iccProfileStream)); } catch (IOException exc) { throw new ExceptionConverter(exc); } } } }
protected void readColorProfile() { PdfObject outputIntents = reader.getCatalog().getAsArray(PdfName.OUTPUTINTENTS); if (outputIntents != null && ((PdfArray) outputIntents).size() > 0) { PdfStream iccProfileStream = null; for (int i = 0; i < ((PdfArray) outputIntents).size(); i++) { PdfDictionary outputIntentDictionary = ((PdfArray) outputIntents).getAsDict(i); if (outputIntentDictionary != null) { iccProfileStream = outputIntentDictionary.getAsStream(PdfName.DESTOUTPUTPROFILE); if (iccProfileStream != null) break; } } if (iccProfileStream instanceof PRStream) { try { colorProfile = ICC_Profile.getInstance(PdfReader.getStreamBytes((PRStream) iccProfileStream)); } catch (IOException exc) { throw new ExceptionConverter(exc); } } } }
protected void readColorProfile() { PdfObject outputIntents = reader.getCatalog().getAsArray(PdfName.OUTPUTINTENTS); if (outputIntents != null && ((PdfArray) outputIntents).size() > 0) { PdfStream iccProfileStream = null; for (int i = 0; i < ((PdfArray) outputIntents).size(); i++) { PdfDictionary outputIntentDictionary = ((PdfArray) outputIntents).getAsDict(i); if (outputIntentDictionary != null) { PdfName gts = outputIntentDictionary.getAsName(PdfName.S); if (iccProfileStream == null || PdfName.GTS_PDFA1.equals(gts)) { iccProfileStream = outputIntentDictionary.getAsStream(PdfName.DESTOUTPUTPROFILE); if (iccProfileStream != null && PdfName.GTS_PDFA1.equals(gts)) break; } } } if (iccProfileStream instanceof PRStream) { try { colorProfile = ICC_Profile.getInstance(PdfReader.getStreamBytes((PRStream)iccProfileStream)); } catch(IOException exc) { throw new ExceptionConverter(exc); } } } }
(PdfDictionary) PdfReader.getPdfObject(obj1) : (PdfDictionary) obj1; PdfObject obj = appDic.get(PdfName.N); PdfDictionary objDict = appDic.getAsStream(PdfName.N); PdfAppearance app = null; PdfObject objReal = PdfReader.getPdfObject(obj);
(PdfDictionary) PdfReader.getPdfObject(obj1) : (PdfDictionary) obj1; PdfObject obj = appDic.get(PdfName.N); PdfDictionary objDict = appDic.getAsStream(PdfName.N); PdfAppearance app = null; PdfObject objReal = PdfReader.getPdfObject(obj);
PdfObject as_n = null; if (appDic != null) { as_n = appDic.getAsStream(PdfName.N); if (as_n == null) as_n = appDic.getAsDict(PdfName.N);
as_n = appDic.getDirectObject(PdfName.N); if (as_n == null) as_n = appDic.getAsStream(PdfName.N); if (as_n == null) as_n = appDic.getAsDict(PdfName.N);