diff --git a/pdf.c b/pdf.c
index 89b8a811bfb20df0038b0220d3899279005e1fa9..01ebf575d0851944cacbc473a90dfbb8bdac05ae 100644
--- a/pdf.c
+++ b/pdf.c
@@ -3011,7 +3011,7 @@ parse_objstm_obj(struct Env *aux, size_t nr, size_t stm_nr, size_t idx)
 	}
 
 	if ((stm = ent->obj) == NULL) {
-		fprintf(stdout, "%s: error parsing object stream at position "
+		fprintf(stderr, "%s: error parsing object stream at position "
 		    "%zu (%#zx)\n", aux->infile, ent->n.offs, ent->n.offs);
 		return NULL;
 	}
@@ -5180,7 +5180,7 @@ p_stream_data__m(HAllocator *mm__, const Dict *dict, struct Env *aux)
 		 */
 		v = dictentry(dict, "Subtype");
 		if (v == NULL) {
-			fprintf(stdout, "\nFailed to parse Subtype of XObject in dictionary");
+			fprintf(stderr, "\nFailed to parse Subtype of XObject in dictionary");
 			return (NULL);
 		}
 		if (bytes_eq(v->bytes, "Form")) {