DynaPDF.GetInPrintSettings
--------------------------

Retrieves the print settings of the current open import file.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DynaPDF](component_DynaPDF.md) | [5.1](newinversion51.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "DynaPDF.GetInPrintSettings"; PDF; Selector ) 

**MBS**( **"DynaPDF.GetInPrintSettings";** /\* Retrieves the print settings of the current open import file. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$Selector**) /\* Which value to retrieve. Can be NumCopies, PickTrayByPDFSize, PrintRangesCount, PrintScaling, DuplexMode and PrintRanges.e.g. "NumCopies" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |
| Selector | Which value to retrieve. Can be NumCopies, PickTrayByPDFSize, PrintRangesCount, PrintScaling, DuplexMode and PrintRanges. | "NumCopies" |

### Result

Returns value or error.

### Description

Retrieves the print settings of the current open import file.   
The PDF file must be opened with [DynaPDF.OpenPDFFromContainer](DynaPDFOpenPDFFromContainer.md) or [DynaPDF.OpenPDFFromFile](DynaPDFOpenPDFFromFile.md) before the function can be used. The print settings are used to initialize the print dialog in a viewer application.   
NumCopies, PickTrayByPDFSize and PrintRangesCount return a number (-1 if undefined). PrintRanges returns a list of values for the ranges. DuplexMode returns values like FlipShortEdge, FlipLongEdge, Simplex or None. PrintScaling returns None or AppDefault.  
See also [DynaPDF.GetPrintSettings](DynaPDFGetPrintSettings.md) and [DynaPDF.SetPrintSettings](DynaPDFSetPrintSettings.md).  
See also [GetInPrintSettings](https://www.monkeybreadsoftware.com/DynaPDF-Manual/GetInPrintSettings.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.GetPrintSettings](DynaPDFGetPrintSettings.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.OpenPDFFromContainer](DynaPDFOpenPDFFromContainer.md)
- [DynaPDF.OpenPDFFromFile](DynaPDFOpenPDFFromFile.md)
- [DynaPDF.SetPrintSettings](DynaPDFSetPrintSettings.md)

This function checks for a license.

Created 14th March 2015 , last changed 24th June 2024

  
[DynaPDF.GetInPDFVersionEx](DynaPDFGetInPDFVersionEx.md) - [DynaPDF.GetInRepairMode](DynaPDFGetInRepairMode.md)

[HTML Version](DynaPDFGetInPrintSettings.shtml)