I can't generate a preview with a size greater than 480

Build 1501 on 14/Nov/2017  This topic last edited on: 26/Oct/2016, at 16:44

Problem

I created a pagepreview options to see if I can generate from Fred4AddIn a high resolution preview for the page to be used in a webpage the customer has in place to preview daily editions. For some reason, i can't generate a preview with a size greater than 480.

The way i am testing the pagepreview options is using edo Rest

http://localhost/gn4epasa/edo.ashx?Cmd=PagePreview&Name=PreviewInternet&Id=5094

The page preview option is:

<?xml version="1.0" encoding="utf-8"?>

<PagePreviewOptions

  xmlns="http://www.teradp.com/schemas/GN4/1/PagePreviewOptions.xsd"

  Size="800"

  Margin="0"

  BoxLimit="8"

  ShowImages="true"

  ShowBorders="false"

  ShowInfo="false"

  ShowDummy="false"

  ShowType="false"

  ShowFormat="false"

  ShowNonPrintable="false"

  Format="JPG"

  SourceImgQuality="Medium"/>

Cause

Wrong format used.

Solution

In the page preview xml for the Format attribute you need to set JPEG (instead of JPG):

<PagePreviewOptions

  xmlns=http://www.teradp.com/schemas/GN4/1/PagePreviewOptions.xsd

  …

  Format="JPEG"

  SourceImgQuality="Medium"/>