Skip to content

Commit 64c4861

Browse files
committed
Release TRI's (PRI's) graphics state after processing. Give a possibility to preserve it.
Autoported commit. Original commit hash: [94503540]
1 parent 22022d6 commit 64c4861

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

itext/itext.cleanup/itext/pdfcleanup/PdfCleanUpProcessor.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,12 @@ protected internal static Matrix OperandsToMatrix(IList<PdfObject> operands) {
232232
return new Matrix(a, b, c, d, e, f);
233233
}
234234

235+
private override void EventOccurred(IEventData data, EventType type) {
236+
if (supportedEvents == null || supportedEvents.Contains(type)) {
237+
eventListener.EventOccurred(data, type);
238+
}
239+
}
240+
235241
private void WriteGsParamsIfFormXObject(String @operator, IList<PdfObject> operands) {
236242
if ("Do".Equals(@operator)) {
237243
PdfStream formStream = GetXObjectStream((PdfName)operands[0]);

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7fba41352cdf37ddb1a6bc173f539ccba7bf9795
1+
9450354018716a490b31c4f81c28207d85d88776

0 commit comments

Comments
 (0)