Page 1 of 1

Digital sign PDF with Zend

PostPosted: Thu Jan 05, 2012 9:30 am
by rockyada
Hello
I found this class which enables you to digitally sign PDF.
http://framework.zend.com/issues/browse ... issue-tabs
I downloaded it and also Zend classes. Install openssl to my webserver.

The problem is that it shows errors with file paths.
my file directory looks like this
-www
+Zend
-Certificate.php
-ElementRaw.php
and the rest of downloaded files in the same directory

The first error look like this:
Warning: require_once(Zend/Pdf/Page.php): failed to open stream: No such file or directory in /home/www/mvavra/devel/office_wtime/include/pdf/Zend/Pdf.php on line 27 Fatal error: require_once(): Failed opening required 'Zend/Pdf/Page.php' (include_path='.:/usr/lib/php5/php') in /home/www/mvavra/devel/office_wtime/include/pdf/Zend/Pdf.php on line 27

If i repair the path to Pdf/Page.php, the this error is gone but another path error shows then.

I dont use Zend framework so I am not sure if the directory path is correct.

Can anyone help with this?

Re: Digital sign PDF with Zend

PostPosted: Thu Jan 05, 2012 10:13 am
by jschoenwolf
you need your Zend library constant, The includes are looking for:

/Zend/Pdf/OtherDirectories

here is a list of the files Zend/Pdf.php is looking for:
/** User land classes and interfaces turned on by Zend/Pdf.php file inclusion. */
/** @todo Section should be removed with ZF 2.0 release as obsolete */

/** Zend_Pdf_Page */
require_once 'Zend/Pdf/Page.php';

/** Zend_Pdf_Style */
require_once 'Zend/Pdf/Style.php';

/** Zend_Pdf_Color_GrayScale */
require_once 'Zend/Pdf/Color/GrayScale.php';

/** Zend_Pdf_Color_Rgb */
require_once 'Zend/Pdf/Color/Rgb.php';

/** Zend_Pdf_Color_Cmyk */
require_once 'Zend/Pdf/Color/Cmyk.php';

/** Zend_Pdf_Color_Html */
require_once 'Zend/Pdf/Color/Html.php';

/** Zend_Pdf_Image */
require_once 'Zend/Pdf/Image.php';

/** Zend_Pdf_Font */
require_once 'Zend/Pdf/Font.php';

/** Zend_Pdf_Resource_Extractor */
require_once 'Zend/Pdf/Resource/Extractor.php';

/** Zend_Pdf_Canvas */
require_once 'Zend/Pdf/Canvas.php';


/** Internally used classes */
require_once 'Zend/Pdf/Element.php';
require_once 'Zend/Pdf/Element/Array.php';
require_once 'Zend/Pdf/Element/String/Binary.php';
require_once 'Zend/Pdf/Element/Boolean.php';
require_once 'Zend/Pdf/Element/Dictionary.php';
require_once 'Zend/Pdf/Element/Name.php';
require_once 'Zend/Pdf/Element/Null.php';
require_once 'Zend/Pdf/Element/Numeric.php';
require_once 'Zend/Pdf/Element/String.php';



you might want to put your Zend directory in your php include path to make it easier.

The easiest way to get it correct is to just put the whole Zend Framework Library directory somplace and then add it to your php.ini include path like:
Code: Select all
include_path=".;C:\Zend\ZendServer\share\ZendFramework\library"

Re: Digital sign PDF with Zend

PostPosted: Wed Aug 30, 2017 12:20 pm
by rahu2290
The Free roblox robux generator Roblox Hack Device is versatile well disposed of. It is truly uncomplicated to directly get to leading degrees with this hack tool. Roblox is a user-generated online video game established as well as released by Roblox Firm It is an intriguing video game and playing it is a wonderful experience.

Re: Digital sign PDF with Zend

PostPosted: Mon Oct 09, 2017 9:34 am
by mask6145
Thanks for this info. Keep up the neat work. I'll be returning often thanks for sharing...

Re: Digital sign PDF with Zend

PostPosted: Sun Nov 26, 2017 3:04 pm
by rahu9292
You are saving our time by providing resorseful news.

Re: Digital sign PDF with Zend

PostPosted: Wed Nov 29, 2017 12:17 pm
by maso1379
If i repair the path to Pdf/Page.php, the this error is gone but another path error shows then.I dont use Zend framework so I am not sure if the directory path is correct.

Re: Digital sign PDF with Zend

PostPosted: Tue Dec 19, 2017 5:29 am
by bhan8225
nice information, appretiated. now everything cleared for me. thanks.

Nice

PostPosted: Wed Dec 27, 2017 8:00 am
by core5427
So here is a list of New Year Images which can be used by you. These wishes are general and can be used by anyone for anyone. Especially, these can be written on new year greeting cards, bouquets, new year cakes, new year gifts tags, etc. These can also be sent via social media to your groups and individuals.

Re: Digital sign PDF with Zend

PostPosted: Wed Dec 27, 2017 8:04 am
by rina4236
Make sure you have added correct path on php.ini and also check on php.ini file on apache
dont forget to restart wamp server after ini file changes
You can check extention setting on php info page as well