Skip to content

PDF To Editable

With the PDF to Editable tool, you can convert your PDF file into a Editable file. The following examples show how to upload a test PDF file and convert it into a Editable file using Java languages.

Java
// Create a client
CPDFClient client = new CPDFClient(publicKey,secretKey);

// Create a task
// Create an example of a PDF TO Editable task
        CPDFCreateTaskResult result = client.createTask(CPDFConversionEnum.PDF_TO_EDITABLE);

// Get a task id
        String taskId = result.getTaskId();

// Upload files
        client.uploadFile(new File("test.pdf"), taskId);

// Execute Task
        client.executeTask(taskId);

// Query TaskInfo
        CPDFTaskInfoResult taskInfo = client.getTaskInfo(taskId);

Needed Parameters

ocrLanguage: OCR recognition language (0: unknown language, 1: Chinese simplified, 2: Chinese traditional, 3: English, 4: Korean, 5: Japanese, 6: Latin) default 1.

Result:

File TypeDescription
.pdfThe PDF file after the transfer process is completed.