Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
Lab4
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
9731094
Lab4
Commits
ac061b61
Commit
ac061b61
authored
Mar 10, 2019
by
shayan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gg class created.
parents
Pipeline
#306
canceled with stages
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
0 deletions
+20
-0
Test.pdf
src/Test.pdf
+0
-0
gg.java
src/gg.java
+20
-0
itextpdf-5.0.6.jar
src/itextpdf-5.0.6.jar
+0
-0
No files found.
src/Test.pdf
0 → 100644
View file @
ac061b61
File added
src/gg.java
0 → 100644
View file @
ac061b61
import
com.itextpdf.text.pdf.PdfReader
;
public
class
gg
{
public
static
void
main
(
String
[]
args
)
{
try
{
PdfReader
pdfReader
=
new
PdfReader
(
"test.pdf"
);
int
pages
=
pdfReader
.
getNumberOfPages
();
System
.
out
.
println
(
pages
);
//for (int i=1; i<=pages; i++) {
// String pageContent = PdfTextExtractor.getTextFromPage(pdfReader, i);
// System.out.println("Content on Page " + i + ": " + pageContent);
// }
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
}
src/itextpdf-5.0.6.jar
0 → 100644
View file @
ac061b61
File added
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment