Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Compare and Comply

Installation

Maven
<dependency>
  <groupId>com.ibm.watson.developer_cloud</groupId>
  <artifactId>compare-comply</artifactId>
  <version>6.11.0</version>
</dependency>
Gradle
'com.ibm.watson.developer_cloud:compare-comply:6.11.0'

Usage

Use the Compare and Comply service to enable better and faster document understanding. Below is an example of converting a PDF file into HTML:

IamOptions iamOptions = new IamOptions.Builder()
  .apiKey(apiKey)
  .build();
CompareComply service = new CompareComply(VERSION, iamOptions);

ConvertToHtmlOptions convertToHtmlOptions = new ConvertToHtmlOptions.Builder()
  .file("~/path/to/file.pdf")
  .fileContentType(HttpMediaType.APPLICATION_PDF)
  .build();

// Response body with converted HTML
HTMLReturn response = service.convertToHtml(convertToHtmlOptions).execute();