diff --git a/lib/devices/pdf.c b/lib/devices/pdf.c index 0ce54a13..524b807a 100644 --- a/lib/devices/pdf.c +++ b/lib/devices/pdf.c @@ -94,7 +94,7 @@ void pdf_startpage(gfxdevice_t*dev, int width, int height) PDF_begin_document(i->p, i->tempfile, 0, ""); //PDF_set_value(i->p, "compress", 0); PDF_set_parameter(i->p, "usercoordinates", "true"); - //PDF_set_parameter(i->p, "topdown", "true"); + PDF_set_parameter(i->p, "topdown", "true"); } int width_plus_pad = width+floor(i->config_xpad*2); @@ -313,7 +313,7 @@ void pdf_fillbitmap(gfxdevice_t*dev, gfxline_t*line, gfximage_t*img, gfxmatrix_t unlink(tempfile); char options[80]; - set_matrix(i, matrix->m00, matrix->m01, -matrix->m10, -matrix->m11); + set_matrix(i, matrix->m00, matrix->m01, matrix->m10, matrix->m11); /* an image's (0,0) is at the lower left corner */ double x=matrix->tx + i->config_xpad + matrix->m10*img->height; double y=matrix->ty + i->config_ypad + matrix->m11*img->height; diff --git a/lib/readers/swf.c b/lib/readers/swf.c index ba23a062..713a76fa 100644 --- a/lib/readers/swf.c +++ b/lib/readers/swf.c @@ -169,7 +169,7 @@ static gfxgradient_t* convertGradient(GRADIENT*from) gfxline_t* swfline_to_gfxline(SHAPELINE*line, int linestyle, int fillstyle0, bool flip) { - int flipflop = flip ? -1 : 1; + int flipflop = flip ? 1 : 1; gfxdrawer_t d; SCOORD x=0,y=0,xx=0,yy=0; gfxline_t*l;