Blog: Tech Talk

agsdix-fas fa-home

Blog: Home

agsdix-fas fa-pen-fancy

Blog: CEO's Corner

agsdix-fas fa-code

Blog: Tech Talk

Blog: Product Releases

agsdix-fas fa-chalkboard-teacher

Blog: Viewing

Blog: Conversion

arrow left circle icon Blog: Tech Talk

Saving to a Searchable PDF File

by | Apr 24, 2012

Snowbound Software’s RasterMaster for the Java 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.

VariableDescription
bm_nameName of file to save to.
vbuff[]Byte array of extracted text and graphics.
filetypeFile type to save to. Currently, the file type to save to is only PDF.


Snowbound Software’s RasterMaster for the Java 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.

VariableDescriptionbm_nameName of file to save to.vbuff[]Byte array of extracted text and graphics.filetypeFile 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.

VariableDescription
dos[]Destination byte array buffer to save to.
vbuff[]Byte array of extracted text and graphics.
filetypeFile 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.