PDF Api Hub icon

PDF Api Hub

HTML to PDF

Actions36

Compare Document → Similarity Check

AI-generated

Summary

Compare two images or PDFs for similarity using URLs, Base64 strings, or incoming binary properties. Select a comparison method or leave it on Auto, then receive the API response for the comparison.

Inputs

  • Input Mode — Choose URLs (the default), Base64 strings or data URLs, or binary input properties.
  • URL 1 and URL 2 — In URL mode, provide the URLs of the two images or PDFs. Both default to sample image URLs.
  • Image/PDF 1 Base64 and Image/PDF 2 Base64 — In Base64 mode, provide a Base64 string or data URL for each document.
  • File 1 Binary Property and File 2 Binary Property — In Binary Files mode, name the incoming binary properties containing each document; defaults are data1 and data2.
  • Method — Choose Auto (default), Feature Match, SSIM, or PHash.

Output shape

A single API response item containing the similarity comparison result.

The source pack provides only the action function signature, not its implementation body, so the exact response fields and any numeric score format are not shown.

Links

Discussion