> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter-d02e98a0-mintlify-5b6e02fd.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# PDFParserEngine - Go SDK

> PDFParserEngine type definition

<Warning>
  The Go SDK and docs are currently in beta.
  Report issues on [GitHub](https://github.com/OpenRouterTeam/go-sdk/issues).
</Warning>

The engine to use for parsing PDF files. "pdf-text" is deprecated and automatically redirected to "cloudflare-ai".

## Supported Types

### PDFParserEngineEnum

```go lines theme={null}
pdfParserEngine := components.CreatePDFParserEnginePDFParserEngineEnum(components.PDFParserEngineEnum{/* values here */})
```

### PDFParserEnginePDFText

```go lines theme={null}
pdfParserEngine := components.CreatePDFParserEnginePDFParserEnginePDFText(components.PDFParserEnginePDFText{/* values here */})
```

## Union Discrimination

Use the `Type` field to determine which variant is active, then access the corresponding field:

```go lines theme={null}
switch pdfParserEngine.Type {
	case components.PDFParserEngineTypePDFParserEngineEnum:
		// pdfParserEngine.PDFParserEngineEnum is populated
	case components.PDFParserEngineTypePDFParserEnginePDFText:
		// pdfParserEngine.PDFParserEnginePDFText is populated
}
```
