You are browsing a read-only backup copy of Wikitech. The primary site can be found at wikitech.wikimedia.org

Thumbor/PDF

From Wikitech-static
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.