ヘッダーとフッターを削除 - Excel API
PDF4me ヘッダーとフッターを削除 ヘッダーとフッターを削除できます Excel オプションのワークシートターゲットを含むドキュメント。 API サービスプロセス Excel ファイルを削除し、テキストと画像のヘッダー/フッターをクリアします。 API 受け取る Excel ドキュメントコンテンツ REST API 通話を利用して Base64 安全な送信のためのエンコード。このソリューションは、ドキュメントのクリーンアップ、テンプレートの再利用、自動化に最適です。 Excel 編集ワークフロー。
関連ブログ記事
この機能に関するブログ記事はまだありません。近日公開予定です。
その間、PDF4me ブログを閲覧して、あらゆるプラットフォームのチュートリアルやワークフローをご覧ください。
ブログをご覧ください →
認証 API リクエスト
あなたの API 認証リクエストにキーを入力してください PDF4me REST API。
主な機能
- ヘッダー/フッターの削除: 明確なテキストと画像によるヘッダーとフッター
- ワークシートのターゲット設定特定のワークシートに適用するか、すべてのワークシートに適用するかを選択します。
REST API 終点
- 方法: POST
- 終点:
office/ApiV2Excel/ExcelRemoveHeaderFooter
REST API パラメータ
重要: アスタリスク (*) が付いているパラメータは必須です。すべてのリクエストで使用されます。 書類、 ドキュメントコンテンツ、 そして removeHeaderFooterToExcelAction操作固有のパラメーター(ワークシート名、ワークシートインデックスなど)は、アクションオブジェクトのプロパティです。
必須パラメータ(ルートレベル)
| パラメータ | 必須 | その機能 | 例 |
|---|---|---|---|
| document | Required | Source file. `Name` must end in `.xlsx`, `.xls` or `.xlsm` (a `.csv` for `ExcelParseCsv`). | { "Name": "data.xlsx" } |
| document.Name | Required | File name including its extension. Type: string. | { "Name": "data.xlsx" } |
| docContent | Required | The source file, base64-encoded. Type: string. | UEsDBBQABgAIAAAA... |
| isAsync | Optional | Process the request in the background. The call returns `202 Accepted`; poll the `Location` URL (`GetActionStatus`) for the result. Type: boolean. | |
| removeHeaderFooterToExcelAction | Required | Object carrying this operation's settings. Its fields are the removeHeaderFooterToExcelAction rows below. | See Payload example below |
| removeHeaderFooterToExcelAction.removeHeaderLeft | Optional | Type: boolean. | |
| removeHeaderFooterToExcelAction.removeHeaderCenter | Optional | Type: boolean. | |
| removeHeaderFooterToExcelAction.removeHeaderRight | Optional | Type: boolean. | |
| removeHeaderFooterToExcelAction.removeFooterLeft | Optional | Type: boolean. | |
| removeHeaderFooterToExcelAction.removeFooterCenter | Optional | Type: boolean. | |
| removeHeaderFooterToExcelAction.removeFooterRight | Optional | Type: boolean. | |
| removeHeaderFooterToExcelAction.worksheetNames | Optional | Worksheet names. Type: array. | |
| removeHeaderFooterToExcelAction.worksheetIndexes | Optional | 1-based worksheet numbers. Type: array. | |
出力
の API 返します Excel ドキュメントとして Base64-エンコードされた文字列 JSON フォーマット (ドキュメント、ファイル名、成功、エラーメッセージ)。
リクエスト例
ヘッダ
Content-Type: application/json
Authorization: Basic YOUR_BASE64_ENCODED_API_KEY
ペイロード(基本)
{
"document": { "Name": "data.xlsx" },
"docContent": "UEsDBBQABgAIAAAA...",
"removeHeaderFooterToExcelAction": {}
}
ペイロード(ワークシートターゲティング付き)
{
"document": { "Name": "data.xlsx" },
"docContent": "UEsDBBQABgAIAAAA...",
"removeHeaderFooterToExcelAction": {
"worksheetNames": ["Sheet1", "Report"],
"cultureName": "en-US"
}
}