File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/com/amastigote/unstamper/core Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1111import com .sun .istack .internal .NotNull ;
1212import org .apache .pdfbox .contentstream .operator .Operator ;
1313import org .apache .pdfbox .cos .COSArray ;
14+ import org .apache .pdfbox .cos .COSName ;
1415import org .apache .pdfbox .cos .COSString ;
1516import org .apache .pdfbox .pdfparser .PDFStreamParser ;
1617import org .apache .pdfbox .pdfwriter .ContentStreamWriter ;
@@ -127,8 +128,9 @@ public static void process(
127128
128129 /* >> write modified tokens back to the stream */
129130 PDStream newContents = new PDStream (pdDocument );
130- OutputStream out = newContents .createOutputStream ();
131+ OutputStream out = newContents .createOutputStream (COSName . FLATE_DECODE );
131132 ContentStreamWriter writer = new ContentStreamWriter (out );
133+
132134 writer .writeTokens (objects );
133135 out .close ();
134136 /* << write modified tokens back to the stream */
You can’t perform that action at this time.
0 commit comments