PHPPdf icon indicating copy to clipboard operation
PHPPdf copied to clipboard

Documentation

Open clojens opened this issue 10 years ago • 2 comments

The simplest example.... doesn't work.

$facade = new PHPPdf\Core\Facade(new PHPPdf\Core\Configuration\Loader());

How can one instantiate a interface? You don't.

Then the example file. I don't think the best place to demonstrate alternatives but Ok. Since I didn't get any of the normal instructions to properly render a file from scratch, and so much in tests is stubbed, I decided to try the alternative:

/$facade = PHPPdf\Core\FacadeBuilder::create(new PHPPdf\Core\Configuration\DependencyInjection\LoaderImpl())//->setCache('File', array('cache_dir' => __DIR__.'/cache/'))

The namespace DependencyInjection does not exist. I'll post more stuff I'll probably encounter.

clojens avatar Dec 10 '14 21:12 clojens

Who does nothing makes no mistakes.

Of course, there are a bugs in code and documentation. The best way to react for this kind of bugs is to make PR ;) Issues with bug reports are also welcome, so if you find more that kind of bugs - report them, I will fix them shortly.

psliwa avatar Dec 10 '14 23:12 psliwa

Yeah I know ... sorry I'm a bit cranky for trying to get a single working piece for half a day now. And I'm no coding rookie. I just find it amazing some times that people forget to mention the most basic things ... but hey, let he who is without sin can cast the first stone right? :)

edit: disregard, I figured out I need to do a $pdf = new Zend_Pdf::parse($content) and then persist to disk or so,.... friggin' finally ><

clojens avatar Dec 10 '14 23:12 clojens