DynaPDF Manual - Page 510
Previous Page 509 Index Next Page 511
Function Reference
Page 510 of 839
GetUseTransparency
Syntax:
LBOOL pdfGetUseTransparency(
const PPDF* IPDF) // Instance pointer
The property specifies whether images should get a transparent background. If true, the transparent
color (see SetTransparentColor() is used to mask an image. The property has no effect for JPEG
compressed images.
Default value = 1 (true)
GetUseVisibleCoords
Syntax:
LBOOL pdfGetUseVisibleCoords(
const PPDF* IPDF) // Instance pointer
The property specifies whether DynaPDF should consider the crop box to calculate the position of
an object. The crop box crops a page, but the paper format (media box) is left unchanged. To move
the coordinates into the visible area, set the property to true. Coordinates can then be used as if no
crop box was defined. The bounding boxes are described in detail at SetBBox().
GetViewerPreferences
Syntax:
LBOOL pdfGetViewerPreferences(
const PPDF* IPDF,
// Instance pointer
SI32 ADDR Preference, // Preference
SI32 ADDR AddVal)
// Parameter of the preference if any
typedef SI32 TViewerPreference;
#define vpUseNone
0x00000000 // No preference is set
#define vpHideToolBar
0x00000001 // No parameter
#define vpHideMenuBar
0x00000002 // No parameter
#define vpHideWindowUI
0x00000004 // No parameter
#define vpFitWindow
0x00000008 // No parameter
#define vpCenterWindow
0x00000010 // No parameter
#define vpDisplayDocTitle
0x00000020 // (PDF 1.4) No parameter
#define vpNonFullScrPageMode
0x00000040 // Key, values see below
#define vpDirection
0x00000080 // (PDF 1.3)
#define vpViewArea
0x00000100 // (PDF 1.4)
#define vpViewClip
0x00000200 // (PDF 1.4)
#define vpPrintArea
0x00000400 // (PDF 1.4)
#define vpPrintClip
0x00000800 // (PDF 1.4)
typedef SI32 TViewPrefAddVal;
#define avNone
0x00000000
#define avNonFullScrUseNone
0x00000001
#define avNonFullScrUseOutlines 0x00000002
#define avNonFullScrUseThumbs
0x00000004
#define avNonFullScrUseOC
0x00000400 // PDF 1.6
#define avDirectionL2R
0x00000008
#define avDirectionR2L
0x00000010
#define avViewPrintArtBox
0x00000020
#define avViewPrintBleedBox
0x00000040
#define avViewPrintCropBox
0x00000080
Previous topic: GetUsesTransparency
Next topic: GetViewport, GetViewportCount