Class PrintFilePDF
It represents a PDF file in the server that will be printed at the client side.
Inherited Members
Namespace: Neodynamic.SDK.Web
Assembly: cs.temp.dll.dll
Syntax
public class PrintFilePDF : PrintFile
Constructors
PrintFilePDF(Byte[], String)
Creates an instance of the PrintFilePDF class with the specified binary content and name.
Declaration
public PrintFilePDF(byte[] binaryContent, string fileName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | binaryContent | The binary content of the PDF file at the server side that will be printed at the client side. |
| System.String | fileName | The file name that will be created at the client side. |
PrintFilePDF(Byte[], String, Int32)
Creates an instance of the PrintFilePDF class with the specified binary content, name and num of printing copies.
Declaration
public PrintFilePDF(byte[] binaryContent, string fileName, int copies)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | binaryContent | The binary content of the PDF file at the server side that will be printed at the client side. |
| System.String | fileName | The file name that will be created at the client side. |
| System.Int32 | copies | The num of copies for printing this file. |
PrintFilePDF(String, String)
Creates an instance of the PrintFilePDF class with the specified path and name.
Declaration
public PrintFilePDF(string filePath, string fileName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | filePath | The path of the PDF at the server side that will be printed at the client side. |
| System.String | fileName | The file name that will be created at the client side. |
PrintFilePDF(String, String, Int32)
Creates an instance of the PrintFilePDF class with the specified path, name and num of printing copies.
Declaration
public PrintFilePDF(string filePath, string fileName, int copies)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | filePath | The path of the PDF at the server side that will be printed at the client side. |
| System.String | fileName | The file name that will be created at the client side. |
| System.Int32 | copies | The num of copies for printing this file. |
Properties
AutoCenter
Gets or sets whether to center the content. Default is False.
Declaration
public bool AutoCenter { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
AutoRotate
Gets or sets whether to automatically select the print orientation (Portrait or Landscape) that best matches the content. Default is False.
Declaration
public bool AutoRotate { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
DuplexPrinting
Gets or sets whether to perform manual duplex printing. Default is False.
Declaration
public bool DuplexPrinting { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Manual duplex lets you print on both sides of a sheet by ordering the print job so that after the first half of the print job has been printed, the job can be flipped over for the second side printing.
DuplexPrintingDialogMessage
Gets or sets the dialog message to prompt to the user to flip pages after first half of print job has been printed. Default is an empty string.
Declaration
public string DuplexPrintingDialogMessage { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
PagesRange
Gets or sets a subset of pages to print. It can be individual page numbers, a range, or a combination. For example: 1, 5-10, 25, 50. Default is an empty string which means print all pages.
Declaration
public string PagesRange { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Password
Gets or sets the password for this PDF file.
Declaration
public string Password { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
PrintAnnotations
Gets or sets whether to print any annotations, if any, available in the PDF document. Default is False.
Declaration
public bool PrintAnnotations { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
PrintAsGrayscale
Gets or sets whether to print the PDF document with color images, texts, or other objects as shades of gray. Default is False.
Declaration
public bool PrintAsGrayscale { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
PrintInReverseOrder
Gets or sets whether pages are printed in reverse order. Default is False.
Declaration
public bool PrintInReverseOrder { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
PrintRotation
Gets or sets the print rotation. Default is None.
Declaration
public PrintRotation PrintRotation { get; set; }
Property Value
| Type | Description |
|---|---|
| PrintRotation |
Sizing
Gets or sets the print sizing option. Default is Fit.
Declaration
public Sizing Sizing { get; set; }
Property Value
| Type | Description |
|---|---|
| Sizing |