search for in the  
<cpdf_set_titlecpdf_set_word_spacing>
Last updated: Thu, 19 May 2005

cpdf_set_viewer_preferences

(PHP 3 >= 3.0.9, PHP 4, PECL)

cpdf_set_viewer_preferences --  How to show the document in the viewer

Description

bool cpdf_set_viewer_preferences ( int pdfdoc, array preferences )

Warning

This function is currently not documented; only the argument list is available.



User Contributed Notes
cpdf_set_viewer_preferences
richard dot garen at ttu dot NOSPAM dot edu
16-Aug-2002 06:37
cpdf_set_viewer_preferences ( int pdfdoc, array preferences)

cpdf_set_viewer_preferences should come after cpdf_open() and before cpdf_finalize

// array preferences
$CPDFviewerPrefs = Array ("pagemode" => 0, "hidetoolbar" => 0, "hidemenubar" => 0, "hidewindowui" => 0, "fitwindow"
=> 0, "centerwindow" => 0, "pagelayout" => 0, "nonfspagemode" => 0);

Example (For a full screen PDF):
$CPDFviewerPrefs = Array ("pagemode" => 3);  // sets pagemode to PM_FULLSCREEN
cpdf_set_viewer_preferences($cpdf, $CPDFviewerPrefs);  // set preferences

Values for preferences...
For pagemode and nonfspagemode:
PM_NONE  0  (default - no outline or thumbnails)
PM_OUTLINES  1  (open with outlines visible)
PM_THUMBS  2  (open with thumbnails visible)
PM_FULLSCREEN  3  (open in full screen mode)

nonFSpmode specifies the mode that is assumed when exiting the full-screen mode.  PM_FULLSCREEN is not allowed for

nonFSpmode.

For pagelayout:
PL_SINGLE  0  (default - one page at a time)
PL_1COLUMN  1  (displays pages in 1 column)
PL_2LCOLUMN  2  (2 columns, odd pages left)
PL_2RCOLUMN  3  (2 columns, odd pages right)

All other parameters should be either non-zero, or zero (YES or NO).

Visit below for information on the original API written in C
http://www.fastio.com/cpdfman110.pdf

<cpdf_set_titlecpdf_set_word_spacing>
 Last updated: Thu, 19 May 2005
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: The Server Pages
Last updated: Thu May 19 17:35:34 2005 CDT