---
title: "PdfWriter Constructor (String, OutputIntent)"
canonical: https://www.graphicsmill.com/docs/gm/C_Aurigma_GraphicsMill_Codecs_PdfWriter_ctor_2_4d0ad644.htm
archived: false
applies_to:
  - product: "Graphics Mill"
    versions: ["12.1", "6.x-12.x (may differ)"]
    entity_id: "https://www.graphicsmill.com/#software-application"
---

# PdfWriter Constructor (String, OutputIntent)

**Applies to:** Graphics Mill 12.1, 6.x-12.x (may differ)
 
Initializes a new instance of the [PdfWriter](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_PdfWriter.htm.md) class using the specified file name and [OutputIntent](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_OutputIntent.htm.md).
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public PdfWriter(string fileName,OutputIntent outputIntent
)
```
 
### Parameters
 
 - fileName
     - Type: System.String
The name of the file to create this writer on.

 - outputIntent
     - Type: [Aurigma.GraphicsMill.Codecs.OutputIntent](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_OutputIntent.htm.md)
The output intent.
   
## See Also

### Reference

- [PdfWriter Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_PdfWriter.htm.md)
- [PdfWriter Overload](https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_Codecs_PdfWriter_ctor.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Codecs.htm.md)
