# Convert PUB to JPG

Files are processed on our server, and the results are kept for a few minutes so you can download them, then deleted — whether or not you did. Free, no account, no watermark.

Results are deleted 15 minutes after the job finishes.

## API

POST the file as the raw request body to https://toolsforfree.app/api/jobs?from=pub&to=jpg, then

GET https://toolsforfree.app/api/jobs/{taskId}?engine={engine} until state is done,
then GET https://toolsforfree.app/api/jobs/{taskId}/output?engine={engine}&format={format}, with the taskId, engine and format the 202 answers.

Details: https://toolsforfree.app/api.md

MCP: call convert_file at https://toolsforfree.app/mcp with from "pub" and to "jpg".

## Questions

### Does converting PUB to JPG lose quality?

Yes, in one way. The first page of the PUB is drawn as JPG at the size of its page: its text, pictures and shapes become pixels. A JPG holds one page, so only the first page of the PUB comes across.

### Can I convert the JPG back to PUB?

Not here. We can read JPG but no engine of ours writes PUB, so this conversion only goes one way.
