System.out.println(" Content head:");
printContentObjects(contents,0,0);
// 3. Showing page resources information...
{
Resources resources = page.getResources();
System.out.println(" Resources:");
Map<PdfName, ? extends PdfObjectWrapper<?>> subResources;
subResources = resources.getFonts();
if(subResources != null)
{System.out.println(" Font count: " + subResources.size());}
subResources = resources.getXObjects();
if(subResources != null)
{System.out.println(" XObjects count: " + subResources.size());}
subResources = resources.getColorSpaces();
if(subResources != null)
{System.out.println(" ColorSpaces count: " + subResources.size());}
}
}