From 097bb815b71f5c77376f1b2813b7229e07793260 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Wed, 30 Jan 2019 20:59:40 +0000 Subject: [PATCH] pdfium load as well --- libvips/foreign/pdfload_pdfium.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libvips/foreign/pdfload_pdfium.c b/libvips/foreign/pdfload_pdfium.c index 041c9425..94f7c266 100644 --- a/libvips/foreign/pdfload_pdfium.c +++ b/libvips/foreign/pdfload_pdfium.c @@ -353,12 +353,11 @@ vips_foreign_load_pdf_header( VipsForeignLoad *load ) top += pdf->pages[i].height; } - /* If all pages are the same size, we can tag this as a toilet roll - * image and tiffsave will be able to save it as a multipage tiff. + /* If all pages are the same height, we can tag this as a toilet roll + * image. */ for( i = 1; i < pdf->n; i++ ) - if( pdf->pages[i].width != pdf->pages[0].width || - pdf->pages[i].height != pdf->pages[0].height ) + if( pdf->pages[i].height != pdf->pages[0].height ) break; if( i == pdf->n ) vips_image_set_int( load->out,