File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
kernel/src/test/java/com/itextpdf/kernel/pdf Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,7 @@ This file is part of the iText (R) project.
42
42
*/
43
43
package com .itextpdf .kernel .pdf ;
44
44
45
- import com .itextpdf .io .font .FontConstants ;
46
- import com .itextpdf .io .util .UrlUtil ;
45
+ import com .itextpdf .io .font .constants .StandardFonts ;
47
46
import com .itextpdf .kernel .colors .ColorConstants ;
48
47
import com .itextpdf .kernel .font .PdfFontFactory ;
49
48
import com .itextpdf .kernel .geom .Rectangle ;
@@ -88,7 +87,7 @@ public void AnnotationAppearanceTest() throws IOException {
88
87
PdfDocument pdfDocument = new PdfDocument (new PdfWriter (destinationFolder + "AnnotationAppearanceTest.pdf" ));
89
88
PdfPage page = pdfDocument .addNewPage ();
90
89
PdfCanvas canvas = new PdfCanvas (page );
91
- canvas .setFillColor (ColorConstants .MAGENTA ).beginText ().setFontAndSize (PdfFontFactory .createFont (FontConstants .TIMES_ROMAN ), 30 )
90
+ canvas .setFillColor (ColorConstants .MAGENTA ).beginText ().setFontAndSize (PdfFontFactory .createFont (StandardFonts .TIMES_ROMAN ), 30 )
92
91
.setTextMatrix (25 , 500 ).showText ("This file has AP key in Names dictionary" ).endText ();
93
92
PdfArray array = new PdfArray ();
94
93
array .add (new PdfString ("normalAppearance" ));
You can’t perform that action at this time.
0 commit comments