Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF Export Feature #42

Closed
webdevilopers opened this issue Aug 29, 2014 · 9 comments
Closed

PDF Export Feature #42

webdevilopers opened this issue Aug 29, 2014 · 9 comments

Comments

@webdevilopers
Copy link

I have seen an example how to export PDF by injecting the KnpSnappyBundle:
http://cristian-radulescu.ro/article/add-pdf-export-functionality-in-sonataadminbundle.html

But the tutorial also states that the Sonata way would be to use a PdfWriter class.
Are there any plans for such a service?

@chalasr
Copy link
Contributor

chalasr commented Nov 20, 2015

For a lot of my projects using sonata, I did have to code a custom PDF export functionality, which is generally added as a BATCH action on list views, not in the export section where it should be.
@rande I can work on this feature if you are agree.

@rande
Copy link
Member

rande commented Nov 20, 2015

yes, of course.

@OskarStark
Copy link
Member

👍

@chalasr
Copy link
Contributor

chalasr commented Nov 20, 2015

Ok, I will submit it soon.
Thank's @webdevilopers

@soullivaneuh
Copy link
Member

@chalasr Please take in consideration that knp-snappy should be optional.

The best would be to have a PdfWriterInterface and a KnpSnappyPdfWriter. So, developpers can write pdf writers with other libraries like dompdf for example.

@chalasr
Copy link
Contributor

chalasr commented Nov 20, 2015

@soullivaneuh Ok, I will use this approach . Thanks

@rande
Copy link
Member

rande commented Nov 20, 2015

@soullivaneuh you give too much insight ;)

@rande
Copy link
Member

rande commented Nov 20, 2015

Actually a KnpSnappyWriter will do the job too ;)

@rande
Copy link
Member

rande commented May 21, 2016

Closing this issue, as it not the aim of this library to provide such features. Exporting data into PDF is more about reporting.

@rande rande closed this as completed May 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants