Tips For Success

Having the best tools for document imaging is only half of the equation. Our Tech Tips are designed to provide you with valuable information to help you succeed by achieving faster results with our RasterMaster Imaging and Conversion SDKs or VirtualViewer high-speed document and image viewers. New time-saving tips are added monthly - you can receive them through Imaging News or our Tech Tips RSS feed.

Tech Tip: Saving to a Searchable PDF File

Snowbound Software’s RasterMasterTM for the JavaTM Platform includes the IMG_save_document(String, byte, int) and the IMG_save_document(byte, byte, int) methods that allow you to save to a searchable PDF file.

IMG_save_document(String, byte, int)

This method saves to a searchable PDF file.

The following shows the IMG_save_document(String, byte, int)method syntax and variable descriptions:

Syntax

int IMG_save_document(String bm_name, byte vbuff[], int filetype);

Remark
The table below lists the IMG_save_document(String, byte, int) method variable descriptions.

Variable

Description

bm_name

Name of file to save to.

vbuff[]

Byte array of extracted text and graphics.

filetype

File type to save to. Currently, the file type to save to is only PDF.

Returns
Integer. Any positive value (as well as 0) is a valid return.




IMG_save_document(byte, byte, int)

This method saves to a searchable PDF file.

The following shows the IMG_save_document(byte, byte, int)method syntax and variable descriptions:

Syntax

int IMG_save_document(byte dos[], byte vbuff[], int filetype);

Remark
The table below lists the IMG_save_document(byte, byte, int) method variable descriptions.

Variable

Description

dos[]

Destination byte array buffer to save to.

vbuff[]

Byte array of extracted text and graphics.

filetype

File type to save to. Currently, the file type to save to is only PDF.

Returns
Integer. Any positive value (as well as 0) is a valid return.