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.
