Skip to content

Commit

Permalink
Change InputStream in PdfAFontTest
Browse files Browse the repository at this point in the history
DEVSIX-1537
  • Loading branch information
Stryhelski committed Feb 3, 2023
1 parent 27cd8c0 commit 92cbe49
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pdfa/src/test/java/com/itextpdf/pdfa/PdfAFontTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ This file is part of the iText (R) project.
import com.itextpdf.test.annotations.type.IntegrationTest;
import com.itextpdf.test.pdfa.VeraPdfValidator;

import java.nio.file.Files;
import java.nio.file.Paths;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
Expand Down Expand Up @@ -368,7 +366,7 @@ private void generateAndValidatePdfA2WithCidFont(String fontFile, String outPdf)

private void generateAndValidatePdfA2WithCidFont(String fontFile, String outPdf, String expectedVeraPdfWarning) throws IOException {
try (PdfWriter writer = new PdfWriter(outPdf);
InputStream is = Files.newInputStream(Paths.get(sourceFolder + "sRGB Color Space Profile.icm"));
InputStream is = new FileInputStream(sourceFolder + "sRGB Color Space Profile.icm");
PdfDocument doc = new PdfADocument(
writer,
PdfAConformanceLevel.PDF_A_2B,
Expand Down

0 comments on commit 92cbe49

Please sign in to comment.