File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
pdfa/src/test/java/com/itextpdf/pdfa Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ This file is part of the iText (R) project.
53
53
import com .itextpdf .kernel .pdf .canvas .PdfCanvas ;
54
54
import com .itextpdf .kernel .pdf .extgstate .PdfExtGState ;
55
55
import com .itextpdf .kernel .pdf .xobject .PdfFormXObject ;
56
+ import com .itextpdf .kernel .pdf .xobject .PdfTransparencyGroup ;
56
57
import com .itextpdf .kernel .utils .CompareTool ;
57
58
import com .itextpdf .test .ExtendedITextTest ;
58
59
import com .itextpdf .test .annotations .type .IntegrationTest ;
@@ -260,11 +261,8 @@ public void transparencyCheckTest1() throws IOException {
260
261
PdfCanvas xObjCanvas = new PdfCanvas (xObject , doc );
261
262
xObjCanvas .rectangle (30 , 30 , 10 , 10 ).fill ();
262
263
263
- //imitating transparency group
264
- //todo replace with real transparency group logic when implemented
265
- PdfDictionary group = new PdfDictionary ();
266
- group .put (PdfName .S , PdfName .Transparency );
267
- xObject .put (PdfName .Group , group );
264
+ PdfTransparencyGroup group = new PdfTransparencyGroup ();
265
+ xObject .setGroup (group );
268
266
canvas .addXObject (xObject , new Rectangle (300 , 300 ));
269
267
270
268
doc .close ();
You can’t perform that action at this time.
0 commit comments