View Image and Text PDFs in a Web Image Viewer

Easily convert PDF files into popular image formats, such as JPEG, PNG, BMP, or TIFF for greater view and archive flexibilities.

Convert PDFs to Images

Dynamsoft PDF Rasterizer provides a JavaScript API that enables developers to convert vector PDF files to raster images in web applications using just a few lines of code.

PDF Viewing in Web Applications

The PDF Rasterizer web library allows users to view PDFs in a web application. Integrated with the image viewer of Dynamic Web TWAIN, PDFs can be loaded and viewed in common browsers.

Works on Desktops and Mobile

The PDF rasterizer works within popular browsers across Windows 7+, macOS, and Ubuntu operating systems.

Android, iPadOS, and iOS are also supported.

JavaScript Sample for PDF Rasterizer

DWObject.Addon.PDF.SetResolution(200);
DWObject.Addon.PDF.SetConvertMode(EnumDWT_ConvertMode.CM_RENDERALL);
DWObject.LoadImage(
   "C:\\WebTWAIN\\Images\\ImageData.pdf",
   function() {console.log('PDF is successfully loaded.');},
   function(errorCode, errorString) {alert(errorString); }
);
                  

Improve efficiency
without sacrificing security

Dynamsoft SDKs are always built with data security in mind. The PDF Rasterizer SDK allows specifying a password to rasterize password-protected PDFs with ease.

Add PDF metadata
with JSON

Easily specify document properties and metadata with a JSON object to define author, compression type, creation date, title, version, etc.

Web PDF Rasterizer SDK Features

Features

  • High-speed viewing of PDF documents in web applications (ASP.NET, PHP, JSP, etc.)
  • Customize the resolution when rasterizing PDF documents
  • Save PDF documents as popular image formats: JPEG, TIFF, PDF files, PNG, BMP, multi-page TIFF, multi-page PDFs
  • Supports CCITT G3/G4, JPEG, Flate, LZW, RLE, and ZIP embedded images
  • Supports reading PDF/A images
  • Supports all font types: Type0, Type1, Type1C, Type3 and TrueType
  • Supports all three text rendering modes (full, stroke, clipping)
  • Supports all color spaces: RGB, Grayscale, CMYK, ICCBased, Lab, Indexed, Separation, DeviceN, and Pattern