### ImageMagick version

ImageMagick 7.1.1-13 Q16-HDRI aarch64 21276

### Operating system

Linux

### Operating system, version and so on

docker  node:20.9-alpine

### Description

I am using image magic to convert pdf to png. All works well, but there are specific pdf files I cant convert. Can't say its pdf file version or some metadata because I do not generate those.

### Steps to Reproduce

I am facing this issue in docker image, also on macbook.

in docker ( node:20.9-alpine) I have installed imagemagick with 
```
RUN apk --update add imagemagick
```
Image magick and ghostscript versions
```
/code$ magick --version
Version: ImageMagick 7.1.1-13 Q16-HDRI aarch64 21276 https://imagemagick.org
Copyright: (C) 1999 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules 
Delegates (built-in): bzlib cairo fontconfig freetype gslib heic jng jpeg jxl lcms ltdl lzma png ps raw rsvg tiff webp x xml zlib
Compiler: gcc (12.2)
/code$ gs --version
10.02.0
```

On macbook I have installed Imagemagick using brew
Image magick and ghostscript versions
```
user@macbook / % magick --version
Version: ImageMagick 7.1.1-10 Q16-HDRI aarch64 21178 https://imagemagick.org
Copyright: (C) 1999 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenMP(5.0) 
Delegates (built-in): bzlib fontconfig freetype gslib heic jng jp2 jpeg jxl lcms lqr ltdl lzma openexr png ps raw tiff webp xml zlib
Compiler: gcc (4.2)
user@macbook / % gs --version    
10.01.1
```

Results are the same:

```
% convert 65578d7ea39d215066a61fc9.pdf 01.png
convert: PDFDelegateFailed `[ghostscript library 10.01] -sstdout=%stderr -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 '-sDEVICE=pngalpha' -dTextAlphaBits=4 -dGraphicsAlphaBits=4 '-r72x72' -dPrinted=false  '-sOutputFile=/var/folders/6l/9zw45yyx33z8gnw43gj3qb5c0000gn/T/magick-o6myWKnTwntnfjJ3hbTehlqZBgAToOJ9%d' '-f/var/folders/6l/9zw45yyx33z8gnw43gj3qb5c0000gn/T/magick-oS9RoZ57mRXEhY1zwfvVUhN3RgQXgvCl' '-f/var/folders/6l/9zw45yyx33z8gnw43gj3qb5c0000gn/T/magick-UBKB_gOaoLeOJBXb8lyqocTf21kzLhEO':    **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
   **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
   **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
   **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
   **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
   **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
   **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
   **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
   **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
   **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
   **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
   **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
   **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
   **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
   **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
   **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
   **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
   **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
   **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
   **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
' @ error/pdf.c/ReadPDFImage/712.
convert: no images defined `01.png' @ error/convert.c/ConvertImageCommand/3342.
```
It seems there is Error: Couldn't get page info. for every page in document (there is 20 pages). Cant share document, but it looks like some sort of scan (using printer?) with lots of blank pages and some pages with text and pictures (but every page seems to be image converted to pdf).

I would like to provide more info but don't now how.

### Images

_No response_
PDFDelegateFailed when converting specific pdf to png
This is a GitHub Issue
repo:ImageMagick
owner:ImageMagick
Title : PDFDelegateFailed when converting specific pdf to png
Issue date:

--- start body ---
### ImageMagick version

ImageMagick 7.1.1-13 Q16-HDRI aarch64 21276

### Operating system

Linux

### Operating system, version and so on

docker  node:20.9-alpine

### Description

I am using image magic to convert pdf to png. All works well, but there are specific pdf files I cant convert. Can't say its pdf file version or some metadata because I do not generate those.

### Steps to Reproduce

I am facing this issue in docker image, also on macbook.

in docker ( node:20.9-alpine) I have installed imagemagick with 
```
RUN apk --update add imagemagick
```
Image magick and ghostscript versions
```
/code$ magick --version
Version: ImageMagick 7.1.1-13 Q16-HDRI aarch64 21276 https://imagemagick.org
Copyright: (C) 1999 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules 
Delegates (built-in): bzlib cairo fontconfig freetype gslib heic jng jpeg jxl lcms ltdl lzma png ps raw rsvg tiff webp x xml zlib
Compiler: gcc (12.2)
/code$ gs --version
10.02.0
```

On macbook I have installed Imagemagick using brew
Image magick and ghostscript versions
```
user@macbook / % magick --version
Version: ImageMagick 7.1.1-10 Q16-HDRI aarch64 21178 https://imagemagick.org
Copyright: (C) 1999 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenMP(5.0) 
Delegates (built-in): bzlib fontconfig freetype gslib heic jng jp2 jpeg jxl lcms lqr ltdl lzma openexr png ps raw tiff webp xml zlib
Compiler: gcc (4.2)
user@macbook / % gs --version    
10.01.1
```

Results are the same:

```
% convert 65578d7ea39d215066a61fc9.pdf 01.png
convert: PDFDelegateFailed `[ghostscript library 10.01] -sstdout=%stderr -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 '-sDEVICE=pngalpha' -dTextAlphaBits=4 -dGraphicsAlphaBits=4 '-r72x72' -dPrinted=false  '-sOutputFile=/var/folders/6l/9zw45yyx33z8gnw43gj3qb5c0000gn/T/magick-o6myWKnTwntnfjJ3hbTehlqZBgAToOJ9%d' '-f/var/folders/6l/9zw45yyx33z8gnw43gj3qb5c0000gn/T/magick-oS9RoZ57mRXEhY1zwfvVUhN3RgQXgvCl' '-f/var/folders/6l/9zw45yyx33z8gnw43gj3qb5c0000gn/T/magick-UBKB_gOaoLeOJBXb8lyqocTf21kzLhEO':    **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
   **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
   **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
   **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
   **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
   **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
   **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
   **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
   **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
   **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
   **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
   **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
   **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
   **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
   **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
   **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
   **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
   **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
   **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
   **** Error: Couldn't get page info.
               Output may be incorrect.
   **** Error: page not found.
' @ error/pdf.c/ReadPDFImage/712.
convert: no images defined `01.png' @ error/convert.c/ConvertImageCommand/3342.
```
It seems there is Error: Couldn't get page info. for every page in document (there is 20 pages). Cant share document, but it looks like some sort of scan (using printer?) with lots of blank pages and some pages with text and pictures (but every page seems to be image converted to pdf).

I would like to provide more info but don't now how.

### Images

_No response_
--- end body ---
