{"category":"documents","endpoint":"https://setget.net/v1/tools/pdf-text","examples":[{"input":{"file":"sample.pdf"},"title":"All the text of a PDF"},{"input":{"file":"sample.pdf","page_markers":true,"pages":"1"},"title":"One page, with a page marker"},{"input":{"file":"sample.pdf","layout":true,"pages":"2-"},"title":"From page 2 on, keeping the layout"}],"input_schema":{"additionalProperties":false,"properties":{"file":{"description":"The PDF to read.","examples":["sample.pdf"],"format":"setget-file","type":"string","x-accept":["pdf"]},"layout":{"default":false,"description":"Keep columns and tables lined up with spaces, as they look on the page. Off, the text follows the reading order, which is better for paragraphs.","type":"boolean"},"page_markers":{"default":false,"description":"Put a line such as \"--- Page 3 ---\" before the text of each page.","type":"boolean"},"pages":{"description":"Pages to read. Page numbers and ranges separated by commas, such as 1-3,5,8- (8- means page 8 to the end). odd, even and last also work. Left empty, every page is read.","examples":["1-2"],"maxLength":500,"type":"string"},"password":{"description":"The password of the PDF, if it is locked. It is used once to open the file and is never stored or shown. The result is not locked.","maxLength":256,"type":"string"}},"required":["file"],"type":"object"},"keywords":["pdf to text","extract text from pdf","pdf to txt","copy text from pdf","read pdf","pdf text extractor","pdf content","convert pdf to text","pdf for llm","pdftotext"],"related":["ocr-pdf","pdf-to-markdown","pdf-info","pdf-extract-pages","pdf-to-images"],"slug":"pdf-text","summary":"Get the text out of a PDF, from all pages or the ones you choose, as plain text in reading order and as a .txt file.","tier":"job","timeout_seconds":180,"title":"PDF to text","url":"https://setget.net/tools/pdf-text"}
