PHP: cpdf_set_viewer_preferences - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

cpdf_set_word_spacing cpdf_set_title

Last updated: Fri, 26 Jan 2007

view this page in

# cpdf_set_viewer_preferences

(PHP 3 >= 3.0.9, PHP 4, PHP 5 <= 5.0.4)

cpdf_set_viewer_preferences -- How to show the document in the viewer

## Описание

bool cpdf_set_viewer_preferences ( int pdfdoc, array preferences )

Внимание
К настоящему времени эта функция еще не была документирована; для ознакомления доступен только список аргументов.

add a note User Contributed Notes
cpdf_set_viewer_preferences
richard dot garen at ttu dot NOSPAM dot edu
16-Aug-2002 04: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`
add a note
cpdf_set_word_spacing cpdf_set_title

Last updated: Fri, 26 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 09:32:46 2007 PST