---
title: "RenderHiRes Method (Stream, Product, DataSet, RenderingConfig)"
canonical: https://customerscanvas.com/docs/cc6/M_Aurigma_DesignAtoms_Rendering_ProductRenderer_RenderHiRes_4_9a35ec4d.htm
archived: true
applies_to:
  - product: "Customer's Canvas On-Premises"
  - product: "Design Atoms .NET"
    versions: ["6.0.0", "6.x (may differ)"]
---

**You’re viewing outdated documentation.** [View the latest Customer’s Canvas On-Premises documentation](https://customerscanvas.com/docs/on-premises/).

# RenderHiRes Method (Stream, Product, DataSet, RenderingConfig)

**Applies to:** Customer's Canvas On-Premises; Design Atoms .NET 6.0.0, 6.x (may differ) · **Archived documentation**
 
Renders a personalized [Product](https://customerscanvas.com/docs/cc6/T_Aurigma_DesignAtoms_Model_Product.htm.md) to a Stream.
 
**Namespace:** [Aurigma.DesignAtoms.Rendering](https://customerscanvas.com/docs/cc6/N_Aurigma_DesignAtoms_Rendering.htm.md) 
 **Assembly:** Aurigma.DesignAtoms (in Aurigma.DesignAtoms.dll)
 
## Syntax
  
```csharp
public void RenderHiRes(Stream stream,Product product,DataSet data,RenderingConfig renderingConfig
)
```
 
### Parameters
 
 - stream
     - Type: System.IO.Stream
An output Stream.

 - product
     - Type: [Aurigma.DesignAtoms.Model.Product](https://customerscanvas.com/docs/cc6/T_Aurigma_DesignAtoms_Model_Product.htm.md)
A [Product](https://customerscanvas.com/docs/cc6/T_Aurigma_DesignAtoms_Model_Product.htm.md) used as a template to create personalized copies.

 - data
     - Type: [Aurigma.DesignAtoms.Model.DataSet](https://customerscanvas.com/docs/cc6/T_Aurigma_DesignAtoms_Model_DataSet.htm.md)
A [DataSet](https://customerscanvas.com/docs/cc6/T_Aurigma_DesignAtoms_Model_DataSet.htm.md) providing variable data for the personalization. For more details about this parameter, you can refer to the [Rendering Web API](https://customerscanvas.com/docs/cc6/web-api-for-rendering.htm.md) topic.

 - renderingConfig
     - Type: [Aurigma.DesignAtoms.Configuration.RenderingConfig.RenderingConfig](https://customerscanvas.com/docs/cc6/T_Aurigma_DesignAtoms_Configuration_RenderingConfig_RenderingConfig.htm.md)
Rendering properties. When you skip this parameter or pass `null`, the [dafault configuration](https://customerscanvas.com/docs/cc6/configuring-high-resolution-and-proof-images.htm.md) is applied.
 
### Implements
 
[IProductRenderer.RenderHiRes(Stream, Product, DataSet, RenderingConfig)](https://customerscanvas.com/docs/cc6/M_Aurigma_DesignAtoms_Rendering_IProductRenderer_RenderHiRes_4_9a35ec4d.htm.md)
 
## Remarks
 This method renders a product based on a [DataSet](https://customerscanvas.com/docs/cc6/T_Aurigma_DesignAtoms_Model_DataSet.htm.md) - a collection of personalization rules. When you need a simple personalization rule, you can use the [RenderHiRes(Stream, Product, SurfaceData, RenderingConfig)](https://customerscanvas.com/docs/cc6/M_Aurigma_DesignAtoms_Rendering_ProductRenderer_RenderHiRes_4_565ce8ce.htm.md) method allowing you to specify a [SurfaceData](https://customerscanvas.com/docs/cc6/T_Aurigma_DesignAtoms_Model_SurfaceData.htm.md).
 
## Examples
  
```csharp
// Create an output file.
using (var fileStream = File.Create("vdp.pdf"))
{
    // Specify the personalization data.
    var surfaceData = new List<ItemsData> { new ItemsData
    {
        RootItems = new ItemDataCollection
        {
            { "Title", new ItemData {Text = "Premium Printing"} },
            { "CompanyLogo", new ItemData {Image = "https://example.com/logo.svg"} }
        }
    }};
    // Initialize a data set.
    var vdpData = new DataSet()
    {
        SurfacesData = new SurfaceDataCollection()
    };
    // Select surfaces and provide personalization data.
    vdpData.SurfacesData.Add(new SurfaceData
    {
        SurfaceBinding = new SurfaceBinding(0),
        Data = surfaceData
    });

    // Instantiate IProductRenderer and render the hi-res output.
    var renderer = Injector.Instance.Resolve<IProductRenderer>();
    renderer.RenderHiRes(fileStream, product, vdpData);
}
```
 
## See Also
  
### Reference
 
- [ProductRenderer Class](https://customerscanvas.com/docs/cc6/T_Aurigma_DesignAtoms_Rendering_ProductRenderer.htm.md)
- [RenderHiRes Overload](https://customerscanvas.com/docs/cc6/O_T_Aurigma_DesignAtoms_Rendering_ProductRenderer_RenderHiRes.htm.md)
- [Aurigma.DesignAtoms.Rendering Namespace](https://customerscanvas.com/docs/cc6/N_Aurigma_DesignAtoms_Rendering.htm.md)

### Manual
 
- [Rendering Products](https://customerscanvas.com/docs/cc6/rendering-products-in-daf.htm.md)
