The PdfPrint type exposes the following members.
Properties
| Name | Description | |
|---|---|---|
| AllowCustomSize |
Used only in combination with PageAutoSize = true.
If the PDF page size isn't found in the list of available printer paper sizes, it will try to set the custom paper size.
Most virtual PDF printers support the custom paper size, and most physical printers don't.
The default value is false.
| |
| CheckPrinterExistence |
If set to false, it will not check for printer name existence if the non-default printer is used.
This is useful in a situation where checking of the printer existence is slow due to many printers or some network printer.
Default value is true.
| |
| Collate |
If set to true, it will collate the pages.
If set to false, it will not collate the pages.
If not set, it will use the printer default settings.
| |
| Copies |
Set the number of copies to be printed.
If not selected, it will use the printer default settings.
When used for multi document printing, it represents the number of copies for the entire printer job.
| |
| CustomScale |
If set, it will scale the page according to the specified value.
To be used, Scale must be set to CustomScale.
Default value is 100%.
| |
| DuplexType |
Duplex type used in printing.
If not set, it will use the printer default settings.
| |
| FastColorConversion |
When true, uses fast DeviceCMYK color conversion instead of ICC profiles.
This can significantly improve rendering performance (~5x faster) for PDFs with CMYK images
that have embedded ICC profiles, but may result in slightly different colors.
Default: false (ICC profiles enabled for accurate color reproduction).
| |
| ForceApplicationCopies |
Forces application-level copy handling regardless of driver DC_COPIES support.
Use when the printer driver reports copies support but doesn't actually honor dmCopies.
Default is false.
| |
| InverseForm |
It forces content of AdobeForm to be rendered before the page.
Needed in some rare cases.
It doesn't have effect in PrintWithAdobe method.
Default is false.
| |
| IsAutoRotate |
If set to true, it will override selected value for IsLandscape and it will set orientation to landscape or portrait based on the content width / height.
If not set, selected value for IsLandscape will be used.
It doesn't have effect in PrintWithAdobe method.
| |
| IsContentCentered |
If set to true, it will center content in standard Print method. It doesn't have effect in PrintWithAdobe method.
Default value is True.
| |
| IsLandscape |
If set to true, it will print as landscape if IsAutoRotate = false.
If set to false, it will print as portrait if IsAutoRotate = false.
If not set, it will use the printer default settings.
| |
| Margins |
If set, it will apply the margins. Units are 1/100 inch (i.e. 100 = 1 inch).
Setting Scale influences the print result.
When set to None, the margins are adjusted (if needed) to preserve the actual size of the print content.
If opposite margins are set, their values are canceled out, applying only the remaining value (if any).
If non-opposite margins are set, their value positions ("pushes") the content.
For all other Scale values, the print content size is adjusted (if needed) to preserve the specified margins.
Default value is (0,0,0,0).
| |
| PageAutoSize |
If set to true, automatically sets printer paper size according to page size of each page in the PDF. Size will be set if printer supports that paper size.
If successful, it will override PaperSize property.
Default value is false. It doesnt't have effect in PrintWithAdobe.
See also: AllowCustomSize | |
| Pages |
Defines the pages that are to be printed.
Pages and page intervals can be specified explicitly (ex.: 1,2,3,4), using ranges (ex.: 1-4),
and in forward (ex.: 1-4,5,6), reverse (ex.: 6,5,4-1) or mixed order (ex. 5,1-4,6).
If not set, all pages will be printed.
If PrintWithAdobe method is used, Pages can't have more than one interval defined.
| |
| PaperSize |
What type of paper size to use?
If not set, it will use the printer default settings.
See also: PageAutoSize | |
| PaperSource |
Paper source used for printing.
If not set, it will use the printer default settings.
| |
| PaperSourceTrayInfo |
List of paper source tray names and supported page sizes for that tray.
It must be manully set.
It is used in combination when PageAutoSize doesn't work on its own.
It is ignored if PageAutoSize = false.
| |
| PrinterName |
Name of the printer used for printing.
If not set, it will use the default printer.
| |
| PrinterResolution |
Printer resolution used for printing.
If not set, it will use the printer default settings.
| |
| PrintInColor |
If set to true, it will print in color.
If set to false, it will print as grayscale.
If not set, it will use the printer default settings.
| |
| RangeType |
Range type.
If not set, it will print both even and odd pages in the selected range interval.
| |
| Rotation | ||
| Scale |
If set, it will scale the page according to the chosen scale type.
If not set, it will use the Shrink scaling type.
If PrintWithAdobe method both Shrink and FitToMargins behaves like Shrink.
| |
| SettingDialog |
Use the printer settings dialog.
If not set, it will not use the printer settings dialog.
| |
| UseOldPrintingSystem |
This uses .NET built-in printing API. It is (much) slower for some printers, but for some printers this is the only way it will work.
Default value is false.
| |
| Watermark |
Watermark to be printed (it can be Image or Text).
|
See Also