From 5ca90dc2be3d139e810ccff443572b6581d718bf Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Mon, 8 Feb 2016 21:40:44 +0000 Subject: [PATCH] final polish --- TODO | 5 ++--- libvips/foreign/pdfload.c | 3 --- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/TODO b/TODO index 413b14f9..6c3ae015 100644 --- a/TODO +++ b/TODO @@ -1,6 +1,5 @@ -- vipsthumbnail needs to know about pdfload - -- trim page edges? we often have black now +- vipsthumbnail needs to know about pdfload ... open, get size, open again + with scale set to make a thumbnail - could load pdf thumbnails? diff --git a/libvips/foreign/pdfload.c b/libvips/foreign/pdfload.c index 89082568..7dfd1f08 100644 --- a/libvips/foreign/pdfload.c +++ b/libvips/foreign/pdfload.c @@ -169,7 +169,6 @@ static void vips_foreign_load_pdf_parse( VipsForeignLoadPdf *pdf, VipsImage *out ) { - PopplerRectangle crop_box; double width; double height; double res; @@ -177,8 +176,6 @@ vips_foreign_load_pdf_parse( VipsForeignLoadPdf *pdf, poppler_page_get_size( pdf->page, &width, &height ); - poppler_page_get_crop_box( pdf->page, &crop_box ); - /* We need pixels/mm for vips. */ res = pdf->dpi / 25.4;