---
Product: Aspose.PDF
Platform: go
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/go/imagetodocumentoptions
---

# ImageToDocumentOptions

## Overview

`ImageToDocumentOptions` is a type in Aspose.PDF FOSS for Go.

ImageToDocumentOptions controls page sizing for ImageToDocument.

Properties: `MarginBottom`, `MarginLeft`, `MarginRight`, `MarginTop`, `PageHeight`, `PageWidth`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `PageWidth` | `float64` | Read/Write | Gets the page width. |
| `PageHeight` | `float64` | Read/Write | Gets the page height. |
| `MarginLeft` | `float64` | Read/Write | Gets the margin left. |
| `MarginRight` | `float64` | Read/Write | Gets the margin right. |
| `MarginTop` | `float64` | Read/Write | Gets the margin top. |
| `MarginBottom` | `float64` | Read/Write | Gets the margin bottom. |

## See Also

- [Aspose.PDF — Enterprise API Reference](https://reference.aspose.com/pdf/)