最近、次世代の GroupDocs クラウド API に取り組んでいることを共有しました。当社の製品チームは、信頼性が高く正確なソリューションでお客様の開発エクスペリエンスを向上させるために熱心に取り組んでいます。したがって、次世代 GroupDocs.Viewer Cloud REST API 17.11 の最初の公開リリースを発表できることを非常にうれしく思っています。

Groupdocs.Viewer Cloud REST API) は、開発者がクラウド上の Web/モバイル アプリや Web サイトで 50 以上のドキュメント形式を表示できるようにする、便利で強力な機能のスイートを提供します。 。

GroupDocs.Viewer CloudGroupDocs.Viewer

Cloud API は、50 を超えるドキュメントと画像形式を、ドキュメント全体、ページごと、またはページのカスタム範囲に対して HTML または画像形式としてレンダリングするための API を開発者に提供します。ビューアはドキュメントのラスタライズと SVG+HTML+CSS への変換の両方が可能で、真のテキストの高忠実度レンダリングを実現します。ドキュメント ページの回転、並べ替え、透かし入れも、この REST API の重要な機能です。 Next Generation GroupDocs.Viewer Cloud REST API が提供する機能の詳細については、最初のバージョンのリリース ノートを確認してください。次のセクションでは、これらの機能について詳しく説明します。

HTML 表現の添付ファイルを取得する

メールの添付ファイルデータをHTML形式または画像形式で取得できます。目的については以下のURIとRESTコマンド(Curl)を参照してください。

URI

[https://api.groupdocs.cloud/v1/viewer/{filename}/html/attachments/{attachmentfilename}][3] 

残りの例(cURL)

curl -v "[https://api.groupdocs.cloud/v1/viewer/Test.msg/html/attachments/Test.pdf"][4] \
-X GET \
-H "コンテンツ タイプ: application/json" \
-H "権限: ベアラ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
```.NET SDK example

//TODO: https://dashboard.groupdocs.cloud で AppSID と AppKey を取得します (無料の登録が必要です)。


var 構成 = 新しい構成
{
AppSid = シド、
AppKey = キー
};

var apiInstance = 新しい ViewerApi(構成);

試す
{
    
var request = 新しい HtmlGetAttachmentRequest
{
ファイル名 = "with-attachment.msg",
AttachmentName = "パスワードで保護された.docx",
フォルダー = null、
ストレージ = null
};

var 応答 = apiInstance.HtmlGetAttachment(リクエスト);
Debug.Print("ドキュメントは正常に処理されました");
}
catch (例外 e)
{
Debug.Print("電子メールから添付ファイルを取得する際の例外: " + e.Message);
}

Watermark a Document for HTML Representation

You can easily watermark and download a document as PDF with GroupDocs.Viewer Cloud API. The API expects PdfFileOptions object data in request body. Please see the following URI, JSON Request data, REST command(Curl) and .NET SDK example for the purpose. URI

[https://api.groupdocs.cloud/v1/viewer/{ファイル名}/html/pdf][5]

Request Data

{"watermark":{"text":"My Company"}}

残りの例(cURL)

curl -v "[https://api.groupdocs.cloud/v1/viewer/one-page.docx/html/pdf"][6] \
-Xポスト\
-H "コンテンツ タイプ: application/json" \
-H "受け入れる: application/json" \
-d "{"ウォーターマーク":{"テキスト":"私の会社"}}" \
-H "権限: ベアラ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

.NET SDK example

//TODO: https://dashboard.groupdocs.cloud で AppSID と AppKey を取得します (無料の登録が必要です)。
var 構成 = 新しい構成
{
AppSid = シド、
AppKey = キー
};

var apiInstance = 新しい ViewerApi(構成);

試す
{
var pdfFileOptions = 新しい GroupDocs.Viewer.Cloud.Sdk.Model.PdfFileOptions
{
Watermark = new GroupDocs.Viewer.Cloud.Sdk.Model.Watermark { Text = "テスト" }
};
var request = 新しいImageCreatePdfFileRequest
{
ファイル名 = "1 ページ.docx",
PdfFileOptions = pdfFileOptions,
FontsFolder = null、
フォルダー = null、
ストレージ = null、
};

var 応答 = apiInstance.ImageCreatePdfFile(リクエスト);

Debug.Print("ドキュメントが処理されました");
Debug.Print(response.FileName);
Debug.Print(response.Folder);
Debug.Print(response.PdfFileName);
}
catch (例外 e)
{
Debug.Print("ドキュメントの処理中に例外が発生しました: " + e.Message);
}

GroupDocs.Viewer Cloud Resources

Following are the links to some useful resources you may need to accomplish your tasks.

Start a Free Trial Today

Start a free trial today – all you need is to sign up with the GroupDocs Cloud service. Once you have signed up, you are ready to try the powerful file processing features offered by GroupDocs Cloud.