Use Case
PDF & Document Thumbnails
Show users a visual preview of documents before they download. Increase engagement on file libraries and document platforms.
If you host PDFs or HTML documents, a visual thumbnail dramatically improves click-through. The SnapSharp API can render any publicly accessible document URL into a PNG thumbnail.
# Thumbnail for a PDF served via URL curl "https://api.snapsharp.dev/v1/screenshot\ ?url=https://yoursite.com/documents/report.pdf\ &width=800&height=1000\ &wait_until=networkidle\ &full_page=false" \ -H "Authorization: Bearer sk_live_..." \ -o thumbnail.png
Cache the result (default 1 hour) so you only render each document once. For HTML documents, use the /v1/html-to-image endpoint directly.