博 客 - 正文

PDF文件操作 帮助文档

来源:顺为数据网站 分类:帮助 weiewl 阅读(401)

接口需POST传参

文件合并: 

type 为 merge,fileurls 放用英文半角,拼接PDF文件下载地址,options为空即可

例如:

typemerge
fileurlshttps://api.itapi.cn/xxx.pdf,https://api.itapi.cn/xxx2.pdf
options

文件拆分:

type 为 split,fileurls 放一个PDF文件下载地址,options 是拆分的页数,例如:2,就是把 PDF 拆分为多个 PDF,每个 PDF 是 2 页

例如:

typesplit
fileurlshttps://api.itapi.cn/xxx.pdf,https://api.itapi.cn/xxx2.pdf
options2

提取图片:

type 为 extractimg,fileurls 放一个PDF文件下载地址,options为空即可

例如:

typeextractimg
fileurlshttps://api.itapi.cn/xxx.pdf,https://api.itapi.cn/xxx2.pdf
options

文件解密:

type 为 decrypt,fileurls 放一个PDF文件下载地址,options 是密码,如果没密码也可以空。

例如:

typedecrypt
fileurlshttps://api.itapi.cn/xxx.pdf,https://api.itapi.cn/xxx2.pdf
options

页面删除 :

type 为 pageremove,fileurls 放一个PDF文件下载地址,options 是逗号分割的页码字符串 例如:1,3,就是把 PDF 里的第一页,第三页删除

例如:

typepageremove
fileurlshttps://api.itapi.cn/xxx.pdf,https://api.itapi.cn/xxx2.pdf
options1,3

页面提取 :

type 为 pageextract,fileurls 放一个PDF文件下载地址,options 是逗号分割的页码字符串 例如:1,3,就是把 PDF 里的第一页,第三页提取出来作为一个 PDF 文件 

例如:

typepageextract
fileurlshttps://api.itapi.cn/xxx.pdf
options1,3

页面旋转 :

type 为 pagerotate,fileurls 放一个PDF文件下载地址,options是旋转角度,正时 针,取值 90,180,270。

例如:

typepagerotate
fileurlshttps://api.itapi.cn/xxx.pdf
options90

页面加页码 :

就是把 PDF 每一页右下角添加页码,type 为 pageaddnumber,fileurls 放一个PDF文件下载地址,options为空即可

例如:

typepageaddnumber
fileurlshttps://api.itapi.cn/xxx.pdf
options


数据驱动未来

立即注册

微信
加我为好友
微信号:Devservice

QQ

咨询