Imgix APIsRendering APIPDFPDF Page Number

PDF Page Number

page

Outputs individual pages or vector assets from PDF or Adobe® Illustrator® files (.ai) as images.

Vectors will scale before rasterizing, which is ideal for scaling up icons and graphic marks. You can use page to simply convert to another format, or additionally apply other parameters to manipulate the output further. Try playing with invert below to see this in action.

For PDF files, page references the absolute page number of the document, counting from 1; for Illustrator files it references the artboard number, starting from the top artboard.

Extracting a page as a PDF

Combined with fm=pdf on a PDF source, page returns a new PDF containing only that page, rather than rasterizing it to an image.

Only what the page uses comes with it — its fonts, images and annotations. Bookmarks, named destinations and form field structure belong to the whole document and are dropped, so links on the page that pointed to other pages no longer resolve. Add auto=compress, q or dpi to optimize the extracted page at the same time.

A page can be extracted from a document that is too long or too large to optimize as a whole, since the size limits on whole-document optimization do not apply to extraction. A digitally signed PDF still extracts, with the signature fields removed from the page so that viewers do not report it as modified after signing. An encrypted PDF extracts as long as it opens without a password; the extracted page is not encrypted.

A page value that is not a number is ignored and the whole document is returned. A value below 1 or beyond the last page returns a 422. page is ignored for EPS, which is always a single page.

Performance Warning

Extremely large PDF files may timeout during the intial fetch depending on the speed of your origin. If you`re experiencing issues with large PDFs, please contact support.