---
layout: default-layout
noTitleIndex: true
needAutoGenerateSidebar: true
title: Can I import existing images or PDF documents using the Dynamic Web TWAIN SDK?
keywords: Dynamic Web TWAIN, Capture/ Image Source, import, existing images
breadcrumbText: Can I import existing images or PDF documents using the Dynamic Web TWAIN SDK?
description: Can I import existing images or PDF documents using the Dynamic Web TWAIN SDK?
date: 2021-12-08 03:01:32 +0000
last_modified: 2025-09-18 17:09:35 +0000
---

# Capture/Image Source

## Can I import existing images or PDF documents using the Dynamic Web TWAIN SDK?

Yes, Dynamic Web TWAIN supports loading PNG, JPG, BMP, image-only PDF, and TIFF files. But if you need to support text-based PDF files, you also require the <a href="https://www.dynamsoft.com/web-twain/pdf-to-image-javascript/" target="_blank">PDF Rasterizer Addon</a>.

**Code snippet**

```javascript
var onSuccess = function() {
    console.log("Loaded a file successfully!");
};
var onFailure = function(errorCode, errorString) {
    console.log(errorString);
};
DWTObject.IfShowFileDialog = true;
// PDF Rasterizer Addon is used here to ensure text-based PDF support
DWTObject.Addon.PDF.SetReaderOptions({
    convertMode: Dynamsoft.DWT.EnumDWT_ConvertMode.CM_RENDERALL,
    renderOptions:{
        renderAnnotations: true,
        resolution: 300,
    }
});

DWTObject.LoadImage();
```

#### Related Links
[PDF Rasterizer Guide](/_articles/extended-usage/pdf-processing.md){:target="_blank"}.
[API Documentation](/_articles/info/api/Addon_PDF.md)