# How to specify which InfoPath view to convert from your code?

Nutrient Document Converter comes with extensive [View selection facilities for InfoPath forms](/guides/document-converter/sharepoint/knowledge-base/how-can-i-specify-which-infopath-view-s-to-convert.md). These facilities are relatively easy to use, but when you work directly with our Web Services interface, it may not be immediately clear how to specify the view name.

For more information, see our [Developer guide](/guides/document-converter/document-converter-services/conversion/csharp.md). The guide describes how to create a Web Services example that allows a specific conversion view to be selected. This sample uses C#, but the code is almost identical in other environments such as [Java](/guides/document-converter/document-converter-services/conversion/java.md).

Start by creating the example&nbsp;as mentioned in [Convert Office files to PDF effortlessly](/blog/converting-office-files-to-pdf-format-using-a-web-services-based-interface/)&nbsp;and make sure it works without error when the InfoPath XML file is provided as input.

Add logic to specify which view to convert after the following line:

```csharp

conversionSettings.Quality = ConversionQuality.OptimizeForPrint;

```

Add the following code and replace "Your View Name" with the name of the view you want to convert:

```csharp

ConverterSpecificSettings_InfoPath css = new ConverterSpecificSettings_InfoPath();
css.AutoTrustForms = false;
css.ConvertAttachments = true;
css.ProcessFullTrustForms = true;
css.StripDataObjects = true;
css.StripDotNETCode = true;
css.ConversionViews = new InfoPathView[1];
css.ConversionViews[0] = new InfoPathView();
css.ConversionViews[0].Name = "Your View Name";
conversionSettings.ConverterSpecificSettings = css;

```

You can add multiple `InfoPathView` objects to convert and merge multiple views in a single operation.

---

## Related pages

- [How does the Conversion Service handle concurrency and how can it be adjusted?](/guides/document-converter/document-converter-services/knowledge-base/how-does-the-conversion-service-deal-with-concurrency-and-how-to-tweak-it.md)
- [How does Document Converter handle InfoPath attachments?](/guides/document-converter/document-converter-services/knowledge-base/how-does-the-pdf-converter-deal-with-infopath-attachments.md)
- [Using Document Converter from PowerShell](/guides/document-converter/document-converter-services/knowledge-base/using-the-pdf-converter-from-powershell.md)
- [Knowledge base: SharePoint Document Converter](/guides/document-converter/document-converter-services/knowledge-base.md)
- [Common code to open and close DocumentConverterServiceClient](/guides/document-converter/document-converter-services/knowledge-base/open-and-close-documentconverterserviceclient.md)
- [How to use GdPicture in your code?](/guides/document-converter/document-converter-services/knowledge-base/how-to-use-gdpicture-from-the-code.md)
- [How to make HTML-to-PDF conversion more secure?](/guides/document-converter/document-converter-services/knowledge-base/make-html-to-pdf-conversion-more-secure.md)
- [Do you have sample code for KVP Extraction functionality?](/guides/document-converter/document-converter-services/knowledge-base/sample-code-for-kvp-extraction.md)
- [Do you have sample code for Text Extraction functionality?](/guides/document-converter/document-converter-services/knowledge-base/sample-code-for-text-extraction.md)

