PDF Rasterizer SDK for Web Applications

View and Convert PDFs to Images in JavaScript; Add-on to Dynamic Web TWAIN

Convert PDF to Images in JavaScript

Dynamsoft PDF Rasterizer provides JavaScript API which enables you to convert vector PDF files to raster images in your Web application with a few lines of code.

Convert PDF to Images in JavaScript

PDF Viewing in your Web Application

The PDF Rasterizer Web library allows you to view PDFs directly in your Web application. Integrated with the image viewer of Dynamic Web TWAIN, you can load and view PDFs in all the mainstream browser on Windows.

PDF Viewing in your Web Application

PDF Rasterizer in JavaScript Sample

DWObject.Addon.PDF.Download(
   "http://localhost/dwt/addon/Pdf.zip",
   function() {console.log('Successfully Downloaded PDF add-on');},
   function(errorCode, errorString) {alert(errorString); }
);
DWObject.Addon.PDF.SetResolution(200);
DWObject.Addon.PDF.SetConvertMode(EnumDWT_ConverMode.CM_RENDERALL);
DWObject.LoadImage(
   "C:\\WebTWAIN\\Images\\ImageData.pdf", 
   function() {console.log('PDF is successfully loaded.');},
   function(errorCode, errorString) {alert(errorString); }
);                  

Web PDF Rasterizer SDK Features

Features

  • High-speed viewing of PDF documents in your Web applications (ASP.NET, PHP, JSP etc).
  • Customize the resolution when rasterizing PDF documents.
  • Save PDF documents into popular image formats, including JPEG, TIFF, PDF files, PNG, and BMP. Multi-page TIFF and PDF are also supported.
  • 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 colorspaces: RGB, Gray, CMYK, ICCBased, Lab, Indexed, Separation, DeviceN and Pattern.