PdfFillerClient/API/Document.cs
/// <summary>
/// Uploads a new document to your PDFfiller account by file.
/// </summary>
/// <param name="filePath">Path to file for upload.</param>
/// <returns>Returns uploaded document info object with additional data.</returns>
/// <exception cref="PdfFillerApiException">If api request went bad.</exception>
/// <exception cref="PdfFillerAppException">If client app crashed.</exception>
Uploads a new document to your PDFfiller account by file.
Uploads a new document to your PDFfiller account by file .
public DocumentCreateResponse CreateDocument(string filePath)
        {
            byte[] response = _apiClient.UploadFile(ApiPath, filePath);
            var fileInfo = _apiClient.GetResponseBody<DocumentCreateResponse>(response);
            return fileInfo;
        }
public DocumentCreateResponse CreateDocument ( string filePath ) { byte [ ] response = _apiClient . UploadFile ( ApiPath , filePath ) ; var fileInfo = _apiClient . GetResponseBody < DocumentCreateResponse > ( response ) ; return fileInfo ; }
Uploads a new document to your PDFfiller account by file.
Uploads a new document to your PDFfiller account by file .
Returns uploaded document info object with additional data.
Returns uploaded document info object with additional data .
If api request went bad.
If api request went bad .
If client app crashed.
If client app crashed .
filePath
string
Path to file for upload.
Path to file for upload .