Skip to content

Commit a51e691

Browse files
Move test from samples internal repository
DEVSIX-3737
1 parent f644665 commit a51e691

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

kernel/src/test/java/com/itextpdf/kernel/pdf/PdfReaderTest.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ This file is part of the iText (R) project.
4848
import com.itextpdf.io.util.FileUtil;
4949
import com.itextpdf.io.util.MessageFormatUtil;
5050
import com.itextpdf.kernel.PdfException;
51-
import com.itextpdf.kernel.pdf.canvas.PdfCanvas;
5251
import com.itextpdf.kernel.utils.CompareTool;
5352
import com.itextpdf.test.ExtendedITextTest;
5453
import com.itextpdf.test.annotations.LogMessage;
@@ -62,7 +61,6 @@ This file is part of the iText (R) project.
6261
import org.junit.experimental.categories.Category;
6362
import org.junit.rules.ExpectedException;
6463

65-
import java.io.ByteArrayInputStream;
6664
import java.io.File;
6765
import java.io.IOException;
6866
import java.io.OutputStream;
@@ -2020,6 +2018,12 @@ protected void readPdf() throws IOException {
20202018
readingNotCompletedTest(isEncryptedReader);
20212019
}
20222020

2021+
@Test
2022+
public void pdf11VersionValidTest() throws IOException {
2023+
String fileName = sourceFolder + "pdf11Version.pdf";
2024+
new PdfDocument(new PdfReader(fileName));
2025+
}
2026+
20232027
private PdfReader pdfDocumentNotReadTestInit() throws IOException {
20242028
String filename = sourceFolder + "XrefWithNullOffsets.pdf";
20252029

Binary file not shown.

0 commit comments

Comments
 (0)