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.
| |
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.
| |
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.
It not set it, 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.
It 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.
And when content is smaller, existing whitespace is considered as part of margin space.
For all other 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.
If not set, it wil print all pages.
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 |
It 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.
It 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