This recipe shows how you can set the initial zoom in pdf.
More RenderDetails property can be found in .\Repertoire\docs\RenderDetails.pdf
Steps taken:
- Create a report template (InitialZoom.rml).
- Enter the following code into “Report Properties > Scripts > On Render Begin”:var rd = getRenderDetails(“application/pdf”);
if (rd==null)
{
rd = new RenderDetails(“application/pdf”);
addRenderDetails(rd);
}
rd.setParameterValue(“InitialZoom”,“20%”);
Note: The Initial Zoom appears to work in Acrobat, but not in FoxIt.
To download the necessary files for this recipe, refer to the attached ZIP package.
InitialZoom.zip (2.4 KB)