我们正在尝试将多个图像合并为单个pdf文档。对于我们来说,convertapi似乎是一个完美的解决方案。但是,当我使用您的api尝试一个示例时,它返回
{
"Code": 5999,
"Message": "The error mapping is missing."
}我的要求在下面,你能告诉我正确的方向吗?
网址:https://v2.convertapi.com/pdf/to/merge?Secret=XXXXXXXXXXXXXXXX
发布数据:
{
"Parameters": [
{
"Name": "StoreFile",
"Value": "true"
},
{
"Name": "PdfVersion",
"Value": "1.7"
},
{
"Name": "Files",
"FileValues": [
{
"Url": "https://vignette.wikia.nocookie.net/gameofthrones/images/5/52/Viserion_brought_down.jpg"
},
{
"Url": "https://vignette.wikia.nocookie.net/gameofthrones/images/5/52/Viserion_brought_down.jpg"
},
{
"Url": "https://vignette.wikia.nocookie.net/gameofthrones/images/5/52/Viserion_brought_down.jpg"
}
]
}
]
}发布于 2017-10-09 18:28:24
在后续的转换中,可以通过使用结果文件链接作为源文件来链接转换。结果文件URL将被异常处理,并将以高性能处理转换。示例:
请求:
发布https://v2.convertapi.com/jpg/to/pdf?secret=XXX&storefile=true&file=https://example.com/file1.jpg
结果:
{ "ConversionTime":2,“文件”:{ "FileName":"file1.pdf","FileSize":19456,"Url":"https://v2.convertapi.com/d/ZYXFNMPT/file1.pdf“}}
请求:
发布https://v2.convertapi.com/jpg/to/pdf?secret=XXX&storefile=true&file=https://example.com/file2.jpg
结果:
{“PDF”:2,“文件”:{ "FileName":"file2.pdf","FileSize":19456,"Url":} }
发布Url{“参数”:[{“名称”:“文件”,"FileValues":{ "Url":"https://v2.convertapi.com/d/ZYXFNMPT/file1.pdf“},{ "Url":"https://v2.convertapi.com/d/QAZEDCTG/file2.pdf“}}] }
https://stackoverflow.com/questions/46643106
复制相似问题