Answer
In order to enable the “Always Use Raster” option for our Webforms sample, you will need to do the following:
Modify the Default.aspx file
Update the Central Configuration file
How To:
In the Sample, before modifying, make a backup of the following file for safekeeping:
\Prizm\Samples\dotnet\webforms\full-viewer-sample\Default.aspx
In the original file, modify the code that is located close to line 115:
\Prizm\Samples\dotnet\webforms\full-viewer-sample\Default.aspx
Line to Replace:
} else {
sessionData.source = getDocumentSource(query.document || '');
}
Replace with:
} else {
sessionData.source = getDocumentSource(query.document || '');
sessionData.render = {
html5: {
alwaysUseRaster: true
}
};
}
Next, to update the Central Configuration file you will need to stop the Prizm Services .
Make a backup of the prizm\prizm-services-config.yml file.
Edit the .yml file and remove the leading # for the following line and add true to the array so that it looks like the following:
viewing.sessionConstraints.render.alwaysUseRaster.allowedValues:
[true, false]
Restart the Prizm Services .