Skip to content

PDF integrity check

PDF Integrity Check With SHA-256 for Archived Page Renders

SitePDF gives every render a SHA-256 hash, so you can prove that the PDF or archived page you hold today is the same bytes the API produced. A PDF integrity check takes one hash command and one comparison.

  • PDF and archive in one call
  • Plans from $49 a month
  • Your HTML stays yours

Short answer

SitePDF returns a SHA-256 hash for each PDF it renders and for each archived snapshot. Compare it with the hash of your stored file: if the two match, the file has not changed by a single byte. Starter API is $49 a month for 10,000 renders ($288 billed yearly), and hashes come on every plan.

A hash shows that a file is unchanged. It does not show who made it or that the page said what you remember, so keep the hash with your own record on the day you capture.

Written and fact checked by the SitePDF team.

What carries a hash and where you read it

These are the fields and headers the API returns today. A hash is only useful if you store it somewhere other than next to the file it protects.

Item What is hashed Where you read the hash Kept for
Rendered PDF The PDF file bytes sha256 in the render response and the X-Sitepdf-Sha256 header on download Your plan archive window
Archived snapshot The captured page content sha256 in the archive record, plus captured_at and the source URL 90 days Starter API, 365 days Growth, 3 years Scale
Archive download The same snapshot bytes served back X-Sitepdf-Sha256 and X-Sitepdf-Captured-At headers Same window as the snapshot

Plans and prices are from our own pricing page. The hash algorithm is SHA-256, defined in NIST FIPS 180-4.

Who needs a PDF integrity check

Teams that hand PDFs to someone else. A statement sent to a customer, a page captured for a dispute, a quote saved for a procurement file: later someone asks whether the copy was edited. A stored hash answers that in seconds.

Teams that keep dated page captures. The same applies to the archive copies described on website archiving software. The snapshot carries its capture time, its source URL and its hash in one record.

A worked example

Say a compliance analyst captures a competitor pricing page on 3 March with archive=true. The response holds the snapshot id, captured_at and a 64 character sha256. She writes the id and the hash into the case ticket.

In July someone asks whether the file in the shared drive is the original. She downloads the snapshot, runs sha256sum on it and compares the result with the ticket. A match means the bytes are identical. A mismatch means the file was changed or re-saved, and the API copy is the one to trust while it is still inside the retention window.

What the hash does not prove

It does not prove the website really showed that content on that day to other visitors, and it does not make a file admissible anywhere. Courts and regulators set their own rules, which is why law firm workflows keep a record of how and when each capture was made.

It also does not survive a re-save. Opening a PDF in an editor and saving it again changes the bytes, so the hash changes even if every word is the same.

Where it fits in a capture workflow

Render the page, store the id and hash in your case, ticket or document system, and download the PDF into your own storage if you must keep it past the plan window. Archive access is by API key, and a snapshot can be deleted on request with one call, which then removes the file.

Invoices follow the same pattern, see the invoice PDF archive. For a single page the webpage to PDF route is the shortest path. For the retention side of regulated records see the 17a-4 article.

Who it is for and who it is not for

It is for developers and ops teams that already call an API and want a hash and a capture time on every document or page copy, from a few hundred to a few hundred thousand a month.

It is not for anyone who needs digital signatures, a trusted timestamp authority or a certified chain of custody. SitePDF does not sign documents.

Capture a page with an archive copy, then check a stored file against the returned hash.
curl -X POST https://api.sitepdf.com/v1/render \
  -H "Authorization: Bearer $SITEPDF_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com/pricing", "archive": true}'

# later, on the file you stored
sha256sum stored-copy.pdf

This is the documented API call shape. Full request and response walkthrough.

Questions about this job

How do I check the integrity of a PDF?
Compute its SHA-256 hash with sha256sum, shasum -a 256 or Get-FileHash, then compare it with the hash recorded when the PDF was made. Identical hashes mean identical bytes. SitePDF returns that hash with every render.
Does SitePDF give a hash for each PDF?
Yes. Each render response carries a sha256 field and the download carries an X-Sitepdf-Sha256 header. Archived snapshots carry their own hash, capture time and source URL.
Is a SHA-256 hash proof that a PDF was not tampered with?
It proves the file matches the hash you recorded. It only protects you if the hash is stored separately from the file. It does not prove who created the file or that the source page looked that way for others.
Why does my hash change after I open and save the PDF?
Saving rewrites the file, so its bytes change even if the text is the same. Keep the original download for hash checks and work on a copy.
How much does it cost?
Starter API is $49 a month for 10,000 renders, or $288 billed yearly. Growth is $99 a month for 50,000 renders and Scale is $299 a month for 250,000. Hashes are included on every plan.

Index

More PDF and archiving tools

Get started

Render and archive with one API call

A pixel perfect PDF and a dated copy of the page from the same request. Plans from $49 a month, half price billed yearly.

HTML to PDF, in your browser

Buy the plan