For AI agents: a machine-readable documentation index for this API is available at /llms.txt. Every page is also available as Markdown: append ".md" to the URL or send an "Accept: text/markdown" request header.

Page tools on a PDF, saved as a new PDF (merge, keep or remove, reorder, rotate, crop, blank pages, page numbers, watermark, title and author)

Makes a NEW PDF from this one with the page tools in the body; the source is never changed. Send at least one of merge_file_ids, keep or remove (pages like 1-3,5), order, rotate, crop (millimetres; the cut-off part is hidden, not deleted), blank_after, blank_at_start, page_numbers, watermark (a text drawn over every page, which hides nothing underneath), title, author. They apply in that order. name and folder_id choose the new file (default: '<name> (edited).pdf' next to the source). The same limits as the chat (40 MB a PDF, up to 2,000 pages, up to 10 PDFs merged). A password-protected PDF is 422 unprocessable_file; a taken name is 409 name_taken; plan limits apply (413). Needs files:write; 20 calls a minute per token.

What you provide

  • Merge file idsoptional: Ids of other PDFs (digits) to append, in order; up to 9
  • Keepoptional: Keep only these pages, like 1-3,5,8-
  • Removeoptional: Remove these pages. Use keep or remove, not both
  • Orderoptional: A new page order, like [3, 1, 2]
  • Rotateoptional: Rotate pages clockwise
  • Cropoptional
  • Blank afteroptional: Add a blank page after these pages
  • Blank at startoptional
  • Page numbersoptional
  • Watermarkoptional: Text drawn over every page (hides nothing underneath)
  • Titleoptional
  • Authoroptional
  • Nameoptional: The new file's name (the .pdf extension is added or corrected)
  • Folder idoptional: The folder for the new file; null for the library root; omitted keeps the source's folder

Do this with AI

I want to page tools on a PDF, saved as a new PDF (merge, keep or remove, reorder, rotate, crop, blank pages, page numbers, watermark, title and author). Use the Tarkle API. Read the reference for this operation and follow it exactly: https://project-03b42162.restlessdocs.com/endpoint/editpdf.md Authenticate with your API key as a Bearer token in the Authorization header. Then make the request for me and tell me what came back.

Paste this into Claude, Cursor, or any AI assistant and it will do it for you.