From 161eb9ef43958996250c3786802a013e1ac549de Mon Sep 17 00:00:00 2001 From: Matthias Kramm Date: Fri, 19 Feb 2010 14:55:03 -0800 Subject: [PATCH 1/1] small bugfixes in pdf2pdf --- lib/devices/pdf.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/devices/pdf.c b/lib/devices/pdf.c index ec02168..1cfd6f8 100644 --- a/lib/devices/pdf.c +++ b/lib/devices/pdf.c @@ -76,7 +76,7 @@ static void set_matrix(internal_t*i, double m00, double m01, double m10, double i->m11 = m11; PDF_save(i->p); - PDF_setmatrix(i->p, m00, -m01, m10, -m11, 0, i->height); + PDF_setmatrix(i->p, m00, -m01, m10, -m11, 0, i->height+2*i->config_ypad); i->has_matrix = 1; } static void reset_matrix(internal_t*i) @@ -228,9 +228,7 @@ void pdf_stroke(gfxdevice_t*dev, gfxline_t*line, gfxcoord_t width, gfxcolor_t*co void pdf_fill(gfxdevice_t*dev, gfxline_t*line, gfxcolor_t*color) { internal_t*i = (internal_t*)dev->internal; - PDF_setrgbcolor_stroke(i->p, 0.1,0.2,0.3); reset_matrix(i); - PDF_setrgbcolor_stroke(i->p, 0.2,0.3,0.4); PDF_setrgbcolor_fill(i->p, color->r/255.0, color->g/255.0, color->b/255.0); /* pdf-x (pdf 1.3) doesn't support opacityfill -- 1.7.10.4