# spdf ## API Docs - Security [Validate PDF Digital Signature](https://mztxgfriio.apifox.cn/317967757e0.md): Validates the digital signatures in a PDF file against default or custom certificates. Input:PDF Output:JSON Type:SISO - Security [Sanitize a PDF file](https://mztxgfriio.apifox.cn/317967758e0.md): This endpoint processes a PDF file and removes specific elements based on the provided options. Input:PDF Output:PDF Type:SISO - Security [Remove password from a PDF file](https://mztxgfriio.apifox.cn/317967759e0.md): This endpoint removes the password from a protected PDF file. Users need to provide the existing password. Input:PDF Output:PDF Type:SISO - Security [Remove digital signature from PDF](https://mztxgfriio.apifox.cn/317967760e0.md): This endpoint accepts a PDF file and returns the PDF file without the digital signature. Input:PDF, Output:PDF Type:SISO - Security [Redacts areas and pages in a PDF document](https://mztxgfriio.apifox.cn/317967761e0.md): This operation takes an input PDF file with a list of areas, page number(s)/range(s)/function(s) to redact. Input:PDF, Output:PDF, Type:SISO - Security [Summary here](https://mztxgfriio.apifox.cn/317967762e0.md): desc. Input:PDF Output:JSON Type:SISO - Security [Sign PDF with a Digital Certificate](https://mztxgfriio.apifox.cn/317967763e0.md): This endpoint accepts a PDF file, a digital certificate and related information to sign the PDF. It then returns the digitally signed PDF file. Input:PDF Output:PDF Type:SISO - Security [Redacts listOfText in a PDF document](https://mztxgfriio.apifox.cn/317967764e0.md): This operation takes an input PDF file and redacts the provided listOfText. Input:PDF, Output:PDF, Type:SISO - Security [Add watermark to a PDF file](https://mztxgfriio.apifox.cn/317967765e0.md): This endpoint adds a watermark to a given PDF file. Users can specify the watermark type (text or image), rotation, opacity, width spacer, and height spacer. Input:PDF Output:PDF Type:SISO - Security [Add password to a PDF file](https://mztxgfriio.apifox.cn/317967766e0.md): This endpoint adds password protection to a PDF file. Users can specify a set of permissions that should be applied to the file. Input:PDF Output:PDF - Pipeline [handleData](https://mztxgfriio.apifox.cn/317967767e0.md): - Misc [Update metadata of a PDF file](https://mztxgfriio.apifox.cn/317967768e0.md): This endpoint allows you to update the metadata of a given PDF file. You can add, modify, or delete standard and custom metadata fields. Input:PDF Output:PDF Type:SISO - Misc [Remove read-only property from form fields](https://mztxgfriio.apifox.cn/317967769e0.md): Removing read-only property from form fields making them fillableInput:PDF, Output:PDF. Type:SISO - Misc [Grabs all JS from a PDF and returns a single JS file with all code](https://mztxgfriio.apifox.cn/317967770e0.md): desc. Input:PDF Output:JS Type:SISO - Misc [Replace-Invert Color PDF](https://mztxgfriio.apifox.cn/317967771e0.md): This endpoint accepts a PDF file and option of invert all colors or replace text and background colors. Input:PDF Output:PDF Type:SISO - Misc [Repair a PDF file](https://mztxgfriio.apifox.cn/317967772e0.md): This endpoint repairs a given PDF file by running qpdf command. The PDF is first saved to a temporary location, repaired, read back, and then returned as a response. Input:PDF Output:PDF Type:SISO - Misc [Remove blank pages from a PDF file](https://mztxgfriio.apifox.cn/317967773e0.md): This endpoint removes blank pages from a given PDF file. Users can specify the threshold and white percentage to tune the detection of blank pages. Input:PDF Output:PDF Type:SISO - Misc [Process PDF files with OCR using Tesseract](https://mztxgfriio.apifox.cn/317967774e0.md): Takes a PDF file as input, performs OCR using specified languages and OCR type (skip-text/force-ocr), and returns the processed PDF. Input:PDF Output:PDF Type:SISO - Misc [Flatten PDF form fields or full page](https://mztxgfriio.apifox.cn/317967775e0.md): Flattening just PDF form fields or converting each page to images to make text unselectable. Input:PDF, Output:PDF. Type:SISO - Misc [Extract images from a PDF file](https://mztxgfriio.apifox.cn/317967776e0.md): This endpoint extracts images from a given PDF file and returns them in a zip file. Users can specify the output image format. Input:PDF Output:IMAGE/ZIP Type:SIMO - Misc [Extract image scans from an input file](https://mztxgfriio.apifox.cn/317967777e0.md): This endpoint extracts image scans from a given file based on certain parameters. Users can specify angle threshold, tolerance, minimum area, minimum contour area, and border size. Input:PDF Output:IMAGE/ZIP Type:SIMO - Misc [Decompress PDF streams](https://mztxgfriio.apifox.cn/317967778e0.md): Fully decompresses all PDF streams including text content - Misc [Optimize PDF file](https://mztxgfriio.apifox.cn/317967779e0.md): This endpoint accepts a PDF file and optimizes it based on the provided parameters. Input:PDF Output:PDF Type:SISO - Misc [Auto split PDF pages into separate documents](https://mztxgfriio.apifox.cn/317967780e0.md): This endpoint accepts a PDF file, scans each page for a specific QR code, and splits the document at the QR code boundaries. The output is a zip file containing each separate PDF document. Input:PDF Output:ZIP-PDF Type:SISO - Misc [Extract header from PDF file](https://mztxgfriio.apifox.cn/317967781e0.md): This endpoint accepts a PDF file and attempts to extract its title or header based on heuristics. Input:PDF Output:PDF Type:SISO - Misc [Add stamp to a PDF file](https://mztxgfriio.apifox.cn/317967782e0.md): This endpoint adds a stamp to a given PDF file. Users can specify the stamp type (text or image), rotation, opacity, width spacer, and height spacer. Input:PDF Output:PDF Type:SISO - Misc [Add page numbers to a PDF document](https://mztxgfriio.apifox.cn/317967783e0.md): This operation takes an input PDF file and adds page numbers to it. Input:PDF Output:PDF Type:SISO - Misc [Overlay image onto a PDF file](https://mztxgfriio.apifox.cn/317967784e0.md): This endpoint overlays an image onto a PDF file at the specified coordinates. The image can be overlaid on every page of the PDF if specified. Input:PDF/IMAGE Output:PDF Type:SISO - General [Split PDF pages into smaller sections](https://mztxgfriio.apifox.cn/317967785e0.md): Split each page of a PDF into smaller sections based on the user's choice (halves, thirds, quarters, etc.), both vertically and horizontally. Input:PDF Output:ZIP-PDF Type:SISO - General [Split PDFs by Chapters](https://mztxgfriio.apifox.cn/317967786e0.md): Splits a PDF into chapters and returns a ZIP file. - General [Split a PDF file into separate documents](https://mztxgfriio.apifox.cn/317967787e0.md): This endpoint splits a given PDF file into separate documents based on the specified page numbers or ranges. Users can specify pages using individual numbers, ranges, or 'all' for every page. Input:PDF Output:PDF Type:SIMO - General [Auto split PDF pages into separate documents based on size or count](https://mztxgfriio.apifox.cn/317967788e0.md): split PDF into multiple paged documents based on size/count, ie if 20 pages and split into 5, it does 5 documents each 4 pages - General [Change the size of a PDF page/document](https://mztxgfriio.apifox.cn/317967789e0.md): This operation takes an input PDF file and the size to scale the pages to in the output PDF file. Input:PDF Output:PDF Type:SISO - General [Rotate a PDF file](https://mztxgfriio.apifox.cn/317967790e0.md): This endpoint rotates a given PDF file by a specified angle. The angle must be a multiple of 90. Input:PDF Output:PDF Type:SISO - General [Remove pages from a PDF file](https://mztxgfriio.apifox.cn/317967791e0.md): This endpoint removes specified pages from a given PDF file. Users can provide a comma-separated list of page numbers or ranges to delete. Input:PDF Output:PDF Type:SISO - General [Remove images from file to reduce the file size.](https://mztxgfriio.apifox.cn/317967792e0.md): This endpoint remove images from file to reduce the file size.Input:PDF Output:PDF Type:MISO - General [Rearrange pages in a PDF file](https://mztxgfriio.apifox.cn/317967793e0.md): This endpoint rearranges pages in a given PDF file based on the specified page order or custom mode. Users can provide a page order as a comma-separated list of page numbers or page ranges, or a custom mode. Input:PDF Output:PDF - General [Convert a multi-page PDF into a single long page PDF](https://mztxgfriio.apifox.cn/317967794e0.md): This endpoint converts a multi-page PDF document into a single paged PDF document. The width of the single page will be same as the input's width, but the height will be the sum of all the pages' heights. Input:PDF Output:PDF Type:SISO - General [Overlay PDF files in various modes](https://mztxgfriio.apifox.cn/317967795e0.md): Overlay PDF files onto a base PDF with different modes: Sequential, Interleaved, or Fixed Repeat. Input:PDF Output:PDF Type:MIMO - General [Merge multiple pages of a PDF document into a single page](https://mztxgfriio.apifox.cn/317967796e0.md): This operation takes an input PDF file and the number of pages to merge into a single sheet in the output PDF file. Input:PDF Output:PDF Type:SISO - General [Merge multiple PDF files into one](https://mztxgfriio.apifox.cn/317967797e0.md): This endpoint merges multiple PDF files into a single PDF file. The merged file will contain all pages from the input files in the order they were provided. Input:PDF Output:PDF Type:MISO - General [Crops a PDF document](https://mztxgfriio.apifox.cn/317967798e0.md): This operation takes an input PDF file and crops it according to the given coordinates. Input:PDF Output:PDF Type:SISO - Filter [Checks if a PDF is of a certain size](https://mztxgfriio.apifox.cn/317967799e0.md): Input:PDF Output:Boolean Type:SISO - Filter [Checks if a PDF is of a certain rotation](https://mztxgfriio.apifox.cn/317967800e0.md): Input:PDF Output:Boolean Type:SISO - Filter [Checks if a PDF is greater, less or equal to a setPageCount](https://mztxgfriio.apifox.cn/317967801e0.md): Input:PDF Output:Boolean Type:SISO - Filter [Checks if a PDF is a set file size](https://mztxgfriio.apifox.cn/317967802e0.md): Input:PDF Output:Boolean Type:SISO - Filter [Checks if a PDF contains set text, returns true if does](https://mztxgfriio.apifox.cn/317967803e0.md): Input:PDF Output:Boolean Type:SISO - Filter [Checks if a PDF contains an image](https://mztxgfriio.apifox.cn/317967804e0.md): Input:PDF Output:Boolean Type:SISO - Convert [Convert a URL to a PDF](https://mztxgfriio.apifox.cn/317967805e0.md): This endpoint fetches content from a URL and converts it to a PDF format. Input:N/A Output:PDF Type:SISO - Convert [Convert PDF to XML](https://mztxgfriio.apifox.cn/317967806e0.md): This endpoint converts a PDF file to an XML file. Input:PDF Output:XML Type:SISO - Convert [Convert PDF to Word document](https://mztxgfriio.apifox.cn/317967807e0.md): This endpoint converts a given PDF file to a Word document format. Input:PDF Output:WORD Type:SISO - Convert [Convert PDF to Text or RTF format](https://mztxgfriio.apifox.cn/317967808e0.md): This endpoint converts a given PDF file to Text or RTF format. Input:PDF Output:TXT Type:SISO - Convert [Convert PDF to Presentation format](https://mztxgfriio.apifox.cn/317967809e0.md): This endpoint converts a given PDF file to a Presentation format. Input:PDF Output:PPT Type:SISO - Convert [Convert a PDF to a PDF/A](https://mztxgfriio.apifox.cn/317967810e0.md): This endpoint converts a PDF file to a PDF/A file using LibreOffice. PDF/A is a format designed for long-term archiving of digital documents. Input:PDF Output:PDF Type:SISO - Convert [Convert PDF to Markdown](https://mztxgfriio.apifox.cn/317967811e0.md): This endpoint converts a PDF file to Markdown format. Input:PDF Output:Markdown Type:SISO - Convert [Convert PDF to image(s)](https://mztxgfriio.apifox.cn/317967812e0.md): This endpoint converts a PDF file to image(s) with the specified image format, color type, and DPI. Users can choose to get a single image or multiple images. Input:PDF Output:Image Type:SI-Conditional - Convert [Convert PDF to HTML](https://mztxgfriio.apifox.cn/317967813e0.md): This endpoint converts a PDF file to HTML format. Input:PDF Output:HTML Type:SISO - Convert [Extracts a CSV document from a PDF](https://mztxgfriio.apifox.cn/317967814e0.md): This operation takes an input PDF file and returns CSV file of whole page. Input:PDF Output:CSV Type:SISO - Convert [Convert a Markdown file to PDF](https://mztxgfriio.apifox.cn/317967815e0.md): This endpoint takes a Markdown file input, converts it to HTML, and then to PDF format. Input:MARKDOWN Output:PDF Type:SISO - Convert [Convert images to a PDF file](https://mztxgfriio.apifox.cn/317967816e0.md): This endpoint converts one or more images to a PDF file. Users can specify whether to stretch the images to fit the PDF page, and whether to automatically rotate the images. Input:Image Output:PDF Type:MISO - Convert [Convert an HTML or ZIP (containing HTML and CSS) to PDF](https://mztxgfriio.apifox.cn/317967817e0.md): This endpoint takes an HTML or ZIP file input and converts it to a PDF format. Input:HTML Output:PDF Type:SISO - Convert [Convert a file to a PDF using LibreOffice](https://mztxgfriio.apifox.cn/317967818e0.md): This endpoint converts a given file to a PDF using LibreOffice API Input:ANY Output:PDF Type:SISO - Analysis [Get security information](https://mztxgfriio.apifox.cn/317967819e0.md): Returns encryption and permission details. Input:PDF Output:JSON Type:SISO - Analysis [Get page dimensions for all pages](https://mztxgfriio.apifox.cn/317967820e0.md): Returns width and height of each page. Input:PDF Output:JSON Type:SISO - Analysis [Get PDF page count](https://mztxgfriio.apifox.cn/317967821e0.md): Returns total number of pages in PDF. Input:PDF Output:JSON Type:SISO - Analysis [Get form field information](https://mztxgfriio.apifox.cn/317967822e0.md): Returns count and details of form fields. Input:PDF Output:JSON Type:SISO - Analysis [Get font information](https://mztxgfriio.apifox.cn/317967823e0.md): Returns list of fonts used in the document. Input:PDF Output:JSON Type:SISO - Analysis [Get PDF document properties](https://mztxgfriio.apifox.cn/317967824e0.md): Returns title, author, subject, etc. Input:PDF Output:JSON Type:SISO - Analysis [Get basic PDF information](https://mztxgfriio.apifox.cn/317967825e0.md): Returns page count, version, file size. Input:PDF Output:JSON Type:SISO - Analysis [Get annotation information](https://mztxgfriio.apifox.cn/317967826e0.md): Returns count and types of annotations. Input:PDF Output:JSON Type:SISO - Info [getUptime](https://mztxgfriio.apifox.cn/317967827e0.md): - Info [Application status and version](https://mztxgfriio.apifox.cn/317967828e0.md): This endpoint returns the status of the application and its version number. - Info [POST request count](https://mztxgfriio.apifox.cn/317967829e0.md): This endpoint returns the total count of POST requests for a specific endpoint or all endpoints. - Info [Unique users count for POST requests](https://mztxgfriio.apifox.cn/317967830e0.md): This endpoint returns the count of unique users for POST requests for a specific endpoint or all endpoints. - Info [POST requests count for all endpoints](https://mztxgfriio.apifox.cn/317967831e0.md): This endpoint returns the count of POST requests for each endpoint. - Info [Unique users count for POST requests for all endpoints](https://mztxgfriio.apifox.cn/317967832e0.md): This endpoint returns the count of unique users for POST requests for each endpoint. - Info [GET request count](https://mztxgfriio.apifox.cn/317967833e0.md): This endpoint returns the total count of GET requests for a specific endpoint or all endpoints. - Info [Unique users count for GET requests](https://mztxgfriio.apifox.cn/317967834e0.md): This endpoint returns the count of unique users for GET requests for a specific endpoint or all endpoints. - Info [GET requests count for all endpoints](https://mztxgfriio.apifox.cn/317967835e0.md): This endpoint returns the count of GET requests for each endpoint. - Info [Unique users count for GET requests for all endpoints](https://mztxgfriio.apifox.cn/317967836e0.md): This endpoint returns the count of unique users for GET requests for each endpoint. - 后端 api [文件转 pdf](https://mztxgfriio.apifox.cn/318038914e0.md): - 后端 api [测试](https://mztxgfriio.apifox.cn/318043209e0.md): - 后端 api [获取文件](https://mztxgfriio.apifox.cn/319649504e0.md): - 后端 api [获取合并进度](https://mztxgfriio.apifox.cn/326148628e0.md):