Link Search Menu Expand Document

Replace Placeholder With Signature - cURL

PDF Search and Replace Text with Image sample in cURL demonstrating ‘Replace Placeholder With Signature’

ReplaceTextWithImage.cmd
curl --location --request POST 'https://api.pdf.co/v1/pdf/edit/replace-text-with-image' \
--header 'x-api-key: AddYourPdfCoApiKeyHere' \
--header 'Content-Type: application/json' \
--data-raw '{
    "url": "https://pdfco-test-files.s3.us-west-2.amazonaws.com/pdf-search-and-replace/sample-agreement-template-signature-page-2.pdf",
    "caseSensitive": "true",
    "searchString": "[CLIENT-SIGNATURE]",
    "replaceImage": "https://pdfco-test-files.s3.us-west-2.amazonaws.com/pdf-search-and-replace/john-doe-signature-image.png",
    "pages": "0",
    "async": false
}'

PDF.co Web API: the Web API with a set of tools for documents manipulation, data conversion, data extraction, splitting and merging of documents. Includes image recognition, built-in OCR, barcode generation and barcode decoders to decode bar codes from scans, pictures and pdf.

Get your PDF.co API key here!

Download Source Code (.zip)

return to the previous page explore PDF Search and Replace Text with Image endpoint