cshum / imagor

Fast, secure image processing server and Go library, using libvips
Apache License 2.0
3.46k stars 138 forks source link

Metadata endpoint not returning the correct no. of pages in PDF #362

Closed blesswinsamuel closed 1 year ago

blesswinsamuel commented 1 year ago

When I use the /meta option to get the pdf metadata, it always returns the number of pages as 1 even though the PDF has more than 1 pages.

Example:

{
  format: 'pdf',
  content_type: 'application/pdf',
  width: 612,
  height: 792,
  orientation: 0,
  pages: 1,
  bands: 4,
  exif: {}
}