Commit 920f00c8 authored by --global's avatar --global

fourth project

parents
Pipeline #309 canceled with stages
import com.itextpdf.text.pdf.PdfReader;
public class Main {
public static void main(String[] args) {
PdfReader pdfr;
try {
PdfReader pdfr = new PdfReader("C:\\Users\\lab2\\Desktop\\Hello.pdf");
int k = pdfr.getNumberOfPages();
System.out.println(k);
System.out.println(pdfr.getNumberOfPages());
} catch (Exception e) {
System.out.println(e);
e.printStackTrace();
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment