if ($selected_row >= 0) { 
$code = $clist->get_text($selected_row,0); 
// get the weather report for that station 
if ($res = wx_getWeatherReport($code)) { 
// find the row if this code is already in the list 
$row = null; 
for ($i = 0, $j = $clist_2->get_data('rows'); $i < $j; $i++) { 
if ($clist_2->get_text($i,0) == $code) { 
$row = $i; 
// add the station and its report to the bottom list of 
// reports (or update the existing row) 
wx_add_report($clist_2,$label,$res,$row); 
 
// update a columned list's internal selected row value when a row is 
selected 
function cb_clist_select_row($clist,$row,$col,$e) { 
$clist->set_data('selected_row',$row); 
// clear a columned list's internal selected row value when a row is 
unselected 
function cb_clist_unselect_row($clist) { 
$clist->set_data('selected_row',-1); 
// display the "About Box" 
function cb_about_box($menu_item,$window) { 
$about_box = &new GtkDialog(); 
$vbox = $about_box->vbox; 
$action_area = $about_box->action_area; 
$about_box->set_title('About'); 
$label = &new GtkLabel("This is the PHP Cookbook PHP-GTK Demo."); 
$button = &new GtkButton('OK'); 
$button->connect('clicked','cb_dialog_destroy',$about_box); 
$vbox->pack_start($label); 
$action_area->pack_start($button); 
$about_box->set_modal(true); 
$about_box->set_transient_for($window); 
$about_box->show_all(); 
// display an error dialog box 
function error_dialog($msg,$window) { 
$dialog = &new GtkDialog(); 
$vbox = $dialog->vbox; 
$action_area = $dialog->action_area; 
$dialog->set_title('Error'); 
$label = &new GtkLabel("Error: $msg"); 
$button = &new GtkButton('OK'); 
$button->connect('clicked','cb_dialog_destroy',$dialog); 
$vbox->pack_start($label); 
$action_area->pack_start($button); 
$dialog->set_modal(true); 
$dialog->set_transient_for($window); 
$dialog->show_all(); 
Pdf form save with reader - C# PDF Field Edit Library: insert, delete, update pdf form field in C#.net, ASP.NET, MVC, Ajax, WPF
Online C# Tutorial to Insert, Delete and Update Fields in PDF Document
add email button to pdf form; acrobat create pdf form
Pdf form save with reader - VB.NET PDF Field Edit library: insert, delete, update pdf form field in vb.net, ASP.NET, MVC, Ajax, WPF
How to Insert, Delete and Update Fields in PDF Document with VB.NET Demo Code
add fillable fields to pdf online; add print button to pdf form
// close a dialog box 
function cb_dialog_destroy($button,$dialog) { 
$dialog->destroy(); 
// quit the main program 
function cb_shutdown() { gtk::main_quit(); } 
C# PDF: PDF Document Viewer & Reader SDK for Windows Forms
SaveFile(String filePath): Save PDF document file to a specified path form (Here, we take a blank form as an open a file dialog and load your PDF document in
pdf form change font size; pdf fillable form creator
VB.NET Image: How to Save Image & Print Image Using VB.NET
printing multi-page document files, like PDF and Word is used to illustrate how to save a sample RE__Test Public Partial Class Form1 Inherits Form Public Sub New
build pdf forms; pdf form maker
Chapter 21. PEAR 
Section 21.1.  Introduction
Recipe 21.2.  Using the PEAR Package Manager
Recipe 21.3.  Finding PEAR Packages
Recipe 21.4.  Finding Information About a Package
Recipe 21.5.  Installing PEAR Packages
Recipe 21.6.  Installing PECL Packages
Recipe 21.7.  Upgrading PEAR Packages
Recipe 21.8.  Uninstalling PEAR Packages
Recipe 21.9.  Documenting Classes with PHPDoc
C# PDF File Merge Library: Merge, append PDF files in C#.net, ASP.
Merge Microsoft Office Word, Excel and PowerPoint data to PDF form. Append one PDF file to the end of another and save to a single PDF file.
chrome save pdf with fields; change font size pdf fillable form
VB.NET PDF Page Delete Library: remove PDF pages in vb.net, ASP.
this RasterEdge XDoc.PDF SDK, you can simply delete a single page from a PDF document using VB.NET or remove any page from a PDF document and save to local
adding a text field to a pdf; create a pdf form that can be filled out
21.1 Introduction 
PEAR is the PHP Extension and Application Repository, a collection of open source classes that work 
together. Developers can use PEAR classes to generate HTML, make SOAP requests, send MIME 
mail, and a variety of other common tasks. A pear is also a tasty fruit.  
To find general information on PEAR, read the PEAR manual; to discover the latest PEAR packages, 
go to http://pear.php.net
. A summary of each week's happenings can be found at 
http://pear.php.net/weeklynews.php
.  
Only a few core PEAR packages are bundled with the main PHP release. However, part of PEAR is a 
program called, appropriately enough, pear, that makes it easy for you to download and install 
additional PEAR packages. This program is also known as the PEAR package manager. Recipe 21.2
shows how to use the PEAR package manager.  
PEAR packages divide into two major parts. One is the PHP Foundation Classes — object-oriented 
code written in PHP that's high quality and usable in production environments on any platform and 
web server. The other is PECL, or PHP Extension Code Library. PECL, pronounced pickle, is a series 
of extensions to PHP written in C. These extensions are just like ones distributed with the main PHP 
release, but they're of more specialized interest — such as an interface to the XMMS multimedia 
player or the ImageMagick graphics library.  
Additionally, the PEAR package manager allows you to use the PEAR class management 
infrastructure with your personal projects. By creating your own packages that follow the PEAR 
format, your users can use pear to download and install the files from your project's web site.  
This chapter explains how to find a PEAR package you may want to use and how to install it on your 
machine. Because PEAR has many classes, you need an easy way to browse them. Recipe 21.3
covers the different ways to find PEAR packages; once you've found a package's name, Recipe 21.4
shows how to view package details and information.  
Once you locate a class you want to use, you need to run pear to transfer the class to your machine 
and install it in the correct location on your server. Installing PEAR packages and PECL extensions 
are the subjects of Recipe 21.5
and Recipe 21.6
, respectively. Recipe 21.7
shows how discover if 
any upgrades are available to packages on your machine and how to install the latest versions. If 
you want to remove a package, see Recipe 21.8
.  
Finally, Recipe 21.9
describes how PEAR developers can write classes that abide by PEAR's coding 
standards and how to document your class with PHPDoc.  
PHP 4.3 includes the first stable release of PEAR. Earlier copies of PHP bundled versions of PEAR 
prior to PEAR 1.0, but pear and the other packages weren't guaranteed to work, as they were still in 
beta. If you are having problems using PEAR, you should remove any old files that may be 
interfering with the release version. This includes the pear application itself; it can't always upgrade 
itself to the latest release.  
C# PDF Page Extract Library: copy, paste, cut PDF pages in C#.net
to extract single or multiple pages from adobe PDF file and save into a The portable document format, known as PDF document, is a widely-used form of file
pdf add signature field; add fields to pdf form
C# Image: Save or Print Document and Image in Web Viewer
or image, you can easily save the changes to DLL Library, including documents TIFF, PDF, Excel, Word string fileName = Request.Form["saveFileName"]; string fid
adding text to a pdf form; change font in pdf form
If you can't upgrade to PHP 4.3 and need to bootstrap a copy of PEAR onto your system, run the 
following:  
lynx -source http://go-pear.org | php -q 
Welcome to go-pear! 
Go-pear will install the 'pear' command and all the files needed by 
it.  This command is your tool for PEAR installation and maintenance. 
Go-pear also lets you download and install the PEAR packages bundled 
with PHP: DB, Net_Socket, Net_SMTP, Mail, XML_Parser. 
If you wish to abort, press Control-C now, or press Enter to continue: 
This downloads a PHP script from the PEAR web site and hands it to PHP for execution. The program 
downloads all files needed to run pear and gets you up and running.  
On some Unix systems, you may need to run links instead of lynx. If you have the command-line 
version of PHP installed, remove the 
-q
flag to PHP; the CLI version automatically suppresses HTTP 
headers. If go-pear seems to hang, set 
output_buffering
to 
off
in your php.ini 
configuration file.  
Installation on Windows is a two-step process:  
C:\> php-cli -r 'readfile("http://go-pear.org");' > go-pear 
c:\> php-cli go-pear 
The go-pear script requires PHP 4.1 or greater. For the Windows installation, php-cli is the 
command-line version of PHP.  
PHP installs PEAR by default, so if you're running PHP 4.3, you should be able to use PEAR without 
any additional setup.
[1]
Out of the box, PEAR installs pear in the same directory as php and places 
PEAR packages in prefix/lib/php.
[2]
To install PEAR in another directory, add 
--with-
pear=DIR
when configuring PHP.  
[1]
If you disable building the command-line version of PHP with 
--disable-cli
, PHP doesn't 
install PEAR. 
[2]
This is probably /usr/local/lib/php
Once a PEAR package is installed, use it in your PHP scripts by calling 
require
. For example, 
here's how to include the 
Net_Dig
package:  
require 'Net/Dig.php'; 
If a package name contains an underscore, replace it with a slash, and add .php to the end.  
C# PDF Convert to Tiff SDK: Convert PDF to tiff images in C#.net
Description: Convert to DOCX/TIFF with specified zoom value and save it into stream. Parameters: zoomValue, The magnification of the original PDF page size.
cannot save pdf form in reader; pdf forms save
C# Create PDF from Tiff Library to convert tif images to PDF in C#
Description: Convert to PDF and save it on the disk. Parameters: Name, Description, Valid Value. Description: Convert to PDF and save it into stream. Parameters:
create a pdf form to fill out; add text field to pdf
Some packages may require you to include multiple classes, such as SOAP, so instead of requiring 
SOAP.php, you include SOAP/Client.php or SOAP/Server.php. Read the documentation to discover if 
a particular package requires nonstandard file includes.  
Because PEAR packages are included as regular PHP files, make sure the directory containing the 
PEAR classes is in your 
include_path
. If it isn't, 
include
and 
require
can't find PEAR 
classes.  
To view instructions and examples showing how to use a particular PEAR class, check the PEAR 
Manual at http://pear.php.net/manual/en/packages.php
or read the top section of the package's 
PHP files. For an example of a full-featured PEAR class in action, see the discussion of PEAR's 
database library in Recipe 10.4
Recipe 21.2 Using the PEAR Package Manager 
21.2.1 Problem 
You want to use the PEAR package manager, pear. This allows you to install new packages, and 
upgrade and get information about your existing PEAR packages.  
21.2.2 Solution 
To execute a command with the PEAR package manager, type the command name as the first 
argument on the command line:  
pear  command  
21.2.3 Discussion 
Here's how to list all installed PEAR packages with the 
list
command:
[3]
[3]
In early versions of pear, this command was 
list-installed
pear list 
Installed packages: 
 ==  ==  ==  ==  ==  ==  ==  ==  == 
+-----------------+----------+--------+ 
| Package         | Version  | State  | 
| Archive_Tar     | 0.9      | stable | 
| Console_Getopt  | 0.11     | beta   | 
| DB              | 1.3      | stable | 
| HTTP            | 1.2      | stable | 
| Mail            | 1.0.1    | stable | 
| Mail_Mime       | 1.2.1    | stable | 
| Net_SMTP        | 1.0      | stable | 
| Net_Socket      | 1.0.1    | stable | 
C# PDF Convert to Word SDK: Convert PDF to Word library in C#.net
key. Quick to remove watermark and save PDF text, image, table, hyperlink and bookmark to Word without losing format. Powerful components
pdf form save with reader; add image to pdf form
C# Create PDF from PowerPoint Library to convert pptx, ppt to PDF
Description: Convert to PDF/TIFF and save it on the disk. Parameters: Description: Convert to PDF/TIFF and save it into stream. Parameters:
adding an image to a pdf form; pdf save form data
| Net_URL         | 1.0.4    | stable | 
| PEAR            | 0.91-dev | beta   | 
| XML_Parser      | 1.0      | stable | 
| XML_RPC         | 1.0.3    | stable | 
+-----------------+----------+--------+ 
For a list of all valid PEAR commands, use 
list-commands
. Many commands also have 
abbreviated names; for example, 
list
is also just 
l
. These names are usually the first few letters 
of the command name. See Table 21-1
for a list of frequently used commands.  
Table 21-1. PEAR package manager commands  
Command name 
Shortcut 
Description 
install
i
Download and install packages 
upgrade
up
Upgrade installed packages 
uninstall
un
Remove installed packages 
list
l
List installed packages 
list-upgrades
lu
List all available upgrades for installed packages 
search
None 
Search for packages 
pear has commands both for using and for developing PEAR classes; as a result, you may not need 
all the commands. The 
package
command, for example, creates a new PEAR package. If you 
only run other peoples' packages, you can safely ignore this command.  
Like all programs, if you want to run pear, you must have permission to execute it. If you can run 
pear while running as root, but not as a regular user, make sure the group- or world-execute bit is 
set. Similarly, for some actions, pear creates a lock file in the directory containing the PEAR files. 
You must have write permission to the file named .lock located in that directory.  
To find where your PEAR packages are located, run the 
config-get php_dir
command. 
You can check the value of the 
include_path
by calling 
ini_get('include_path')
from within PHP or by looking at your php.ini file. If you 
can't alter php.ini because you're in a shared hosting environment, add the directory to the 
include_path
at the top of your script before including the file. See Recipe 8.24
for more on 
setting configuration variables from within PHP.  
If you're behind a HTTP proxy server, configure PEAR to use it with the command:  
pear config-set http_proxy proxy.example.com:8080 
You can configure PEAR package manager settings using:  
pear set-config  setting value  
Here 
setting
is the name of the parameter to modify and 
value
is the new value. To see all 
your current settings, use the 
config-show
command:  
pear config-show 
Configuration: 
 ==  ==  ==  ==  ==  ==  = 
+---------------------+-----------------+-------------------------------------+ 
| PEAR executables    | bin_dir         | /usr/local/bin                      | 
| directory           |                 |                                     | 
| PEAR documentation  | doc_dir         | /usr/local/lib/php/docs             | 
| directory           |                 |                                     | 
| PHP extension       | ext_dir         | /usr/local/lib/php/extensions/no-de | 
| directory           |                 | bug-non-zts-20020429                | 
| PEAR directory      | php_dir         | /usr/local/lib/php                  | 
| PEAR data directory | data_dir        | /usr/local/lib/php/data             | 
| PEAR test directory | test_dir        | /usr/local/lib/php/tests            | 
| HTTP Proxy Server   | http_proxy      | <not set>                           | 
| Address             |                 |                                     | 
| PEAR server         | master_server   | pear.php.net                        | 
| PEAR password (for  | password        | <not set>                           | 
| maintainers)        |                 |                                     | 
| PEAR username (for  | username        | <not set>                           | 
| maintainers)        |                 |                                     | 
| Preferred Package   | preferred_state | stable                              | 
| State               |                 |                                     | 
| Unix file mask      | umask           | 18                                  | 
| Debug Log Level     | verbose         | 1                                   | 
+---------------------+-----------------+-------------------------------------+ 
For a brief description of each configuration option, use the 
config-help
command.  
Recipe 21.3 Finding PEAR Packages 
21.3.1 Problem 
You want a listing of PEAR packages. From this list you want to learn more about each package and 
decide if you want to install the package.  
21.3.2 Solution 
Browse packages at http://pear.php.net/packages.php
or search for packages at 
http://pear.php.net/package-search.php
. Use pear 's 
remote-list
command to get listing of 
PEAR packages or the 
search
command to search for packages.  
21.3.3 Discussion 
There are a few ways to review PEAR's packages. First, to browse the listings in a directory-style 
fashion, go to http://pear.php.net/packages.php
. From there you can burrow into each individual 
PEAR category.  
Alternatively, you can search through the listings at http://pear.php.net/package-search.php
. The 
search page allows you to search by package name, author, category, and release date.  
You can ask the PEAR package manager to provide you with a listing using the 
remote-list
command:  
pear remote-list 
Available packages: 
 ==  ==  ==  ==  ==  ==  ==  ==  == 
+----------------------+---------+ 
| Package              | Version | 
| Archive_Tar          | 0.9     | 
| Auth                 | 1.0.2   | 
... 
| XML_Transformer      | 0.3     | 
| XML_Tree             | 1.1     | 
+----------------------+---------+ 
The short form of 
remote-list
is 
rl
.  
To search for package names from the command line, use the 
search
command:  
pear search auth 
Matched packages: 
 ==  ==  ==  ==  ==  ==  ==  == 
+-----------+--------+-------+------------------------------------+ 
| Package   | Latest | Local |                                    | 
| Auth      | 1.0.2  | 1.0.2 | Creating an authentication system. | 
| Auth_HTTP | 1.0.1  | 1.0.1 | HTTP authentication for PHP        | 
+-----------+--------+-------+------------------------------------+ 
This does a case-insensitive search of package names and returns the package name, the latest 
version number, the version you have installed (if any), and a short description about the package.  
21.3.4 See Also 
Recipe 21.4
to find out more information about a package. 
Recipe 21.4 Finding Information About a 
Package 
21.4.1 Problem 
You want to gather information about a package, such a description of what it does, who maintains 
it, what version you have installed, and which license it's released under.  
21.4.2 Solution 
If the package is installed on your machine, use the PEAR package manager's 
info
command:  
pear info Net_URL 
Otherwise, use the 
remote-info
command:  
pear remote-info SOAP 
You can also view the package's home page on http://pear.php.net
 
21.4.3 Discussion 
The 
info
command provides summary information about a package:  
pear info Net_URL 
About Net_URL-1.0.4 
 ==  ==  ==  ==  ==  ==  ==  ==  == 
+-----------------+-----------------------------------------+ 
| Package         | Net_URL                                 | 
| Summary         | Easy parsing of Urls                    | 
| Description     | Provides easy parsing of URLs and their | 
                | constituent parts.                      | 
| Maintainers     | Richard heyes <richard@php.net> (lead)  | 
| Version         | 1.0.4                                   | 
| Release Date    | 2002-07-27                              | 
| Release License | BSD                                     | 
| Release State   | stable                                  | 
| Release Notes   | License change                          | 
| Last Modified   | 2002-08-23                              | 
+-----------------+-----------------------------------------+ 
If you don't have the package installed, ask the remote server for a description:  
pear remote-info Net_URL 
Package details: 
 ==  ==  ==  ==  ==  ==  ==  = 
+-------------+-----------------------------------------+ 
Documents you may be interested
Documents you may be interested