VintaSoft Imaging .NET SDK 14.1: Документация для .NET разработчика
Vintasoft.Imaging.Pdf Namespace / PdfDocument Class / PdfDocument Constructors / PdfDocument Constructor(String)
Синтаксис Exceptions Ремарки Example Требования Смотрите также
В этом разделе
    PdfDocument Constructor(String)
    В этом разделе
    Инициализирует новый экземпляр PdfDocument из указанного файла.
    Синтаксис
    'Declaration
    
    Public Function New( _
    ByVal filename
    Имя файла PDF документа.
    As System.String _
    )
    public PdfDocument(
    System.String filename
    )
    public: PdfDocument(
    System.String filename
    )
    public:
    PdfDocument(
    System.String filename
    )

    Parameters

    filename
    Имя файла PDF документа.
    Исключения
    ИсключениеОписание
    Выбрасывается, если файл неправильный.
    Ремарки

    Этот конструктор открывает существующий PDF документ в режиме чтения-записи.

    Пример

    Вот пример, показывающий, как загрузить PDF документ из файла:

    
    Public Shared Function LoadPdfDocumentFromFile(filename As String) As Vintasoft.Imaging.Pdf.PdfDocument
        Return New Vintasoft.Imaging.Pdf.PdfDocument(filename)
    End Function
    
    
    
    public static Vintasoft.Imaging.Pdf.PdfDocument LoadPdfDocumentFromFile(string filename)
    {
        return new Vintasoft.Imaging.Pdf.PdfDocument(filename);
    }
    
    

    Требования

    Целевые платформы: .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    Смотрите также