// Path: src/main/java/technology/tabula/tabula_web/Utils.java
// public class Utils {
// 
//     private static final String DEFAULT_PASSWORD = "";
// 
//     public static PDDocument openPDF(String documentPath) throws IOException {
//         PDDocument document = PDDocument.load(new File(documentPath));
//         if (document.isEncrypted()) {
//             document.close();
//             document = PDDocument.load(new File(documentPath), DEFAULT_PASSWORD);
//             document.setAllSecurityToBeRemoved(true);
//         }
//         return document;
//     }
// }
// 
// Path: src/main/java/technology/tabula/tabula_web/workspace/DocumentPage.java
// public class DocumentPage {
// 
// 	public double width;
// 	public double height;
// 	public int number;
// 	public int rotation;
// 	public boolean hasText;
// 	
// 	public DocumentPage(double width, double height, int number, int rotation, boolean hasText) {
// 		this.width = width;
// 		this.height = height;
// 		this.number = number;
// 		this.rotation = rotation;
// 		this.hasText = hasText;
// 	}
// }


import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.apache.pdfbox.pdmodel.PDDocument;
import technology.tabula.ObjectExtractor;
import technology.tabula.Page;
import technology.tabula.PageIterator;
import technology.tabula.tabula_web.Utils;
import technology.tabula.tabula_web.workspace.DocumentPage;
package technology.tabula.tabula_web.extractor;




public class PagesInfoExtractor {

	@SuppressWarnings("Convert2Diamond")
// Path: src/main/java/technology/tabula/tabula_web/Utils.java
// public class Utils {
// 
//     private static final String DEFAULT_PASSWORD = "";
// 
//     public static PDDocument openPDF(String documentPath) throws IOException {
//         PDDocument document = PDDocument.load(new File(documentPath));
//         if (document.isEncrypted()) {
//             document.close();
//             document = PDDocument.load(new File(documentPath), DEFAULT_PASSWORD);
//             document.setAllSecurityToBeRemoved(true);
//         }
//         return document;
//     }
// }
// 
// Path: src/main/java/technology/tabula/tabula_web/workspace/DocumentPage.java
// public class DocumentPage {
// 
// 	public double width;
// 	public double height;
// 	public int number;
// 	public int rotation;
// 	public boolean hasText;
// 	
// 	public DocumentPage(double width, double height, int number, int rotation, boolean hasText) {
// 		this.width = width;
// 		this.height = height;
// 		this.number = number;
// 		this.rotation = rotation;
// 		this.hasText = hasText;
// 	}
// }


// Path: src/main/java/technology/tabula/tabula_web/extractor/PagesInfoExtractor.java
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.apache.pdfbox.pdmodel.PDDocument;
import technology.tabula.ObjectExtractor;
import technology.tabula.Page;
import technology.tabula.PageIterator;
import technology.tabula.tabula_web.Utils;
import technology.tabula.tabula_web.workspace.DocumentPage;

package technology.tabula.tabula_web.extractor;




public class PagesInfoExtractor {

	@SuppressWarnings("Convert2Diamond")
    public static List<DocumentPage> pagesInfo(String pdfPath) throws IOException {