[PDF] Initial Zoom

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:

  1. Create a report template (InitialZoom.rml).
  2. 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)