{"info":{"name":"SmartPDF API","description":"47 PDF and image operations. Documentation: https://smartpdf.ru/en/developers/docs. Set the apiKey variable.","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json"},"auth":{"type":"apikey","apikey":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"{{apiKey}}"},{"key":"in","value":"header"}]},"variable":[{"key":"baseUrl","value":"https://api.smartpdf.ru"},{"key":"apiKey","value":""},{"key":"fileId","value":""},{"key":"fileId2","value":""},{"key":"taskId","value":""}],"item":[{"name":"Upload","item":[{"name":"Upload a file","request":{"method":"POST","header":[],"url":{"raw":"{{baseUrl}}/v1/upload","host":["{{baseUrl}}"],"path":["v1","upload"]},"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":""}]}}},{"name":"Result → new file","request":{"method":"POST","header":[],"url":{"raw":"{{baseUrl}}/v1/upload/from-task/{{taskId}}","host":["{{baseUrl}}"],"path":["v1","upload","from-task","{{taskId}}"]}}}]},{"name":"Operations","item":[{"name":"Word to PDF","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/word-to-pdf","host":["{{baseUrl}}"],"path":["v1","pdf","word-to-pdf"]},"body":{"mode":"raw","raw":"{\n  \"file_id\": \"{{fileId}}\"\n}","options":{"raw":{"language":"json"}}},"description":"Converts a Word document to PDF: fonts, tables and Cyrillic are preserved."}},{"name":"JPG to PDF","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/jpg-to-pdf","host":["{{baseUrl}}"],"path":["v1","pdf","jpg-to-pdf"]},"body":{"mode":"raw","raw":"{\n  \"file_ids\": [\n    \"{{fileId}}\",\n    \"{{fileId2}}\"\n  ],\n  \"fit\": \"portrait\"\n}","options":{"raw":{"language":"json"}}},"description":"Builds a PDF from images: each image becomes a separate page."}},{"name":"Excel to PDF","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/xlsx-to-pdf","host":["{{baseUrl}}"],"path":["v1","pdf","xlsx-to-pdf"]},"body":{"mode":"raw","raw":"{\n  \"file_id\": \"{{fileId}}\"\n}","options":{"raw":{"language":"json"}}},"description":"Converts an Excel spreadsheet to PDF. Sheets, print area and scaling are taken from the file’s print settings."}},{"name":"PowerPoint to PDF","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/pptx-to-pdf","host":["{{baseUrl}}"],"path":["v1","pdf","pptx-to-pdf"]},"body":{"mode":"raw","raw":"{\n  \"file_id\": \"{{fileId}}\"\n}","options":{"raw":{"language":"json"}}},"description":"Converts a PowerPoint presentation to PDF: one slide per page."}},{"name":"HTML to PDF","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/html-to-pdf","host":["{{baseUrl}}"],"path":["v1","pdf","html-to-pdf"]},"body":{"mode":"raw","raw":"{\n  \"file_id\": \"{{fileId}}\",\n  \"page_size\": \"A4\",\n  \"orientation\": \"portrait\"\n}","options":{"raw":{"language":"json"}}},"description":"Turns an HTML file into a PDF. External resources aren’t loaded: images and fonts must be embedded (data:), and styles must be in the file itself."}},{"name":"PDF to Word","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/to-word","host":["{{baseUrl}}"],"path":["v1","pdf","to-word"]},"body":{"mode":"raw","raw":"{\n  \"file_id\": \"{{fileId}}\"\n}","options":{"raw":{"language":"json"}}},"description":"Converts a PDF to an editable Word document. For a scan without a text layer (the upload has text_layer: false), use ocr: true: the text is recognized and assembled into Word as paragraphs."}},{"name":"PDF to Excel","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/to-excel","host":["{{baseUrl}}"],"path":["v1","pdf","to-excel"]},"body":{"mode":"raw","raw":"{\n  \"file_id\": \"{{fileId}}\",\n  \"layout\": \"per-table\"\n}","options":{"raw":{"language":"json"}}},"description":"Extracts tables from a PDF into Excel."}},{"name":"PDF to PowerPoint","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/to-pptx","host":["{{baseUrl}}"],"path":["v1","pdf","to-pptx"]},"body":{"mode":"raw","raw":"{\n  \"file_id\": \"{{fileId}}\"\n}","options":{"raw":{"language":"json"}}},"description":"Converts a PDF to a PowerPoint presentation: each page becomes a separate slide."}},{"name":"PDF to JPG","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/to-jpg","host":["{{baseUrl}}"],"path":["v1","pdf","to-jpg"]},"body":{"mode":"raw","raw":"{\n  \"file_id\": \"{{fileId}}\",\n  \"dpi\": 150\n}","options":{"raw":{"language":"json"}}},"description":"Saves PDF pages as JPG images. The result is a ZIP archive: page-1.jpg, page-2.jpg…"}},{"name":"PDF to text","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/to-txt","host":["{{baseUrl}}"],"path":["v1","pdf","to-txt"]},"body":{"mode":"raw","raw":"{\n  \"file_id\": \"{{fileId}}\",\n  \"mode\": \"text\"\n}","options":{"raw":{"language":"json"}}},"description":"Extracts text from a PDF into a TXT file (UTF-8)."}},{"name":"Merge PDF","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/merge","host":["{{baseUrl}}"],"path":["v1","pdf","merge"]},"body":{"mode":"raw","raw":"{\n  \"file_ids\": [\n    \"{{fileId}}\",\n    \"{{fileId2}}\"\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"Merges several PDFs into one. The price is based on the total size of the files."}},{"name":"Split PDF","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/split","host":["{{baseUrl}}"],"path":["v1","pdf","split"]},"body":{"mode":"raw","raw":"{\n  \"file_id\": \"{{fileId}}\",\n  \"mode\": \"ranges\",\n  \"ranges\": [\n    [\n      1,\n      3\n    ],\n    [\n      4,\n      6\n    ]\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"Splits a PDF into parts. The result is a ZIP archive with PDF files."}},{"name":"Compress PDF","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/compress","host":["{{baseUrl}}"],"path":["v1","pdf","compress"]},"body":{"mode":"raw","raw":"{\n  \"file_id\": \"{{fileId}}\",\n  \"level\": \"medium\"\n}","options":{"raw":{"language":"json"}}},"description":"Reduces the size of a PDF. The result is never larger than the original file."}},{"name":"OCR PDF","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/ocr","host":["{{baseUrl}}"],"path":["v1","pdf","ocr"]},"body":{"mode":"raw","raw":"{\n  \"file_id\": \"{{fileId}}\",\n  \"languages\": [\n    \"rus\",\n    \"eng\"\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"Recognizes text in scans and adds an invisible text layer, so the PDF can be searched and copied. Up to 100 pages at a time."}},{"name":"Flatten PDF","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/flatten","host":["{{baseUrl}}"],"path":["v1","pdf","flatten"]},"body":{"mode":"raw","raw":"{\n  \"file_id\": \"{{fileId}}\"\n}","options":{"raw":{"language":"json"}}},"description":"Flattens form fields and annotations into the pages: the document looks the same but can’t be edited."}},{"name":"Rotate pages","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/rotate","host":["{{baseUrl}}"],"path":["v1","pdf","rotate"]},"body":{"mode":"raw","raw":"{\n  \"file_id\": \"{{fileId}}\",\n  \"pages\": \"all\",\n  \"angle\": 90\n}","options":{"raw":{"language":"json"}}},"description":"Rotates PDF pages."}},{"name":"Delete pages","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/delete-pages","host":["{{baseUrl}}"],"path":["v1","pdf","delete-pages"]},"body":{"mode":"raw","raw":"{\n  \"file_id\": \"{{fileId}}\",\n  \"pages\": [\n    2,\n    3\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"Deletes pages from a PDF completely, together with their content."}},{"name":"Extract pages","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/extract-pages","host":["{{baseUrl}}"],"path":["v1","pdf","extract-pages"]},"body":{"mode":"raw","raw":"{\n  \"file_id\": \"{{fileId}}\",\n  \"pages\": [\n    1,\n    4,\n    5\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"Saves the selected pages to a new PDF in the specified order."}},{"name":"Reorder pages","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/reorder-pages","host":["{{baseUrl}}"],"path":["v1","pdf","reorder-pages"]},"body":{"mode":"raw","raw":"{\n  \"file_id\": \"{{fileId}}\",\n  \"new_order\": [\n    3,\n    1,\n    2\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"Changes the page order. Pages you don’t list are added at the end in their original order."}},{"name":"Add page numbers","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/add-page-numbers","host":["{{baseUrl}}"],"path":["v1","pdf","add-page-numbers"]},"body":{"mode":"raw","raw":"{\n  \"file_id\": \"{{fileId}}\",\n  \"position\": \"bottom-right\",\n  \"prefix\": \"Page \"\n}","options":{"raw":{"language":"json"}}},"description":"Adds page numbers."}},{"name":"Sign PDF","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/sign","host":["{{baseUrl}}"],"path":["v1","pdf","sign"]},"body":{"mode":"raw","raw":"{\n  \"file_id\": \"{{fileId}}\",\n  \"signature_data\": \"J. Smith\",\n  \"page\": 1,\n  \"x\": 0.6,\n  \"y\": 0.85\n}","options":{"raw":{"language":"json"}}},"description":"Places a visual signature on a page: text or an image. It is not an electronic signature."}},{"name":"Protect PDF","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/protect","host":["{{baseUrl}}"],"path":["v1","pdf","protect"]},"body":{"mode":"raw","raw":"{\n  \"file_id\": \"{{fileId}}\",\n  \"user_password\": \"s3cret\"\n}","options":{"raw":{"language":"json"}}},"description":"Sets a password to open the PDF (AES-256)."}},{"name":"Unlock PDF","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/unlock","host":["{{baseUrl}}"],"path":["v1","pdf","unlock"]},"body":{"mode":"raw","raw":"{\n  \"file_id\": \"{{fileId}}\",\n  \"password\": \"s3cret\"\n}","options":{"raw":{"language":"json"}}},"description":"Removes the password from a PDF if you know it."}},{"name":"Add watermark","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/watermark","host":["{{baseUrl}}"],"path":["v1","pdf","watermark"]},"body":{"mode":"raw","raw":"{\n  \"file_id\": \"{{fileId}}\",\n  \"text\": \"COPY\",\n  \"opacity\": 0.2,\n  \"position\": \"tile\"\n}","options":{"raw":{"language":"json"}}},"description":"Adds a watermark: text or a logo. Exactly one of the text and image_file_id parameters is required."}},{"name":"Photo to PDF","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/photo-to-pdf","host":["{{baseUrl}}"],"path":["v1","pdf","photo-to-pdf"]},"body":{"mode":"raw","raw":"{\n  \"file_ids\": [\n    \"{{fileId}}\",\n    \"{{fileId2}}\"\n  ],\n  \"page\": \"a4\",\n  \"compact\": true\n}","options":{"raw":{"language":"json"}}},"description":"Builds a PDF from phone photos: each photo becomes an A4 page in its own orientation, and downscaling makes the file lighter. “Document scan” mode finds the sheet in the photo, straightens the perspective and makes the background white."}},{"name":"DjVu to PDF","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/djvu-to-pdf","host":["{{baseUrl}}"],"path":["v1","pdf","djvu-to-pdf"]},"body":{"mode":"raw","raw":"{\n  \"file_id\": \"{{fileId}}\"\n}","options":{"raw":{"language":"json"}}},"description":"Converts a DjVu book or scan to PDF. The DjVu text layer isn’t carried over: to make the text searchable, run the result through the OCR PDF operation."}},{"name":"FB2 to PDF","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/fb2-to-pdf","host":["{{baseUrl}}"],"path":["v1","pdf","fb2-to-pdf"]},"body":{"mode":"raw","raw":"{\n  \"file_id\": \"{{fileId}}\",\n  \"page\": \"a5\"\n}","options":{"raw":{"language":"json"}}},"description":"Converts an FB2 book to PDF: chapters become bookmarks, and the author and title go into the file properties."}},{"name":"EPUB to PDF","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/epub-to-pdf","host":["{{baseUrl}}"],"path":["v1","pdf","epub-to-pdf"]},"body":{"mode":"raw","raw":"{\n  \"file_id\": \"{{fileId}}\",\n  \"page\": \"a5\"\n}","options":{"raw":{"language":"json"}}},"description":"Converts an EPUB book to PDF: chapters from the table of contents (toc.ncx) become bookmarks."}},{"name":"PDF to PNG","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/to-png","host":["{{baseUrl}}"],"path":["v1","pdf","to-png"]},"body":{"mode":"raw","raw":"{\n  \"file_id\": \"{{fileId}}\",\n  \"dpi\": 150\n}","options":{"raw":{"language":"json"}}},"description":"Saves PDF pages as lossless PNG images — for diagrams, drawings and screenshots. The result is a ZIP archive."}},{"name":"PDF to Markdown","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/to-markdown","host":["{{baseUrl}}"],"path":["v1","pdf","to-markdown"]},"body":{"mode":"raw","raw":"{\n  \"file_id\": \"{{fileId}}\"\n}","options":{"raw":{"language":"json"}}},"description":"Converts a PDF to Markdown for AI models, knowledge bases and documentation: headings by font size, lists, tables, links, bold and italics. Page numbers at the page edges are removed."}},{"name":"Compress image","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/compress-image","host":["{{baseUrl}}"],"path":["v1","pdf","compress-image"]},"body":{"mode":"raw","raw":"{\n  \"file_ids\": [\n    \"{{fileId}}\",\n    \"{{fileId2}}\"\n  ],\n  \"level\": \"medium\"\n}","options":{"raw":{"language":"json"}}},"description":"Compresses photos by level or to a target size in KB. One photo comes back as a file, several as a ZIP archive."}},{"name":"HEIC to JPG","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/heic-to-jpg","host":["{{baseUrl}}"],"path":["v1","pdf","heic-to-jpg"]},"body":{"mode":"raw","raw":"{\n  \"file_ids\": [\n    \"{{fileId}}\",\n    \"{{fileId2}}\"\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"Converts HEIC/HEIF photos from an iPhone to JPG with the original colors (the ICC profile is preserved). One photo comes back as a JPG, several as a ZIP archive."}},{"name":"Image to text","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/image-to-text","host":["{{baseUrl}}"],"path":["v1","pdf","image-to-text"]},"body":{"mode":"raw","raw":"{\n  \"file_ids\": [\n    \"{{fileId}}\",\n    \"{{fileId2}}\"\n  ],\n  \"languages\": [\n    \"rus\",\n    \"eng\"\n  ],\n  \"format\": \"txt\"\n}","options":{"raw":{"language":"json"}}},"description":"Recognizes text in photos and images: the text of all photos goes into one file, each photo starting on a new page."}},{"name":"PNG to JPG","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/png-to-jpg","host":["{{baseUrl}}"],"path":["v1","pdf","png-to-jpg"]},"body":{"mode":"raw","raw":"{\n  \"file_ids\": [\n    \"{{fileId}}\",\n    \"{{fileId2}}\"\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"Converts PNG images to JPG. Transparency becomes a white background. One image comes back as a JPG, several as a ZIP archive."}},{"name":"JPG to PNG","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/jpg-to-png","host":["{{baseUrl}}"],"path":["v1","pdf","jpg-to-png"]},"body":{"mode":"raw","raw":"{\n  \"file_ids\": [\n    \"{{fileId}}\",\n    \"{{fileId2}}\"\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"Converts JPG images to PNG. Lossless. One image comes back as a PNG, several as a ZIP archive."}},{"name":"WEBP to JPG","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/webp-to-jpg","host":["{{baseUrl}}"],"path":["v1","pdf","webp-to-jpg"]},"body":{"mode":"raw","raw":"{\n  \"file_ids\": [\n    \"{{fileId}}\",\n    \"{{fileId2}}\"\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"Converts WEBP images to JPG. Transparency becomes a white background; for animations, the first frame is used. One image comes back as a JPG, several as a ZIP archive."}},{"name":"Resize image","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/resize-image","host":["{{baseUrl}}"],"path":["v1","pdf","resize-image"]},"body":{"mode":"raw","raw":"{\n  \"file_ids\": [\n    \"{{fileId}}\",\n    \"{{fileId2}}\"\n  ],\n  \"mode\": \"pixels\",\n  \"width\": 1200\n}","options":{"raw":{"language":"json"}}},"description":"Resizes photos by percentage or in pixels; the format is preserved. One photo comes back as a file, several as a ZIP archive."}},{"name":"Crop image","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/crop-image","host":["{{baseUrl}}"],"path":["v1","pdf","crop-image"]},"body":{"mode":"raw","raw":"{\n  \"file_id\": \"{{fileId}}\",\n  \"box\": [\n    0.1,\n    0.1,\n    0.9,\n    0.9\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"Crops a photo to a frame; the format is preserved."}},{"name":"Rotate image","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/rotate-image","host":["{{baseUrl}}"],"path":["v1","pdf","rotate-image"]},"body":{"mode":"raw","raw":"{\n  \"file_ids\": [\n    \"{{fileId}}\",\n    \"{{fileId2}}\"\n  ],\n  \"angle\": 90\n}","options":{"raw":{"language":"json"}}},"description":"Rotates and flips photos; the format is preserved. One photo comes back as a file, several as a ZIP archive."}},{"name":"Word to JPG","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/word-to-jpg","host":["{{baseUrl}}"],"path":["v1","pdf","word-to-jpg"]},"body":{"mode":"raw","raw":"{\n  \"file_id\": \"{{fileId}}\",\n  \"dpi\": 150\n}","options":{"raw":{"language":"json"}}},"description":"Saves the pages of a Word document as JPG images. One page comes back as a JPG, several as a ZIP archive."}},{"name":"PDF editor","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/edit","host":["{{baseUrl}}"],"path":["v1","pdf","edit"]},"body":{"mode":"raw","raw":"{\n  \"file_id\": \"{{fileId}}\",\n  \"objects\": [\n    {\n      \"type\": \"text\",\n      \"page\": 1,\n      \"box\": [\n        0.1,\n        0.03,\n        0.9,\n        0.08\n      ],\n      \"text\": \"Approved\",\n      \"size\": 14\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"Adds text, a signature, an image, whiteout (the text under it is removed from the file), markup and shapes to pages, and replaces lines of text. Objects are flattened into the pages."}},{"name":"Grayscale PDF","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/grayscale","host":["{{baseUrl}}"],"path":["v1","pdf","grayscale"]},"body":{"mode":"raw","raw":"{\n  \"file_id\": \"{{fileId}}\"\n}","options":{"raw":{"language":"json"}}},"description":"Converts a PDF to grayscale — for printing and “black and white only” requirements. Text stays text: it can still be searched and copied."}},{"name":"PDF to PDF/A","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/to-pdfa","host":["{{baseUrl}}"],"path":["v1","pdf","to-pdfa"]},"body":{"mode":"raw","raw":"{\n  \"file_id\": \"{{fileId}}\",\n  \"version\": \"2\"\n}","options":{"raw":{"language":"json"}}},"description":"Converts a PDF to PDF/A, the long-term preservation format for archives, courts and government agencies. A document with an electronic signature isn’t converted: the signature would stop being valid."}},{"name":"Repair PDF","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/repair","host":["{{baseUrl}}"],"path":["v1","pdf","repair"]},"body":{"mode":"raw","raw":"{\n  \"file_id\": \"{{fileId}}\"\n}","options":{"raw":{"language":"json"}}},"description":"Repairs a damaged PDF that won’t open or opens with an error. If there’s nothing to recover, you get an error and aren’t charged."}},{"name":"Crop PDF","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/crop","host":["{{baseUrl}}"],"path":["v1","pdf","crop"]},"body":{"mode":"raw","raw":"{\n  \"file_id\": \"{{fileId}}\",\n  \"mode\": \"auto\"\n}","options":{"raw":{"language":"json"}}},"description":"Crops PDF pages to a frame or trims white margins automatically. Content outside the frame stays in the file; to hide data, use redact."}},{"name":"Redact personal data","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/redact","host":["{{baseUrl}}"],"path":["v1","pdf","redact"]},"body":{"mode":"raw","raw":"{\n  \"file_id\": \"{{fileId}}\",\n  \"find\": {\n    \"kinds\": [\n      \"phone\",\n      \"email\",\n      \"snils\",\n      \"inn\"\n    ],\n    \"words\": [\n      \"John Smith\"\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"description":"Redacts personal data: finds it on its own (find) and/or takes the areas you pass (areas), then removes it from the file — no text or pixels remain under the black boxes. If nothing is found and there are no areas, you get an error and aren’t charged."}},{"name":"Find personal data","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/pdf/find-personal-data","host":["{{baseUrl}}"],"path":["v1","pdf","find-personal-data"]},"body":{"mode":"raw","raw":"{\n  \"file_id\": \"{{fileId}}\",\n  \"kinds\": [\n    \"phone\",\n    \"email\",\n    \"snils\"\n  ]\n}","options":{"raw":{"language":"json"}}},"description":"Finds personal data in a PDF without changing the file. The result is JSON: {\"pages\": [{\"page\", \"items\": [{\"kind\", \"text\", \"boxes\"}]}], \"scanned\": [scanned pages without text], \"total\"}; boxes are [x0, y0, x1, y1] as fractions of the page and can be passed to redact as areas."}}]},{"name":"Tasks","item":[{"name":"Status","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/tasks/{{taskId}}","host":["{{baseUrl}}"],"path":["v1","tasks","{{taskId}}"]}}},{"name":"Result link","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/tasks/{{taskId}}/download","host":["{{baseUrl}}"],"path":["v1","tasks","{{taskId}}","download"]}}}]},{"name":"Balance and pricing","item":[{"name":"API balance","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/api-keys/balance","host":["{{baseUrl}}"],"path":["v1","api-keys","balance"]}}},{"name":"API pricing","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/pricing/api","host":["{{baseUrl}}"],"path":["v1","pricing","api"]}}}]}]}