summaryrefslogtreecommitdiff
path: root/source/tools/pdfextract.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/tools/pdfextract.c')
-rw-r--r--source/tools/pdfextract.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/tools/pdfextract.c b/source/tools/pdfextract.c
index 0c89931a..6f2ed1ca 100644
--- a/source/tools/pdfextract.c
+++ b/source/tools/pdfextract.c
@@ -48,13 +48,13 @@ static void writepixmap(fz_context *ctx, fz_pixmap *pix, char *file, int rgb)
{
snprintf(buf, sizeof(buf), "%s.png", file);
printf("extracting image %s\n", buf);
- fz_write_png(ctx, pix, buf, 0);
+ fz_save_pixmap_as_png(ctx, pix, buf, 0);
}
else
{
snprintf(buf, sizeof(buf), "%s.pam", file);
printf("extracting image %s\n", buf);
- fz_write_pam(ctx, pix, buf, 0);
+ fz_save_pixmap_as_pam(ctx, pix, buf, 0);
}
fz_drop_pixmap(ctx, converted);