Digital sign PDF with Zend

For programming and general questions on Zend Framework

Digital sign PDF with Zend

Postby rockyada on Thu Jan 05, 2012 9:30 am

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?
rockyada
 
Posts: 1
Joined: Thu Jan 05, 2012 9:16 am

Re: Digital sign PDF with Zend

Postby jschoenwolf on Thu Jan 05, 2012 10:13 am

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"
jschoenwolf
 
Posts: 239
Joined: Tue Aug 23, 2011 10:56 am

Re: Digital sign PDF with Zend

Postby rahu2290 on Wed Aug 30, 2017 12:20 pm

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.
rahu2290
 
Posts: 1
Joined: Wed Aug 30, 2017 12:18 pm

Re: Digital sign PDF with Zend

Postby mask6145 on Mon Oct 09, 2017 9:34 am

Thanks for this info. Keep up the neat work. I'll be returning often thanks for sharing...
mask6145
 
Posts: 1
Joined: Mon Oct 09, 2017 9:31 am


Return to Zend Framework

Who is online

Users browsing this forum: Google [Bot] and 2 guests