Render a rotated and cropped PDF page as WebP
Admin ·
The second color reference sheet is cropped and rotated. Its displayed width, height and position differ from the underlying page box. Use this sheet to check how the renderer sizes a WebP.
Render page 2 in its displayed orientation
Open the Color reference sheets PDF. Enter 2 in Pages, select 72 PPI and set WebP quality to 90%. The visible box measures 180 × 260 points before rotation and 260 × 180 points on screen.
Select Convert to WebP. The result is 001-page-2.webp at 260 × 180 pixels. The white background and visible colors are part of the image.
Download the Color reference sheets sampleMozilla PDF.js — Rendering the page
Compare 150 PPI with 72 PPI
Choose 150 PPI and convert the same page. The preview reports 542 × 375 pixels because each displayed point is multiplied by 150 divided by 72, then the pixel dimensions round up.
Changing WebP quality affects the encoding and the visual detail that survives compression. Use the resolution control to change the pixel dimensions.
Mozilla PDF.js — Rendering the pageRFC 9649 — WebP image format
Put the rotated page first and last in a ZIP
Enter 2, 1, 2 and select Convert to WebP. The result cards follow the supplied page order. Download all as ZIP.
Open the archive and check that it contains 001-page-2.webp, 002-page-1.webp and 003-page-2.webp. The prefix tracks output order while the second number records the source page.
Common questions
Does the WebP keep selectable text or links?
The WebP stores the rendered appearance as pixels. Use the original PDF when you need its selectable text or interactive links.
Why can a large page fail at 300 PPI?
The converter caps one page at 12 million pixels and limits either side to 8,192 pixels. Lower the resolution to fit the page within those limits.