Generate PDF file with Zend Framework 2 [closed] - pdf-generation

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I'm started to learn ZF2 right now and notice that there's no "Zend_Pdf" or similar on zend framework 2...
How can I create pdf on this version of the framework?
Anyone knows a good tutorial?

Zend Framework 2 has moved many of the old Zend Framework libraries out of the main core and created modules instead. Zend_Pdf is one of the libraries that was moved to a module. You can find them all in the Zend Framework repository on GitHub.
You need the ZendPdf package, just follow the instructions on the page. Documentation is not ready yet simply because it's not a core module. Documentation will probably follow as soon as all bugs are worked out with the core stuff.
Also see the Zend Framework package repository.

If you need to generate a PDF in ZF2 environment, there is a brief tutorial how to do that with PD4ML. The approach does not require to program a PDF layout (like createPdfDocument(), startParagraph(), addImage() etc). It just converts an existent rendered view (HTML + CSS + SVG + images) to PDF or optionally to RTF.

If you need a module that allow easy to thumbnail, snapshot or PDF generation from a url or a html you can take a look to MvlabsSnappy based on Snappy PHP (5.3+) wrapper for the wkhtmltopdf & wkhtmltoimage conversion utility.

Related

Laravel free IDE [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
Is there any free Laravel 4 IDE provide autocomplete
I downloaded netbeans but can't get it to support Laravel:
https://netbeans.org/downloads/
thanks,
I just found the answer for netbeans and eclipse
Download the following pre-made file that lists the Laravel namespaces: https://gist.github.com/barryvdh/5227822.
Create a folder anywhere on your computer to hold this file. For example: C:/laravel_helper/eclipse_laravel_helper.php
After you created an Eclipse or NetBeans Laravel project, open project properties and adjust PHP include path to include above created folder.
source: http://raroweb.net/projects/webdev_helper/netbeans/laravel-4-in-eclipse-or-netbeans/
The most sufficient solution I could find is generating helper file for my IDE. Check out this package https://github.com/barryvdh/laravel-ide-helper
It is more or less IDE agnostic and quite popular.
I'm happy with netbeans but you can try sublime text from
http://www.sublimetext.com/

Which CMS will be better to load different templates in different pages in CI? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I am trying to look forward for the CMS in which the designer can easily implement the different templates for different pages so that the site can be completed in short time even without the web developer. Can you suggest the appropriate CMS for that except JOOMLA? Currently I am thinking of using pyrocms. Will pyrocms support the feature?
I got the answer to the question. Drupal would be the best CMS for this case. In Drupal you can add easily maintain the whole site from the backend even without coding single line. The views can be maintained easily in drupal from the backend so that even the designer can easily create the site. Even Multisite can be maintained in Drupal in which different sites can be accessed by single login.
The only disadvantage using Drupal is that the database size will be very heavy.
I think drupal is very suitable as it has huge community support and hundreds of community supported themes and modules. However it all depends on your requirements and skill set. Following comparison might help you to decide between Drupal and pyrocms. http://vschart.com/compare/pyrocms/vs/drupal
You can add extra CSS to a page in PyroCMS under Content > Pages > Edit Page > Design. You can also change the page layout on this page, which are created at Content > Pages > Layouts. This can be all done through the CMS, but will need some HTML or CSS knowledge.
You could ask someone to create some templates before-hand and you choose from them for each page, or you could tweak them yourself.
In my experience PyroCMS is much easier to use than Drupal and Joomla.

Open source alternatives to telerik grid for asp.net mvc? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I work for an IT shop that doesn't have budget to pay for controls. Is there an open source alternative to telerik grid for mvc? I would like a rich datagrids for my pages.
There's also the MVCContrib.Grid that you might take a look at.
And if you are looking for a pure client side grid, there are gazillions of them like jqGrid, FuelUX datagrid, ...
Grid.MVC is an open source and working Grid with sorting and paging
(and unlike telerik you do not need to change anything on controller side just add reference in your view and use.)
To install nugget package (Install)
PM> Install-Package Grid.Mvc -Version 3.0.0
In your view you can auto-create columns as below (or customize see User Guide)
#using GridMvc.Html
#Html.Grid(Model).AutoGenerateColumns()
See Online Demo
Have a look at Mvc Contrib Grid. I've had good experience using this.
Another option is Webgrid. Source is availabe in Sourceforge

Building a Web Framework [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I was looking for some advice on building a Web Framework. I'd like to build a custom framework built on Ruby (but not Rails) focused on security and usability. Can someone point me toward resources for building such a Framework?
I'm also trying to build a Ruby web framework from scratch. I recently came across this book: http://rebuilding-rails.com which goes through creating a ruby web framework from scratch. I haven't read it yet, but it looks like a great resource.
For creating a web framework (if you don't want to handle all of the http stuff) i'd look into rack
for example:
class App
def call
[200, {"Content-type:" => "text/html"}, ["Hello"]]
end
end
# config.ru
run App.new
Here's a list of Ruby Frameworks.
http://www.thepixelart.com/ruby-frameworks-what-are-they-and-why-should-you-choose-one-which-one/
You could get ideas/ inspiration from their architectures.
You cannot possibly build a viable framework from scratch, more so build one focused on usability.
It has to grow organically and be first based on your own needs and follow your own requirements. Only after having built several applications you can extract common portions into a separate framework, refining and polishing the details.

Php LiveDocx library or another template based pdf creation lib [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I need to generate gift vouchers from PHP code and was looking at PDF libraries to accomplish this. Stumbled upon LiveDocx http://www.livedocx.com/ which looks like an excellent service and then found http://www.phplivedocx.org/ which looks like the natural choice for PHP. Problem is I'm using Zend Framework 1.6 still. Is there a way to get phplivedocx to work with Zend 1.6 or is there another template based php generation library that I can use?
Any other suggestions on accomplishing my original goal of generating vouchers is welcome although I must say that I've gone the programmatic approach before using TCPDF. It works well but is just too much work to get nice pdf design.
I ended up generating an HTML file and converting it with the wkhtmltopdf (Webkit HTML to Pdf) tool: http://code.google.com/p/wkhtmltopdf/
If using a WYSIWYG editor to generate the HTML then I guess one is almost at the kind of functionality that livedocx brings i.e. to allow templates to be created with an editor.
The zend framework is loosely coupled. You should try downloaded the latest copy and placing the Zend_Service_LiveDocX folder in your Zend library in the Zend_Services folder and if you have autoloading enabled, your application should be able to find it and use it... it's worth a try and certainly a better idea than sourcing another third party application. I too have used all the various pdf libraries out there for php and you know what, I hated every one of them.

Resources