{"category":"documents","endpoint":"https://setget.net/v1/tools/pdf-extract-pages","examples":[{"input":{"file":"sample.pdf","pages":"1,3"},"title":"Keep pages 1 and 3"},{"input":{"exclude":true,"file":"sample.pdf","pages":"2"},"title":"Delete page 2"},{"input":{"file":"sample.pdf","pages":"last-1"},"title":"Reverse the page order"}],"input_schema":{"additionalProperties":false,"properties":{"exclude":{"default":false,"description":"Delete the pages listed and keep all the others, instead of keeping the pages listed.","type":"boolean"},"file":{"description":"The PDF to take pages from.","examples":["sample.pdf"],"format":"setget-file","type":"string","x-accept":["pdf"]},"pages":{"description":"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. The order you write is the order of the result, so 3,1 puts page 3 first and 5-1 reverses five pages.","examples":["1,3"],"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","pages"],"type":"object"},"keywords":["extract pdf pages","delete pdf pages","remove pages from pdf","pdf page picker","reorder pdf pages","keep pages","cut pages from pdf","reverse pdf","unlock pdf","remove pdf password"],"related":["pdf-split","pdf-merge","pdf-rotate","pdf-to-images","pdf-text"],"slug":"pdf-extract-pages","summary":"Make a new PDF from the pages you choose, in the order you list them, or delete the pages you name and keep the rest.","tier":"job","timeout_seconds":180,"title":"Extract or delete PDF pages","url":"https://setget.net/tools/pdf-extract-pages"}
