InputPdfPage
Represents a page of pdf to be added to the print job.
public class InputPdfPage : IDisposable
Public Class InputPdfPage
Implements IDisposable
Inheritance: ObjectInputPdfPage
Implements: IDisposable
Licensing Info
This class is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
Examples
The following examples creates a print job, adds PDF pages to print job and prints the job.Imports System
Imports ceTe.DynamicPDF.Printing
Module MyModule
Sub Main()
' Create a print job
Dim MyPrintJob As PrintJob = New PrintJob("PrinterName")
' Create an InputPdf object to hold the source PDF
Dim MyInputPdf As InputPdf = New InputPdf("C:\MyDocument.pdf")
' Get pages from the input PDF
Dim MyFirstPage As InputPdfPage = MyInputPdf.Pages(0)
Dim MyFourthPage As InputPdfPage = MyInputPdf.Pages(3)
' Add pages to the print job
MyPrintJob.Pages.Add(MyFirstPage)
MyPrintJob.Pages.Add(MyFourthPage)
' Print the job
MyPrintJob.Print()
End Sub
End Module
using System;
using ceTe.DynamicPDF.Printing;
class MyClass
{
static void Main()
{
// Create a print job
PrintJob printJob = new PrintJob("PrinterName");
// Create an InputPdf object to hold the source PDF
InputPdf inputPdf = new InputPdf(@"C:\MyDocument.pdf");
// Get pages from the input PDF
InputPdfPage firstPage = inputPdf.Pages[0];
InputPdfPage fourthPage = inputPdf.Pages[3];
// Add pages to the print job
printJob.Pages.Add(firstPage);
printJob.Pages.Add(fourthPage);
// Print the job
printJob.Print();
}
}
Properties
Height | Gets the height of the PDF page. |
Width | Gets the width of the PDF page. |
Methods
Dispose() | Clean up any resources being used. |
Equals(Object) | Determines whether the specified Object is equal to the current Object . (Inherited from Object) |
GetHashCode() | Serves as a hash function for a particular type. (Inherited from Object) |
GetType() | Gets the Type of the current instance. (Inherited from Object) |
ToString() | Returns a String that represents the current Object . (Inherited from Object) |