Apply a watermark text to every page of a PDF.
/api/tools/watermark-pdf
| Authorization | Bearer {token} |
| Content-Type | multipart/form-data |
curl -X POST \
-H "Authorization: Bearer {token}" \
-F "file=@document.pdf" \
-F "text=CONFIDENTIAL" \
https://api.hashturn.com/api/tools/watermark-pdf
"<binary PDF>"
{
"error": "Missing file"
}{
"error": "Failed to add watermark"
}Convert typed text into a formatted PDF.
/api/tools/typed-to-pdf
| Authorization | Bearer {token} |
| Content-Type | application/json |
curl -X POST \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{"type":"text","content":"Hello world","filename":"document"}' \
https://api.hashturn.com/api/tools/typed-to-pdf
"<binary PDF>"
{
"error": "Missing 'type' or 'content' in request body"
}{
"error": "Internal server error message"
}Convert plain text files into structured PDF documents.
/api/tools/text-to-pdf
| Authorization | Bearer {token} |
| Content-Type | multipart/form-data |
curl -X POST \
-H "Authorization: Bearer {token}" \
-F "file=@notes.txt" \
https://api.hashturn.com/api/tools/text-to-pdf
"<binary PDF>"
{
"error": "Only .txt files are supported"
}{
"error": "Internal server error message"
}Split a PDF into multiple smaller PDFs.
/api/tools/split-pdf
| Authorization | Bearer {token} |
| Content-Type | multipart/form-data |
curl -X POST \
-H "Authorization: Bearer {token}" \
-F "file=@document.pdf" \
-F "pages=1,2,3-5" \
https://api.hashturn.com/api/tools/split-pdf
"<binary PDF with selected pages>"
{
"error": "Missing file or pages"
}{
"error": "Failed to split PDF"
}Rearrange or rotate PDF pages.
/api/tools/reorder-rotate-pdf
| Authorization | Bearer {token} |
| Content-Type | multipart/form-data |
curl -X POST \
-H "Authorization: Bearer {token}" \
-F "file=@document.pdf" \
-F "order=2,1,3" \
-F "rotations=0,90,180" \
https://api.hashturn.com/api/tools/reorder-rotate-pdf
"<binary PDF>"
{
"error": "Missing file or order"
}{
"error": "Failed to reorder/rotate PDF"
}Extract readable text from PDF files.
/api/tools/pdf-to-text
| Authorization | Bearer {token} |
| Content-Type | multipart/form-data |
curl -X POST \
-H "Authorization: Bearer {token}" \
-F "file=@document.pdf" \
https://api.hashturn.com/api/tools/pdf-to-text
{
"numPages": 3,
"text": "Page 1: ... Page 2: ..."
}{
"error": "Only .pdf files are supported"
}{
"error": "Internal server error message"
}Convert PDF pages into images.
/api/tools/pdf-to-images
| Authorization | Bearer {token} |
| Content-Type | multipart/form-data |
curl -X POST \
-H "Authorization: Bearer {token}" \
-F "file=@document.pdf" \
https://api.hashturn.com/api/tools/pdf-to-images
"<zip with PNG images>"
{
"error": "Only .pdf files are supported"
}{
"error": "Internal server error message"
}Combine multiple PDFs into a single file.
/api/tools/merge-pdfs
| Authorization | Bearer {token} |
| Content-Type | multipart/form-data |
curl -X POST \
-H "Authorization: Bearer {token}" \
-F "files=@file1.pdf" \
-F "files=@file2.pdf" \
https://api.hashturn.com/api/tools/merge-pdfs
"<binary PDF>"
{
"error": "No files provided"
}{
"error": "Failed to merge PDFs"
}Transform Markdown content into styled PDF.
/api/tools/markdown-to-pdf
| Authorization | Bearer {token} |
| Content-Type | multipart/form-data |
curl -X POST \
-H "Authorization: Bearer {token}" \
-F "file=@document.md" \
https://api.hashturn.com/api/tools/markdown-to-pdf
"<binary PDF>"
{
"error": "Only .md (Markdown) files are supported"
}{
"error": "Internal server error message"
}Combine multiple images into one PDF.
/api/tools/images-to-pdf
| Authorization | Bearer {token} |
| Content-Type | multipart/form-data |
curl -X POST \
-H "Authorization: Bearer {token}" \
-F "files=@image1.jpg" \
-F "files=@image2.jpg" \
https://api.hashturn.com/api/tools/images-to-pdf
"<binary PDF>"
{
"error": "No image files provided (png, jpg, jpeg, webp)"
}{
"error": "Internal server error message"
}Render HTML into a clean PDF.
/api/tools/html-to-pdf
| Authorization | Bearer {token} |
| Content-Type | multipart/form-data |
curl -X POST \
-H "Authorization: Bearer {token}" \
-F "file=@document.html" \
https://api.hashturn.com/api/tools/html-to-pdf
"<binary PDF>"
{
"error": "Only .html or .htm files are supported"
}{
"error": "Internal server error message"
}Password protect a PDF.
/api/tools/encrypt-pdf
| Authorization | Bearer {token} |
| Content-Type | multipart/form-data |
curl -X POST \
-H "Authorization: Bearer {token}" \
-F "file=@document.pdf" \
-F "password=1234" \
https://api.hashturn.com/api/tools/encrypt-pdf
"<binary PDF>"
{
"error": "Missing file or password"
}{
"error": "Failed to encrypt PDF: <details>"
}Convert plain text into structured HTML.
/api/tools/text-to-html
| Authorization | Bearer {token} |
| Content-Type | multipart/form-data |
curl -X POST \
-H "Authorization: Bearer {token}" \
-F "file=@notes.txt" \
https://api.hashturn.com/api/tools/text-to-html
"<html>...</html>"
{
"error": "Only .txt files are supported"
}{
"error": "Internal server error message"
}Convert Markdown text into HTML.
/api/tools/markdown-to-html
| Authorization | Bearer {token} |
| Content-Type | multipart/form-data |
curl -X POST \
-H "Authorization: Bearer {token}" \
-F "file=@document.md" \
https://api.hashturn.com/api/tools/markdown-to-html
"<html>...</html>"
{
"error": "Only .md (Markdown) files are supported"
}{
"error": "Internal server error message"
}Convert images to JPG, PNG, WEBP, etc.
/api/tools/convert-image
| Authorization | Bearer {token} |
| Content-Type | multipart/form-data |
curl -X POST \
-H "Authorization: Bearer {token}" \
-F "file=@photo.png" \
-F "format=jpeg" \
-F "quality=70" \
https://api.hashturn.com/api/tools/convert-image
"<binary image>"
[
{
"error": "Unsupported format"
},
{
"error": "File is required"
}
]{
"error": "Compression failed"
}