メインコンテンツへスキップ

安全な文書 - Excel API

PDF4me 安全なExcel パスワード保護を適用できます Excel 複数のレベルの文書。 API 本サービスは、ファイル暗号化(開くためのパスワード)、ワークブック構造保護(シートの変更防止)、ワークシート内容保護(セル編集防止)をサポートし、柔軟なパスワード階層と保護タイプ(コンテンツ、オブジェクト、シナリオ、すべて)に対応しています。 API 受け取る Excel ドキュメントコンテンツ REST API 通話を利用して Base64 安全なデータ送信のためのエンコード。このソリューションは、機密データの保護、テンプレートのセキュリティ、およびアクセス制御されたワークフローに最適です。

関連ブログ記事
この機能に関するブログ記事はまだありません。近日公開予定です。
その間、PDF4me ブログを閲覧して、あらゆるプラットフォームのチュートリアルやワークフローをご覧ください。
ブログをご覧ください →

認証 API リクエスト​

あなたの API 認証リクエストにキーを入力してください PDF4me REST API。

主な機能​

  • 3段階の保護レベルファイル暗号化、ワークブック構造、ワークシート内容
  • 独立したパスワード保護レベルごとに異なるパスワードを使用してください。
  • パスワードフォールバックレベル固有のパスワードが指定されていない場合は、メインパスワードを代替として使用します。
  • 柔軟なワークシート選択特定のワークシートまたはすべてのワークシートを保護する
  • 保護タイプのオプション: コンテンツ、オブジェクト、シナリオ、またはすべて(包括的)
  • 0ベースのインデックスワークシートのインデックスは0から始まる番号付けを使用します(0=最初のワークシート)。

REST API 終点​

  • 方法: POST
  • 終点: office/ApiV2Excel/ExcelSecure

REST API パラメータ​

重要: アスタリスク (*) が付いているパラメータは必須です。すべてのリクエストで使用されます。 書類、 ドキュメントコンテンツ、 そして secureExcelAction操作固有のパラメーター(パスワード、protectWorkbookなど)は、アクションオブジェクトのプロパティです。

必須パラメータ(ルートレベル)​

パラメータ必須その機能例
documentRequiredSource file. `Name` must end in `.xlsx`, `.xls` or `.xlsm` (a `.csv` for `ExcelParseCsv`).{ "Name": "data.xlsx" }
document.NameRequiredFile name including its extension. Type: string.{ "Name": "data.xlsx" }
docContentRequiredThe source file, base64-encoded. Type: string.UEsDBBQABgAIAAAA...
isAsyncOptionalProcess the request in the background. The call returns `202 Accepted`; poll the `Location` URL (`GetActionStatus`) for the result. Type: boolean.
secureExcelActionRequiredObject carrying this operation's settings. Its fields are the secureExcelAction rows below.See Payload example below
secureExcelAction.passwordOptionalPassword required to open the file. Also used for the sheets when `worksheetProtectionPassword` is not set. Type: string.
secureExcelAction.protectWorkbookOptionalProtect the workbook structure. Type: boolean.
secureExcelAction.protectWorkbookPasswordOptionalPassword for the workbook structure. Type: string.
secureExcelAction.protectWorksheetsOptionalProtect the sheets from editing. Type: boolean.
secureExcelAction.worksheetProtectionTypeOptionalType: string.
secureExcelAction.worksheetProtectionPasswordOptionalPassword for the sheets. Type: string.
secureExcelAction.worksheetNamesOptionalComma-separated worksheet names. Type: string.
secureExcelAction.worksheetIndexesOptionalComma-separated 1-based worksheet numbers, e.g. `"1,3"`. Type: string.

出力​

の API パスワードで保護された Excel ドキュメントとして Base64-エンコードされた文字列 JSON フォーマット (ドキュメント、ファイル名、成功、エラーメッセージ)。

リクエスト例​

ヘッダ​

Content-Type: application/json
Authorization: Basic YOUR_BASE64_ENCODED_API_KEY

ペイロード(基本)​

{
"document": { "Name": "data.xlsx" },
"docContent": "UEsDBBQABgAIAAAA...",
"secureExcelAction": {
"password": "MyPassword123",
"protectWorkbook": true,
"protectWorksheets": true
}
}

コードサンプル​

ヘルプが必要な場合​