Skip to content

API Convert

damiancosmoschapman edited this page Oct 4, 2021 · 16 revisions

Home / API / Convert JSON-RPC

This page contains the JSON-RPC versions of the Convert method. For the RESTful method, please go to the RESTful page for Convert.

Create a PDF file from a CSO domain URL.

Returns a base64 PDF string

Authentication: Anonymous

Privilege : N/A

Method: PxStat.Data.Cube_API.Create

Parameters:

Name Type Default Description
urls String null or empty URL to convert to PDF
chromeCommandLineOptions Array[String] null or empty Chrome Command Line Options
printOptions JSON Object null or empty Print options

Return: json

The Json format follow the JSON-Stat schema. Please refer to JSON-stat documentation. An example is shown below:

{
    "jsonrpc": "2.0",
    "result": "data:application/pdf;base64,JVBERi0xLjQKJdPr6eEKMSAwIG9iago8PC9DcmVhdG9yIChDaHJvbWl1bSkKL1Byb2R1Y2VyIChTa2lhL1BERiBtOTQpCi9DcmVhdGlvbkRhdGUgKEQ6MjAyMTEwMDQxNDI0NTMrMDAnMDAnKQovTW9kRGF0ZSAoRDoyMDIxMTAwNDE0MjQ1MyswMCcwMCcpPj4KZW5kb2JqCjMgMCBvYmoKPDwvY2EgMQovQk0gL05vcm1hbD4+CmVuZG9iago1IDAgb2JqCjw8L0NBIDEKL2NhIDEKL0xDIDAKL0xKIDAKL0xXIDEKL01MIDQKL1NBIHRydWUKL0JNIC9Ob3JtYWw+PgplbmRvYmoKNiAwIG9iago8PC9UeXBlIC9YT2JqZWN0Ci9TdWJ0eXBlIC9JbWFnZQovV2lkdGggNDE3Ci9IZWlnaHQgMTQ1Ci9Db2xvclNwYWNlIC9EZXZpY2VSR0IKL1NNYXNrIDcgMCBSCi9CaXRzUGVyQ29tcG9uZW50IDgKL0ZpbHRlciAvRmxhdGVEZWNvZGUKL0xlbmd0aCA4Njc1Pj4gc3RyZWFtCnic7Z37kx03lcfvnwFxoPbn/QmwMzGEYh3PzPXgGByMHxM/srd7t7bua5xJCAlhA0sCKUKZTQA/Ywjj8Thmea+p2mwgLPfO/B/7B+xfQBJna1fdUquPpCP16b59nznfUk3ZfdVqtVr96SPpSGo0WCwWi8VisVgsFovF..."    
"id": "123"
}
Clone this wiki locally