I have a PDF file file (say A.pdf) and would like to create a copy of that file (B.pdf). But I would like to skip some text when I copy the file.
For example A.pdf has a text of Hello World
and I will skip the text Hello
and eventually B.pdf will have World
only.
Edit: The word World
shall stay where it is and it is not going to shift.
I tried to solve that problem using PDFTextStripper
class but the text remained same. I'm quite new to the PDFBox and using version 2.
Thanks.