Thumbor/PDF

From Wikitech-static
< Thumbor
Revision as of 08:15, 23 October 2017 by imported>Gilles (Created page with "PDF is handled by our custom Ghostscript engine. It handles multipage support via the custom "page" filter, which simply exposes the page URL parameter to the engine. It attem...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

PDF is handled by our custom Ghostscript engine. It handles multipage support via the custom "page" filter, which simply exposes the page URL parameter to the engine. It attempts to render the requested page and if that fails (eg. the requested page is out of bounds), it defaults to the first page.

The page is extracted as a high quality JPEG and passed to our default custom Imagemagick engine for actual resizing.