Skip to content

Commit

Permalink
Fix CMYK
Browse files Browse the repository at this point in the history
  • Loading branch information
DavBfr committed Feb 12, 2025
1 parent 6e69cfc commit 4686e19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdf/lib/src/pdf/obj/graphic_stream.dart
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ mixin PdfGraphicStream on PdfObject<PdfDict> {
resources['/XObject'] = PdfDict.fromObjectMap(xObjects);
}

if (pdfDocument.hasGraphicStates) {
if (pdfDocument.hasGraphicStates && !params.containsKey('/Group')) {
// Declare Transparency Group settings
params['/Group'] = PdfDict.values({
'/Type': const PdfName('/Group'),
Expand Down

0 comments on commit 4686e19

Please sign in to comment.