final PdfUtilities utilities = new PdfUtilities ( "path/to/exampleFile.pdf" );   try { if ( utilities. openPDFFile ()) { // Returns a String containing all metadata fields for the document final String documentPropertiesAsXML = utilities . getDocumentPropertyFieldsInXML ();   // Returns the total page count as an int final int totalPageCount = utilities . getPageCount ();   for ( int i = 1 ; i != totalPageCount ; i ++) { // Get the page dimensions for the specified page in the given units and type final float [] pageDimensions = utilities. getPageDimensions ( i , PdfUtilities . PageUnits . Pixels , PdfUtilities . PageSizeType . CropBox );   // Returns the image data as a String for the specified page final String xImageDataForPage = utilities. getXImageDataForPage ( i ); } } } catch ( final PdfException e ) { e. printStackTrace (); } utilities. closePDFfile ();