## SavePdf(string, string, PdfOptimizationMode) {#savepdf_1}

Save all recognition results into a searchable PDF file, with the original images set as the background.

```csharp
public void SavePdf(string fullFileName, string embeddedFontPath = null, 
    PdfOptimizationMode optimizePdf = PdfOptimizationMode.MAXIMUM_QUALITY)
```

| Parameter | Type | Description |
| --- | --- | --- |
| fullFileName | String | Filename with a path for saving recognition result in the selected format. |
| embeddedFontPath | String | Optionally. Full path to the user font. |
| optimizePdf | PdfOptimizationMode | Reduce the PDF file size by lowering the quality of background images. By default, the original image quality is preserved. |

### See Also

* enum [PdfOptimizationMode](../../pdfoptimizationmode)
* class [OcrOutput](../../ocroutput)
* namespace [Aspose.OCR](../../ocroutput)
* assembly [Aspose.OCR](../../../)

---

## SavePdf(MemoryStream, string, PdfOptimizationMode) {#savepdf}

Save all recognition results into an in-memory searchable PDF document, embedding the original images as the background.

```csharp
public void SavePdf(MemoryStream stream, string embeddedFontPath = null, 
    PdfOptimizationMode optimizePdf = PdfOptimizationMode.MAXIMUM_QUALITY)
```

| Parameter | Type | Description |
| --- | --- | --- |
| stream | MemoryStream | MemoryStream for saving recognition result in the selected format. |
| embeddedFontPath | String | Optionally. Full path to the user font. |
| optimizePdf | PdfOptimizationMode | Reduce the PDF file size by lowering the quality of background images. By default, the original image quality is preserved. |

### See Also

* enum [PdfOptimizationMode](../../pdfoptimizationmode)
* class [OcrOutput](../../ocroutput)
* namespace [Aspose.OCR](../../ocroutput)
* assembly [Aspose.OCR](../../../)

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.OCR.dll -->
