/** * Translate a PRDictionary to a PdfDictionary. Also translate all of the * objects contained in it. */ protected PdfDictionary copyDictionary(PdfDictionary in) throws IOException, BadPdfFormatException { return copyDictionary(in, false, false); }
/** * Translate a PRDictionary to a PdfDictionary. Also translate all of the * objects contained in it. */ protected PdfDictionary copyDictionary(PdfDictionary in) throws IOException, BadPdfFormatException { return copyDictionary(in, false, false); }
switch (in.type) { case PdfObject.DICTIONARY: return copyDictionary((PdfDictionary)in, keepStruct, directRootKids); case PdfObject.INDIRECT: if (!keepStruct && !directRootKids)
switch (in.type) { case PdfObject.DICTIONARY: return copyDictionary((PdfDictionary)in, keepStruct, directRootKids); case PdfObject.INDIRECT: if (!keepStruct && !directRootKids)
if (tagged) structTreeRootReference = (PRIndirectReference)reader.getCatalog().get(PdfName.STRUCTTREEROOT); PdfDictionary newPage = copyDictionary(thePage); if (mergeFields) { ImportedPage importedPage = importedPages.get(importedPages.size() - 1);
if (tagged) structTreeRootReference = (PRIndirectReference)reader.getCatalog().get(PdfName.STRUCTTREEROOT); PdfDictionary newPage = copyDictionary(thePage); if (mergeFields) { ImportedPage importedPage = importedPages.get(importedPages.size() - 1);