Skip to content

Commit 94a1ad0

Browse files
committed
Add tests for separation colorspace combined with filters
DEVSIX-6756
1 parent 6313d54 commit 94a1ad0

File tree

17 files changed

+40
-0
lines changed

17 files changed

+40
-0
lines changed

kernel/src/test/java/com/itextpdf/kernel/pdf/xobject/GetImageBytesTest.java

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,46 @@ public void testSeparationCSWithDeviceRGBAsAlternative2() throws Exception {
180180
testFile("spotColorImagesSmall.pdf", "Im1", "png");
181181
}
182182

183+
@Test
184+
public void testRGBSeparationCSWithJPXDecoderAndFunctionType0() throws Exception {
185+
testFile("RGBJpxF0.pdf", "Im1", "jp2");
186+
}
187+
188+
@Test
189+
public void testRGBSeparationCSWithDCTDecoderAndFunctionType0() throws Exception {
190+
testFile("RGBDctF0.pdf", "Im1", "jpg");
191+
}
192+
193+
@Test
194+
public void testRGBSeparationCSWithFlateDecoderAndFunctionType0() throws Exception {
195+
testFile("RGBFlateF0.pdf", "Im1", "png");
196+
}
197+
198+
@Test
199+
public void testCMYKSeparationCSWithJPXDecoderAndFunctionType2() throws Exception {
200+
testFile("CMYKJpxF2.pdf", "Im1", "jp2");
201+
}
202+
203+
@Test
204+
public void testRGBSeparationCSWithJPXDecoderAndFunctionType2() throws Exception {
205+
testFile("RGBJpxF2.pdf", "Im1", "jp2");
206+
}
207+
208+
@Test
209+
public void testCMYKSeparationCSWithDCTDecoderAndFunctionType2() throws Exception {
210+
testFile("CMYKDctF2.pdf", "Im1", "jpg");
211+
}
212+
213+
@Test
214+
public void testRGBSeparationCSWithDCTDecoderAndFunctionType2() throws Exception {
215+
testFile("RGBDctF2.pdf", "Im1", "jpg");
216+
}
217+
218+
@Test
219+
public void testRGBSeparationCSWithFlateDecoderAndFunctionType2() throws Exception {
220+
testFile("RGBFlateF2.pdf", "Im1", "png");
221+
}
222+
183223
@Test
184224
public void extractByteAlignedG4TiffImageTest() throws IOException {
185225
String inFileName = SOURCE_FOLDER + "extractByteAlignedG4TiffImage.pdf";
50.8 KB
Loading
50.8 KB
Loading
50.8 KB
Loading

0 commit comments

Comments
 (0)