Skip to content

Commit e4c8f68

Browse files
committed
Examples updated.
1 parent 5623ccf commit e4c8f68

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/programmersguide/workingwithasposepdf/workingwithtext/replacetextinallpages/data/source.pdf renamed to src/programmersguide/workingwithasposepdf/workingwithtext/replacetextinallpages/data/input.pdf

File renamed without changes.

src/programmersguide/workingwithasposepdf/workingwithtext/replacetextinallpages/java/ReplaceTextInAllPages.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public static void main(String[] args) throws Exception
1919
String dataDir = "src/programmersguide/workingwithasposepdf/workingwithtext/replacetextinallpages/data/";
2020

2121
// Open document
22-
com.aspose.pdf.Document pdfDocument = new com.aspose.pdf.Document(dataDir+ "source.pdf");
22+
com.aspose.pdf.Document pdfDocument = new com.aspose.pdf.Document(dataDir+ "input.pdf");
2323

2424
// Create TextAbsorber object to find all instances of the input search phrase
2525
com.aspose.pdf.TextFragmentAbsorber textFragmentAbsorber = new com.aspose.pdf.TextFragmentAbsorber("sample");
@@ -41,7 +41,7 @@ public static void main(String[] args) throws Exception
4141
textFragment.getTextState().setBackgroundColor(com.aspose.pdf.Color.getGray());
4242
}
4343
// Save the updated PDF file
44-
pdfDocument.save(dataDir+ "Updated_Text.pdf");
44+
pdfDocument.save(dataDir+ "output.pdf");
4545

4646
}
4747
}

0 commit comments

Comments
 (0)