PdfViewer.PrintDocuments
PrintDocuments(params Document[])
Prints multiple PDF documents using default printer and page settings.
public static void PrintDocuments(params Document[] documents)
Parameter | Type | Description |
---|---|---|
documents | Document[] | An array of Document objects representing the PDF documents to be printed. |
Remarks
This method allows printing multiple PDF documents in a single print job.
Examples
[C#]
using (Aspose.Pdf.Document document1 = new Aspose.Pdf.Document(dataDir + "PrintDocument.pdf"),
document2 = new Aspose.Pdf.Document(dataDir + "Print-PageRange.pdf"),
document3 = new Aspose.Pdf.Document(dataDir + "35925_1_3.xps", new Aspose.Pdf.XpsLoadOptions()))
{
Aspose.Pdf.Facades.PdfViewer.PrintDocuments(document1, document2, document3);
}
[VisualBasic]
Using document1 As New Aspose.Pdf.Document(dataDir & "PrintDocument.pdf"),
document2 As New Aspose.Pdf.Document(dataDir & "Print-PageRange.pdf"),
document3 As New Aspose.Pdf.Document(dataDir & "35925_1_3.xps", New Aspose.Pdf.XpsLoadOptions())
Aspose.Pdf.Facades.PdfViewer.PrintDocuments(document1, document2, document3)
End Using
See Also
- class Document
- class PdfViewer
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
PrintDocuments(params string[])
Prints multiple PDF documents using default printer and page settings.
public static void PrintDocuments(params string[] filePaths)
Parameter | Type | Description |
---|---|---|
filePaths | String[] | An array of file paths representing the PDF documents to be printed. |
Remarks
This method allows printing multiple PDF documents in a single print job. Ensure that the provided file paths are valid and accessible.
Examples
[C#]
var path1 = dataDir + "PrintDocument.pdf";
var path2 = dataDir + "Print-PageRange.pdf";
var path3 = dataDir + "35925_1_3.xps";
Aspose.Pdf.Facades.PdfViewer.PrintDocuments(path1, path2, path3);
[VisualBasic]
Dim path1 As String = dataDir & "PrintDocument.pdf"
Dim path2 As String = dataDir & "Print-PageRange.pdf"
Dim path3 As String = dataDir & "35925_1_3.xps"
Aspose.Pdf.Facades.PdfViewer.PrintDocuments(path1, path2, path3)
See Also
- class PdfViewer
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
PrintDocuments(params Stream[])
Prints multiple PDF documents from the provided streams using default printer and page settings.
public static void PrintDocuments(params Stream[] documentStreams)
Parameter | Type | Description |
---|---|---|
documentStreams | Stream[] | An array of streams containing the PDF documents to be printed. |
Remarks
This method allows printing multiple PDF documents in a single operation. Ensure that the provided streams are valid and accessible during the printing process.
Examples
[C#]
using (Stream stream1 = File.OpenRead(dataDir + "PrintDocument.pdf"),
stream2 = File.OpenRead(dataDir + "Print-PageRange.pdf"),
stream3 = File.OpenRead(dataDir + "35925_1_3.xps"))
{
Aspose.Pdf.Facades.PdfViewer.PrintDocuments(stream1, stream2, stream3);
}
[VisualBasic]
Using stream1 As Stream = File.OpenRead(dataDir & "PrintDocument.pdf"),
stream2 As Stream = File.OpenRead(dataDir & "Print-PageRange.pdf"),
stream3 As Stream = File.OpenRead(dataDir & "35925_1_3.xps")
Aspose.Pdf.Facades.PdfViewer.PrintDocuments(stream1, stream2, stream3)
End Using
See Also
- class PdfViewer
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
PrintDocuments(PrinterSettings, params Document[])
Prints multiple PDF documents using the specified printer settings.
public static void PrintDocuments(PrinterSettings printerSettings, params Document[] documents)
Parameter | Type | Description |
---|---|---|
printerSettings | PrinterSettings | The PrinterSettings object that specifies the printer settings to use for printing. |
documents | Document[] | An array of Document objects representing the PDF documents to be printed. |
Remarks
This method allows printing multiple PDF documents with custom printer settings.
Examples
[C#]
using (Aspose.Pdf.Document document1 = new Aspose.Pdf.Document(dataDir + "PrintDocument.pdf"),
document2 = new Aspose.Pdf.Document(dataDir + "Print-PageRange.pdf"),
document3 = new Aspose.Pdf.Document(dataDir + "35925_1_3.xps", new Aspose.Pdf.XpsLoadOptions()))
{
var printDocument = new PrintDocument();
Aspose.Pdf.Printing.PrinterSettings printerSettings = new Aspose.Pdf.Printing.PrinterSettings();
printerSettings.PrinterName = printDocument.PrinterSettings.PrinterName;
Aspose.Pdf.Facades.PdfViewer.PrintDocuments(printerSettings, document1, document2, document3);
}
[VisualBasic]
Using document1 As New Aspose.Pdf.Document(dataDir & "PrintDocument.pdf"),
document2 As New Aspose.Pdf.Document(dataDir & "Print-PageRange.pdf"),
document3 As New Aspose.Pdf.Document(dataDir & "35925_1_3.xps", New Aspose.Pdf.XpsLoadOptions())
Dim printDocument As New PrintDocument()
Dim printerSettings As New Aspose.Pdf.Printing.PrinterSettings()
printerSettings.PrinterName = printDocument.PrinterSettings.PrinterName
Aspose.Pdf.Facades.PdfViewer.PrintDocuments(printerSettings, document1, document2, document3)
End Using
See Also
- class PrinterSettings
- class Document
- class PdfViewer
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
PrintDocuments(PrinterSettings, params string[])
Prints multiple PDF documents using the specified printer settings.
public static void PrintDocuments(PrinterSettings printerSettings, params string[] filePaths)
Parameter | Type | Description |
---|---|---|
printerSettings | PrinterSettings | The PrinterSettings object containing printer configuration details. |
filePaths | String[] | An array of file paths representing the PDF documents to be printed. |
Remarks
This method allows printing multiple PDF documents in a single print job. Ensure that the provided file paths are valid and accessible.
Examples
[C#]
var path1 = dataDir + "PrintDocument.pdf";
var path2 = dataDir + "Print-PageRange.pdf";
var path3 = dataDir + "35925_1_3.xps";
var printDocument = new PrintDocument();
Aspose.Pdf.Printing.PrinterSettings printerSettings = new Aspose.Pdf.Printing.PrinterSettings();
printerSettings.PrinterName = printDocument.PrinterSettings.PrinterName;
Aspose.Pdf.Facades.PdfViewer.PrintDocuments(printerSettings, path1, path2, path3);
[VisualBasic]
Dim path1 As String = dataDir & "PrintDocument.pdf"
Dim path2 As String = dataDir & "Print-PageRange.pdf"
Dim path3 As String = dataDir & "35925_1_3.xps"
Dim printDocument As New PrintDocument()
Dim printerSettings As New Aspose.Pdf.Printing.PrinterSettings()
printerSettings.PrinterName = printDocument.PrinterSettings.PrinterName
Aspose.Pdf.Facades.PdfViewer.PrintDocuments(printerSettings, path1, path2, path3)
See Also
- class PrinterSettings
- class PdfViewer
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
PrintDocuments(PrinterSettings, params Stream[])
Prints multiple PDF documents from the provided streams using the specified printer settings.
public static void PrintDocuments(PrinterSettings printerSettings, params Stream[] documentStreams)
Parameter | Type | Description |
---|---|---|
printerSettings | PrinterSettings | The printer settings to be applied during the printing process. |
documentStreams | Stream[] | An array of streams containing the PDF documents to be printed. |
Remarks
This method allows printing multiple PDF documents in a single operation. Ensure that the provided streams are valid and accessible during the printing process.
Examples
[C#]
using (Stream stream1 = File.OpenRead(dataDir + "PrintDocument.pdf"),
stream2 = File.OpenRead(dataDir + "Print-PageRange.pdf"),
stream3 = File.OpenRead(dataDir + "35925_1_3.xps"))
{
var printDocument = new PrintDocument();
Aspose.Pdf.Printing.PrinterSettings printerSettings = new Aspose.Pdf.Printing.PrinterSettings();
printerSettings.PrinterName = printDocument.PrinterSettings.PrinterName;
Aspose.Pdf.Facades.PdfViewer.PrintDocuments(printerSettings, stream1, stream2, stream3);
}
[VisualBasic]
Using stream1 As Stream = File.OpenRead(dataDir & "PrintDocument.pdf"),
stream2 As Stream = File.OpenRead(dataDir & "Print-PageRange.pdf"),
stream3 As Stream = File.OpenRead(dataDir & "35925_1_3.xps")
Dim printDocument As New PrintDocument()
Dim printerSettings As New Aspose.Pdf.Printing.PrinterSettings()
printerSettings.PrinterName = printDocument.PrinterSettings.PrinterName
Aspose.Pdf.Facades.PdfViewer.PrintDocuments(printerSettings, stream1, stream2, stream3)
End Using
See Also
- class PrinterSettings
- class PdfViewer
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
PrintDocuments(PrinterSettings, PageSettings, params Document[])
Prints multiple PDF documents using the specified printer and page settings.
public static void PrintDocuments(PrinterSettings printerSettings, PageSettings pageSettings,
params Document[] documents)
Parameter | Type | Description |
---|---|---|
printerSettings | PrinterSettings | The PrinterSettings object that specifies the printer settings to use for printing. |
pageSettings | PageSettings | The PageSettings object that specifies the page settings to use for printing. |
documents | Document[] | An array of Document objects representing the PDF documents to be printed. |
Remarks
This method allows printing multiple PDF documents with custom printer and page settings.
Examples
[C#]
using (Aspose.Pdf.Document document1 = new Aspose.Pdf.Document(dataDir + "PrintDocument.pdf"),
document2 = new Aspose.Pdf.Document(dataDir + "Print-PageRange.pdf"),
document3 = new Aspose.Pdf.Document(dataDir + "35925_1_3.xps", new Aspose.Pdf.XpsLoadOptions()))
{
var printDocument = new PrintDocument();
Aspose.Pdf.Printing.PrinterSettings printerSettings = new Aspose.Pdf.Printing.PrinterSettings();
printerSettings.PrinterName = printDocument.PrinterSettings.PrinterName;
Aspose.Pdf.Printing.PageSettings pageSettings = new Aspose.Pdf.Printing.PageSettings();
pageSettings.PaperSize = Aspose.Pdf.Printing.PaperSizes.A4;
pageSettings.Margins = new Aspose.Pdf.Devices.Margins(0, 0, 0, 0);
Aspose.Pdf.Facades.PdfViewer.PrintDocuments(printerSettings, pageSettings, document1, document2, document3);
}
[VisualBasic]
Using document1 As New Aspose.Pdf.Document(dataDir & "PrintDocument.pdf"),
document2 As New Aspose.Pdf.Document(dataDir & "Print-PageRange.pdf"),
document3 As New Aspose.Pdf.Document(dataDir & "35925_1_3.xps", New Aspose.Pdf.XpsLoadOptions())
Dim printDocument As New PrintDocument()
Dim printerSettings As New Aspose.Pdf.Printing.PrinterSettings()
printerSettings.PrinterName = printDocument.PrinterSettings.PrinterName
Dim pageSettings As New Aspose.Pdf.Printing.PageSettings()
pageSettings.PaperSize = Aspose.Pdf.Printing.PaperSizes.A4
pageSettings.Margins = New Aspose.Pdf.Devices.Margins(0, 0, 0, 0)
Aspose.Pdf.Facades.PdfViewer.PrintDocuments(printerSettings, pageSettings, document1, document2, document3)
End Using
See Also
- class PrinterSettings
- class PageSettings
- class Document
- class PdfViewer
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
PrintDocuments(PrinterSettings, PageSettings, params string[])
Prints multiple PDF documents using the specified printer and page settings.
public static void PrintDocuments(PrinterSettings printerSettings, PageSettings pageSettings,
params string[] filePaths)
Parameter | Type | Description |
---|---|---|
printerSettings | PrinterSettings | The PrinterSettings object containing printer configuration details. |
pageSettings | PageSettings | The PageSettings object specifying page layout and settings. |
filePaths | String[] | An array of file paths representing the PDF documents to be printed. |
Remarks
This method allows printing multiple PDF documents in a single print job. Ensure that the provided file paths are valid and accessible.
Examples
[C#]
var path1 = dataDir + "PrintDocument.pdf";
var path2 = dataDir + "Print-PageRange.pdf";
var path3 = dataDir + "35925_1_3.xps";
var printDocument = new PrintDocument();
Aspose.Pdf.Printing.PrinterSettings printerSettings = new Aspose.Pdf.Printing.PrinterSettings();
printerSettings.PrinterName = printDocument.PrinterSettings.PrinterName;
Aspose.Pdf.Printing.PageSettings pageSettings = new Aspose.Pdf.Printing.PageSettings();
pageSettings.PaperSize = Aspose.Pdf.Printing.PaperSizes.A4;
pageSettings.Margins = new Aspose.Pdf.Devices.Margins(0, 0, 0, 0);
Aspose.Pdf.Facades.PdfViewer.PrintDocuments(printerSettings, pageSettings, path1, path2, path3);
[VisualBasic]
Dim path1 As String = dataDir & "PrintDocument.pdf"
Dim path2 As String = dataDir & "Print-PageRange.pdf"
Dim path3 As String = dataDir & "35925_1_3.xps"
Dim printDocument As New PrintDocument()
Dim printerSettings As New Aspose.Pdf.Printing.PrinterSettings()
printerSettings.PrinterName = printDocument.PrinterSettings.PrinterName
Dim pageSettings As New Aspose.Pdf.Printing.PageSettings()
pageSettings.PaperSize = Aspose.Pdf.Printing.PaperSizes.A4
pageSettings.Margins = New Aspose.Pdf.Devices.Margins(0, 0, 0, 0)
Aspose.Pdf.Facades.PdfViewer.PrintDocuments(printerSettings, pageSettings, path1, path2, path3)
See Also
- class PrinterSettings
- class PageSettings
- class PdfViewer
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
PrintDocuments(PrinterSettings, PageSettings, params Stream[])
Prints multiple PDF documents from the provided streams using the specified printer and page settings.
public static void PrintDocuments(PrinterSettings printerSettings, PageSettings pageSettings,
params Stream[] documentStreams)
Parameter | Type | Description |
---|---|---|
printerSettings | PrinterSettings | The printer settings to be applied during the printing process. |
pageSettings | PageSettings | The page settings to be applied to each document during printing. |
documentStreams | Stream[] | An array of streams containing the PDF documents to be printed. |
Remarks
This method allows printing multiple PDF documents in a single operation. Ensure that the provided streams are valid and accessible during the printing process.
Examples
[C#]
using (Stream stream1 = File.OpenRead(dataDir + "PrintDocument.pdf"),
stream2 = File.OpenRead(dataDir + "Print-PageRange.pdf"),
stream3 = File.OpenRead(dataDir + "35925_1_3.xps"))
{
var printDocument = new PrintDocument();
Aspose.Pdf.Printing.PrinterSettings printerSettings = new Aspose.Pdf.Printing.PrinterSettings();
printerSettings.PrinterName = printDocument.PrinterSettings.PrinterName;
Aspose.Pdf.Printing.PageSettings pageSettings = new Aspose.Pdf.Printing.PageSettings();
pageSettings.PaperSize = Aspose.Pdf.Printing.PaperSizes.A4;
pageSettings.Margins = new Aspose.Pdf.Devices.Margins(0, 0, 0, 0);
Aspose.Pdf.Facades.PdfViewer.PrintDocuments(printerSettings, pageSettings, stream1, stream2, stream3);
}
[VisualBasic]
Using stream1 As Stream = File.OpenRead(dataDir & "PrintDocument.pdf"),
stream2 As Stream = File.OpenRead(dataDir & "Print-PageRange.pdf"),
stream3 As Stream = File.OpenRead(dataDir & "35925_1_3.xps")
Dim printDocument As New PrintDocument()
Dim printerSettings As New Aspose.Pdf.Printing.PrinterSettings()
printerSettings.PrinterName = printDocument.PrinterSettings.PrinterName
Dim pageSettings As New Aspose.Pdf.Printing.PageSettings()
pageSettings.PaperSize = Aspose.Pdf.Printing.PaperSizes.A4
pageSettings.Margins = New Aspose.Pdf.Devices.Margins(0, 0, 0, 0)
Aspose.Pdf.Facades.PdfViewer.PrintDocuments(printerSettings, pageSettings, stream1, stream2, stream3)
End Using
See Also
- class PrinterSettings
- class PageSettings
- class PdfViewer
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF