FSPDF_DESTDATA Struct Reference

Structure for a destination data. More...

#include <fpdf_base_r.h>

Public Attributes

FS_INT32 pageIndex
 A zero-based index for page.
 
FS_INT32 zoomMode
 Zoom mode. More...
 
FS_FLOAT params [4]
 Params used to specify the position and zoom factor inside the page. More...
 

Detailed Description

Structure for a destination data.

Member Data Documentation

FS_FLOAT FSPDF_DESTDATA::params[4]

Params used to specify the position and zoom factor inside the page.

According to parameter zoomMode, different count of elements in params are used:

  • FSPDF_ZOOM_FACTOR: Only first three elements are used: The first element represents horizontal coordinate value of upper-left corner; the second element represents vertical coordinate value of upper-left corner; the third element means the zoom factor.
    Specially, if the third element is 0, it means the zoom factor(which is currently used) should not be changed.
  • FSPDF_ZOOM_FITPAGE: No element is used.
  • FSPDF_ZOOM_FITWIDTH: Only the first element is used and this element represents vertical coordinate of top edge.
  • FSPDF_ZOOM_FITHEIGHT: Only the first element is used and this element represents horizontal coordinate of left edge.
  • FSPDF_ZOOM_FITRECT: First four elements are used. They represent the coordinate left/bottom/right/top in order of a rectangle, to which the page needs to be fit.
  • FSPDF_ZOOM_FITCONTENT: No element is used.
  • FSPDF_ZOOM_FITCONTENTWIDTH: Only the first element is used and this element represents vertical coordinate of top edge.
  • FSPDF_ZOOM_FITCONTENTHEIGHT: Only the first element is used and this element represents horizontal coordinate of left edge.
FS_INT32 FSPDF_DESTDATA::zoomMode

Zoom mode.

Please refer to macro definitions FSPDF_ZOOM_XXX and this should be one of these macros.


The documentation for this struct was generated from the following file:

Foxit Corporation