Skip to content

Commit c748c2d

Browse files
EvgenyB1001iText-CI
authored andcommitted
Remove ToDo in PdfA1GraphicsTest#transparencyCheckTest1()
DEVSIX-4167 Autoported commit. Original commit hash: [66faa47a0]
1 parent a519741 commit c748c2d

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

itext.tests/itext.pdfa.tests/itext/pdfa/PdfA1GraphicsTest.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -235,11 +235,8 @@ public virtual void TransparencyCheckTest1() {
235235
PdfFormXObject xObject = new PdfFormXObject(new Rectangle(100, 100));
236236
PdfCanvas xObjCanvas = new PdfCanvas(xObject, doc);
237237
xObjCanvas.Rectangle(30, 30, 10, 10).Fill();
238-
//imitating transparency group
239-
//todo replace with real transparency group logic when implemented
240-
PdfDictionary group = new PdfDictionary();
241-
group.Put(PdfName.S, PdfName.Transparency);
242-
xObject.Put(PdfName.Group, group);
238+
PdfTransparencyGroup group = new PdfTransparencyGroup();
239+
xObject.SetGroup(group);
243240
canvas.AddXObject(xObject, new Rectangle(300, 300));
244241
doc.Close();
245242
}

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
03de354714344c9151ff857973f4cb3db01aada0
1+
66faa47a0375339653f2d8452e5a0786d47a9370

0 commit comments

Comments
 (0)