VintaSoft Imaging .NET SDK 12.4: Documentation for .NET developer
Vintasoft.Imaging.Pdf.JavaScriptApi Namespace / PdfJsApp Class / PrintDoc(PdfJsDoc,Boolean,Int32,Int32,Boolean,Boolean,Boolean,Boolean,Boolean) Method
Syntax Requirements SeeAlso
In This Topic
    PrintDoc(PdfJsDoc,Boolean,Int32,Int32,Boolean,Boolean,Boolean,Boolean,Boolean) Method (PdfJsApp)
    In This Topic
    Prints all or a specific number of pages of specified document.
    Syntax
    'Declaration
    
    Public Overridable Sub PrintDoc( _
    ByVal doc
    The Document to print.
    As PdfJsDoc, _
    ByVal bUI
    A value indicating whether the User Interface must be shown to the user to obtain printing information and confirm the action.
    As Boolean, _
    ByVal nStart
    A zero-based index that defines the start of an inclusive range of pages.
    If nStart and nEnd are not specified, all pages in the document are printed.
    If only nStart is specified, the range of pages is the single page specified by nStart.
    If nStart and nEnd parameters are used, bUI must be false.
    As System.Int32, _
    ByVal nEnd
    A zero-based index that defines the end of an inclusive page range.
    If nStart and nEnd are not specified, all pages in the document are printed.
    If only nEnd is specified, the range of a pages is 0 to nEnd.
    If nStart and nEnd parameters are used, bUI must be false.
    As System.Int32, _
    ByVal bSilent
    A value indicating whether to suppress the cancel dialog box while the document is printing.
    As Boolean, _
    ByVal bShrinkToFit
    A value indicating whether to shrink the page (if necessary) to fit within the imageable area of the printed page. If false, it is not.
    As Boolean, _
    ByVal bPrintAsImage
    A value indicating whether to print pages as an image.
    As Boolean, _
    ByVal bReverse
    A value indicating whether to print from nEnd to nStart.
    As Boolean, _
    ByVal bAnnotations
    A value indicating whether annotations are printed.
    As Boolean _
    )
    public virtual void PrintDoc(
    PdfJsDoc doc,
    bool bUI,
    System.Int32 nStart,
    System.Int32 nEnd,
    bool bSilent,
    bool bShrinkToFit,
    bool bPrintAsImage,
    bool bReverse,
    bool bAnnotations
    )
    public: virtual void PrintDoc(
    PdfJsDoc* doc,
    bool bUI,
    System.Int32 nStart,
    System.Int32 nEnd,
    bool bSilent,
    bool bShrinkToFit,
    bool bPrintAsImage,
    bool bReverse,
    bool bAnnotations
    )
    public:
    virtual void PrintDoc(
    PdfJsDoc^ doc,
    bool bUI,
    System.Int32 nStart,
    System.Int32 nEnd,
    bool bSilent,
    bool bShrinkToFit,
    bool bPrintAsImage,
    bool bReverse,
    bool bAnnotations
    )

    Parameters

    doc
    The Document to print.
    bUI
    A value indicating whether the User Interface must be shown to the user to obtain printing information and confirm the action.
    nStart
    A zero-based index that defines the start of an inclusive range of pages.
    If nStart and nEnd are not specified, all pages in the document are printed.
    If only nStart is specified, the range of pages is the single page specified by nStart.
    If nStart and nEnd parameters are used, bUI must be false.
    nEnd
    A zero-based index that defines the end of an inclusive page range.
    If nStart and nEnd are not specified, all pages in the document are printed.
    If only nEnd is specified, the range of a pages is 0 to nEnd.
    If nStart and nEnd parameters are used, bUI must be false.
    bSilent
    A value indicating whether to suppress the cancel dialog box while the document is printing.
    bShrinkToFit
    A value indicating whether to shrink the page (if necessary) to fit within the imageable area of the printed page. If false, it is not.
    bPrintAsImage
    A value indicating whether to print pages as an image.
    bReverse
    A value indicating whether to print from nEnd to nStart.
    bAnnotations
    A value indicating whether annotations are printed.
    Requirements

    Target Platforms: .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also