Skip to content
This repository was archived by the owner on Aug 22, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/devices/pdf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion lib/readers/swf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down