find and replace in adobe acrobat reader … or java 8

Main menu:

Topics

Recent Posts

Feeds

RSS Feed RSS - Posts

February 2017
M T W T F S S
« Jan   Mar »
 12345
6789101112
13141516171819
20212223242526
2728  

Past Posts

Java/Java EE

JDBC

Other

find and replace in adobe acrobat reader … or java 8

February 19th, 2017 by Jeanne Boyarsky

Scott and I are doing final edits of our OCA 8/OCP 8 Practice Tests book. We wanted to use parens after method names in the explanations. I noticed that I missed two in an early chapter so wanted to do a search in Adobe Acrobat reader for “main method”. Unfortunately Acrobat ignores the parens so “main() method” matched too.

Rather than figure out how to do this in Acrobat, I just coded it.

Path path = Paths.get("test.txt");
Files.lines(path)
.filter(l -> l.contains("main method"))
.forEach(System.out::println);

Broke up the reading/editing with some code too 🙂

Write a comment