{"version":"1.0","type":"rich","title":"loading a pdf and rendering a page with pdf.js","description":"This example shows a single page of a PDF document rendered into an HTML canvas element. The code loads `helloworld.pdf` using pdf.js, retrieves the first page, and scales it by a factor of 1.5 before drawing it with the page’s `render` method. The canvas dimensions are set directly from the scaled viewport, and the rendering context is passed to pdf.js’s render API, producing a rasterized image of the page.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-655f0be4e8abe5c5bd67d9f6dd86ea49?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}