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

Zapierを使用してWordのテキストを画像に置き換える

Wordでテキストを画像に置き換える は Zapier アクション PDF4me Word文書内のテキストプレースホルダーを検出し、指定した画像に置き換えます。Wordを開かずに、契約書、提案書、レポートなどのテンプレートに署名、ロゴ、グラフなどを自動的に挿入できます。出力は、次のZapステップで使用できる新しい.docxファイルです。

このアクションが何をするか

PDF4meWordでテキストを画像に置き換える Word 文書内で、大文字と小文字を区別する正確なテキスト文字列を検索し、一致するすべてのインスタンスを Zap にマッピングした画像に置き換えます。どのページが影響を受けるかは、 ページ そして 最初のページをスキップする、オプションで設定 画像の幅 そして 画像の高さ 挿入した画像のサイズを調整します。一般的な用途としては、契約書テンプレートに署名を挿入したり、ブランドロゴ入りの手紙にロゴを挿入したり、配布前のレポートにグラフを挿入したりすることが挙げられます。

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

認証方法 API リクエスト?​

アクセスするには PDF4me ウェブ APIすべてのリクエストには、適切な認証情報を含める必要があります。認証は安全な通信を保証し、あなたが正規のユーザーであることを証明します。

見逃してはならない重要な事実​

Zapierのフィールド名は、基となるものとは異なります。 API
Zapエディタはフィールドにラベルを付ける Wordファイル、 Wordファイル名、 検索テキスト、 そして 画像ファイルこれらのラベルに基づいて地図を作成してください。参照されている名前に基づいて作成しないでください。 PDF4meの将軍 API ドキュメント。
最初のページをスキップし、ページを一緒に操作します
最初のページをスキップする は、 ページ設定 ページ に 全て と 最初のページをスキップする Trueに設定しても1ページ目は除外されます。1ページ目が表紙の場合に便利です。
検索テキストは完全に一致する必要があります
マッチングは大文字と小文字を区別し、正確な文字列を探します。 {SIGNATURE} 一致しません サイン または {Signature}そのため、文書は変更されずに返されます。
Zapier Word - テキストを画像に置き換えるアクションは、前のステップからマッピングされたWordファイル、Wordファイル名abc.docx、検索テキストpellentesque、前のステップからマッピングされた画像ファイル、最初のページをスキップするFalse、およびページをすべてに設定して構成されています。

Word アクション パネルの「テキストを画像に置き換える」:Word ファイル、テキストの検索、画像ファイル、最初のページをスキップ、ページ

パラメータ​

必須 Zapier UI: ワードファイルと検索テキスト。ワードファイル名、画像ファイル、最初のページをスキップ、ページ数、画像の幅、画像の高さはオプションですが、マッピングされた画像ファイルがない場合、アクションは挿入するものがありません。

パラメータ必須その機能例
Word FileRequiredThe Word document to process, mapped from a previous Zap step.[Word File]
Word File NameConditionalFilename with extension for the document being processed. Used for output naming.abc.docx
Search TextRequiredExact, case-sensitive placeholder text to find. Every matching instance is replaced.{COMPANY_LOGO}
Image FileConditionalThe replacement image, mapped from a previous step. No asterisk in the Zapier UI, but required for the action to insert anything.[Logo File]
Skip First PageConditionalTrue/False toggle. True excludes page one from the replacement even if Pages is set to all. Default False.False
PagesConditionalWhich pages to search. Accepts all, first, last, or a comma-separated list of page numbers.all
Image WidthConditionalWidth of the inserted image in millimeters, up to 500. Leave blank to use the image's original width.50
Image HeightConditionalHeight of the inserted image in millimeters, up to 500. Leave blank to use the image's original height.30

出力にはどのようなフィールドが含まれますか?​

分野タイプ内容物
FileURLDirect URL to the processed Word document with the image inserted.
File NameStringThe filename without extension.
Full File NameStringComplete filename including the .docx extension.
File ExtensionStringFile extension of the returned document, .docx.
Job IDStringUnique job identifier for tracking this run.
Trace IDStringTrace identifier useful when contacting support about a specific request.

典型的な構成​

ワークフローの例Common Zapier workflow patterns using Replace Text With Image In Word.
署名済みの契約書に署名を挿入する
  1. 承認または電子署名ステップで契約書のWordテンプレートが準備完了となり、 {SIGNATURE} プレースホルダーが内部にあります。
  2. PDF4me Word で画像にテキストを置換すると、検索テキストが次の設定で実行されます。 {SIGNATURE}画像ファイルは署名者の保存された署名画像にマッピングされ、ページはすべてに設定されます。
  3. 完成した契約書は、メール送信やストレージへのアップロードなど、次のZapステップに送信されます。
生成されたドキュメントにロゴを付ける
  1. テンプレートから新しい Word 文書が生成されます。 {COMPANY_LOGO} プレースホルダー。
  2. 検索テキストはプレースホルダーテキストに設定され、画像ファイルには正しいブランドロゴがマッピングされます。「最初のページをスキップ」はFalseのままにして、ロゴが1ページ目にも表示されるようにします。
  3. ブランドロゴ入りの文書は、配布または保管の段階に進みます。
スケジュールされたレポートにグラフを挿入する
  1. レポートデータの更新後にスケジュールされたトリガーが実行され、グラフ生成ステップによってグラフ画像が生成されます。
  2. Word でテキストを画像に置き換えると、 {CHART_1} 生成されたグラフ画像のプレースホルダー。ページを介して特定のページをターゲットにします。
  3. 完成した報告書は、関係者へ自動的にメールで送信されます。

実践的なヒント​

Search Text is case-sensitive
A placeholder like {SIGNATURE} will not match {Signature} or signature. Copy the exact text straight from the template document to avoid silent mismatches.
Image File has no asterisk but is still needed
The Zapier UI does not mark Image File required, but the action has no image to insert without it. Always map a real image file.
Skip First Page is independent of Pages
Setting Pages to all does not override Skip First Page. Set both explicitly if the first page is a cover page that should stay untouched.
Pages accepts words or numbers
Use all, first, last, or a comma-separated list such as 1,2,3 to target exact pages instead of the whole document.
Leave Image Width/Height blank for original size
Both fields are optional and capped at 500mm. Omit them to insert the image at its native dimensions instead of forcing a resize.

チートシート​

分野価値
ActionReplace Text With Image In Word
Word File[mapped from previous step]
Word File Namecontract_template.docx
Search Text{SIGNATURE}
Image File[mapped from previous step]
Skip First PageFalse
Pagesall
Image Width50
Image Height30

よくある質問​

How do I replace text with an image in a Word document using Zapier?+
Add the PDF4me Replace Text With Image In Word action to a Zap, map Word File from a previous step, set Search Text to the exact placeholder text, map Image File to the replacement image, choose Pages, and run the Zap. The action returns a new Word document with the image inserted. See Zapier's guide to working with files for how file fields pass between steps.
Can I replace multiple different placeholders with different images in one Zap step?+
Not in a single action call. Each run takes one Search Text value and one Image File. To replace two different placeholders, chain a second Replace Text With Image In Word step and feed the first step's output document into it.
What image formats can I insert?+
PDF4me's Word text-to-image engine, shared across its Zapier, Make, and Power Automate actions, accepts PNG, JPG, JPEG, BMP, and GIF image files. See Microsoft's guide to inserting pictures in Word for background on supported image types in Word documents.
What happens if the Search Text is not found in the document?+
The action completes without an error, but since no matching text was found, no image is inserted and the returned document is otherwise unchanged. Double-check the placeholder for exact case and spelling if the image does not appear.
Can I control which pages the image appears on?+
Yes. Pages accepts all, first, last, or a comma-separated list of page numbers, and Skip First Page can exclude page one even when Pages is set to all. Combine both for precise control over cover pages or specific sections.

関連アクション​

他のプラットフォームでの同じタスク​

業界におけるユースケースとアプリケーション​

  • 契約書への署名契約書に署名画像を挿入する
  • 手紙のテンプレート法的文書に署名を追加する
  • 契約処理契約書への署名挿入を自動化する
  • 文書認証: 確認画像を挿入

ヘルプが必要な場合​