/// CONVERT
1 credit

Email to PDF API — archive a message as a PDF

Headers, the HTML body and a list of attachments, rendered to one PDF — with tracking pixels blocked by default.

/// Quick answer

Email to PDF renders an .eml message — From, To, Cc, Date and Subject (RFC 2047 encoded headers are decoded, so accented names and Unicode subjects come out correctly), then the HTML body, then a list of the attachments with their types and sizes. Remote images are **not** loaded by default: a message's tracking pixels and any externally hosted image are stripped before rendering, so converting a message can't signal the sender that it was opened. Set allow_remote_images: true to load them. Inline images carried inside the message itself (cid: parts) are always shown, since they need no outside request. Attachments are listed, not extracted — the PDF is the message, not its payload.

Try Email to PDF API — free →Read the docs

Free account. No card required.

How does the Email to PDF API work?

One HTTP request from any language. Every ASHDOCS endpoint uses the same X-API-Key header.

curl -X POST https://www.ashdocs.com/api/v2/tools/email-to-pdf \
  -H "X-API-Key: ash_live_..." \
  -F "file=@message.eml"

Common use cases

Frequently asked questions

What does the PDF of an email contain?+

From, To, Cc, Date and Subject (encoded headers are decoded), the HTML body (or the plain-text body if there is none), then a list of attachments with their types and sizes.

Are remote images and tracking pixels loaded?+

Not by default. Every image that points to a remote address is blanked before rendering, which removes tracking pixels; set allow_remote_images: true to load them. Images embedded in an .eml message always show.

Are attachments converted too?+

No. Attachments are listed, not extracted. Each conversion costs 1 credit with a live key.

RELATED TOOLS