shithub: pdffs

Download patch

ref: 1e0a35297dac2f17ea7fb0a59c7051276435b6f4
parent: df075d407417a84a3dacf44044fd0907b295f39e
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Sat Aug 29 19:16:36 EDT 2020

remove stream/filter traces

--- a/filter.c
+++ b/filter.c
@@ -61,7 +61,6 @@
 		werrstr("filter[%s]: %r", f->name);
 		return -1;
 	}
-	fprint(2, "filter[%s]: %d → %d %d\n", f->name, bi->sz, bo->sz, bo->off);
 	return 0;
 }
 
--- a/stream.c
+++ b/stream.c
@@ -31,7 +31,6 @@
 		return nil;
 	if(bufreadn(&b, o->pdf->bio, o->stream.len) < 0)
 		goto err;
-	bufdump(&b);
 
 	/* see if there are any filters */
 	if((of = dictget(o, "Filter")) != nil){
@@ -71,8 +70,6 @@
 	s->buf = b;
 	Binit(s->bio, Bfildes(o->pdf->bio), OREAD);
 	Biofn(s->bio, bufiof);
-
-	bufdump(&s->buf);
 
 	return s;
 err: