Snowbound Software’s VirtualViewer Java includes the High Quality Reload feature. The High Quality Reload feature enables you to request a high resolution version of a text-based document, such as a PDF or MS Word document. This feature is useful when the server is configured to serve documents in black and white or relatively low resolution. Your server may be configured this way to improve performance and allow you to view many documents quickly.
When you are viewing a document in the server’s default resolution, you can request to see a higher resolution version of the document by pressing CTRL-R.
For example, if the server is configured to deliver a PDF with a default resolution of 1-bit color (black and white) and 150 dots per inch (DPI), you will view the PDF at that resolution. After selecting CTRL-R, you will view the same PDF with a better quality resolution such as 24-bit color and 300 DPI.
The DPI and color depth of the high quality reload are defined in the highQualityBitDepth and highQuailtyDPI applet parameters in your .html file as shown in the example below. The default value for highQualityBitDepth is 24. The default value for highQuailtyDPI is 300.
<param name=”highQualityBitDepth” value=”24″>
<param name=”highQualityDPI” value=”300″>
Setting the Default Bit Depth Value
To set the default bit depth value, open the web.xml file and set the value for the parameter for the format’s bit depth that you want to set. For example to set the bit depth for the PCL file format, set the servlet parameter as shown in the example below.
<param name=” pclBitDepth” value=”1″>
The available bit depth parameters, their default values and descriptions are shown in the table below:
Name | Default Value | Description |
bitDepth | 1 | The default bits per pixel for decompression of formats not specified with individual parameters. |
iocaBitDepth | 1 | The bit depth to use when decompressing IOCA pages. Valid values are 1 or 24. |
modcaBitDepth | 1 | The bit depth to use when decompressing MO:DCA pages. Valid values are 1 or 24. |
pclBitDepth | 1 | The bit depth to use when decompressing PCL pages. Valid values are 1 or 24. |
pdfBitDepth | 24 | The bit depth to use when decompressing PDF pages. Valid values are 1 or 24. |
pptBitDepth | 24 | The bit depth to use when decompressing PPT pages. Valid values are 1 or 24. |
wordBitDepth | 24 | The bit depth to use when decompressing Word pages. Valid values are 1 or 24. |
xlsBitDepth | 24 | The bit depth to use when decompressing XLS pages. Valid values are 1 or 24s. |
Setting the Default DPI Value
To set the default DPI value, open the web.xml file and set the value for the parameter for the format’s DPI that you want to set. For example to set the DPI for the PCL file format, set the servlet parameter as shown in the example below.
<param name=”pclDPI” value=”200″>
The available DPI parameters, their default values and descriptions are shown in the table below:
Name | Default Value | Description |
iocaDPI | 200 | The Dots Per Inch to use when decompressing IOCA pages |
modcaDPI | 200 | The Dots Per Inch to use when decompressing MO:DCA pages |
pclDPI | 200 | The Dots Per Inch to use when decompressing PCL pages |
pdfDPI | 200 | The Dots Per Inch to use when decompressing PDF pages |
wordDPI | 200 | The Dots Per Inch to use when decompressing Word pages |
xlsDPI | 200 | The Dots Per Inch to use when decompressing XLS pages |