String[] pagelabels = PdfPageLabels.getPageLabels(loader.getReader());
int i = 0;
TreeNodeFactory factory = loader.getNodes();
PdfTrailerTreeNode trailer = controller.getPdfTree().getRoot();
PdfObjectTreeNode catalog = factory.getChildNode(trailer, PdfName.ROOT);
PdfPagesTreeNode pages = (PdfPagesTreeNode)factory.getChildNode(catalog, PdfName.PAGES);
if (pages == null) {
return;
}
Enumeration p = pages.depthFirstEnumeration();
PdfObjectTreeNode child;
StringBuffer buf;
while (p.hasMoreElements()) {
child = (PdfObjectTreeNode)p.nextElement();
if (child instanceof PdfPageTreeNode) {