Rearrange pages in a PDF file
POST
/api/v1/general/rearrange-pages
General
请求参数
Body 参数multipart/form-data
fileInput
file
必需
pageNumbers
string
必需
默认值:
all
示例值:
all
customMode
enum<string>
可选
CUSTOM: Uses order defined in PageNums DUPLICATE: Duplicate pages n times (if Page order defined as 4, then duplicates each page 4 times)REVERSE_ORDER: Reverses the order of all pages.
DUPLEX_SORT: Sorts pages as if all fronts were scanned then all backs in reverse (1, n, 2, n-1, ...). BOOKLET_SORT: Arranges pages for booklet printing (last, first, second, second last, ...).
ODD_EVEN_SPLIT: Splits and arranges pages into odd and even numbered pages.
ODD_EVEN_MERGE: Merges pages and organises them alternately into odd and even pages.
REMOVE_FIRST: Removes the first page.
REMOVE_LAST: Removes the last page.
REMOVE_FIRST_AND_LAST: Removes both the first and the last pages.
枚举值:
CUSTOMREVERSE_ORDERDUPLEX_SORTBOOKLET_SORTSIDE_STITCH_BOOKLET_SORTODD_EVEN_SPLITODD_EVEN_MERGEREMOVE_FIRSTREMOVE_LASTREMOVE_FIRST_AND_LASTDUPLICATE
示例代码
返回响应
修改于 2025-06-22 03:57:35