pdfload was missing a rewind on source

This commit is contained in:
John Cupitt 2020-10-04 14:26:13 +01:00
parent edbe9bf8ef
commit 5b119e183f
1 changed files with 3 additions and 0 deletions

View File

@ -176,6 +176,9 @@ vips_foreign_load_pdf_build( VipsObject *object )
GError *error = NULL;
if( vips_source_rewind( pdf->source ) )
return( -1 );
pdf->total_scale = pdf->scale * pdf->dpi / 72.0;
pdf->stream = vips_g_input_stream_new_from_source( pdf->source );