INTEGRITY Cloudflare Docs

How it works

Pre-processing

When parsing files before converting them to Markdown, there are some cleanup tasks we do depending on the type of file you are trying to convert.

HTML

When we detect an HTML file, a series of things happen to the HTML content before it is converted:

1 The host can also be set per request, using the HTML conversion options. Refer to Conversion Options for more details.

Images

Images take a bit more work to prepare for conversion.

For animated GIF files, only the first frame is extracted and analyzed. The remaining frames are discarded.

As a first step, we detect what type the image is. If it is an SVG (Scalable Vector Graphics) file, we need to convert it into a raster format so that using the necessary Workers AI models does not fail. In this case, SVGs are converted into PNGs internally.

Afterwards:

PDFs