Currently the PDF export only supports the current year.
We need to add support for start / end year and start / end month.
I've been contacted by a client looking to get this done. I'll keep this thread updated as I work with the pending client.
:+1:
I have the beginnings of this working but something occurred to me... couldn't this be done better by rewriting to use the EDD_Stats class?
Yes it could
On Aug 1, 2014 11:21 PM, "Ghost1227" [email protected] wrote:
I have the beginnings of this working but something occurred to me...
couldn't this be done better by rewriting to use the EDD_Stats class?—
Reply to this email directly or view it on GitHub
https://github.com/easydigitaldownloads/Easy-Digital-Downloads/issues/1808#issuecomment-50953517
.
Then let's switch it!
I'm tagging this as mayble later because it's possible we will remove the PDF exports entirely and replace them with better CSV exports.
Oh?
The PDF libraries are enormous and painful. We can build much better reports with plain CSVs.
Does that mean removing the PDF libraries entirely from core?
Yes, though we will obviously do that carefully so as not to affect PDF
stamper.
On Tuesday, August 12, 2014, Ghost1227 [email protected] wrote:
Does that mean removing the PDF libraries entirely from core?
—
Reply to this email directly or view it on GitHub
https://github.com/easydigitaldownloads/Easy-Digital-Downloads/issues/1808#issuecomment-51913188
.
You just made my day :)
I feel we should do a user survey. As much as it may make sense for us because the libraries are "large", I'm wondering if there's alot of people using them. I really feel we should do a poll, maybe 2 questions:
@chriscct7 Not PDF Invoices, PDF Reports. They are different.
Sorry, thats what I meant
What about simply splitting PDF Reports into a plugin?
Yes, we should definitely do a survey.
On Tue, Aug 12, 2014 at 8:38 AM, Chris Christoff [email protected]
wrote:
Sorry, thats what I meant
—
Reply to this email directly or view it on GitHub
https://github.com/easydigitaldownloads/Easy-Digital-Downloads/issues/1808#issuecomment-51914513
.
That'd be a good idea. Anyone want to volunteer?
On Tue, Aug 12, 2014 at 8:39 AM, Ghost1227 [email protected] wrote:
What about simply splitting PDF Reports into a plugin?
—
Reply to this email directly or view it on GitHub
https://github.com/easydigitaldownloads/Easy-Digital-Downloads/issues/1808#issuecomment-51914600
.
Think I already did... though kinda dreading it.
All yours buddy :D
On Tue, Aug 12, 2014 at 8:41 AM, Ghost1227 [email protected] wrote:
Think I already did... though kinda dreading it.
—
Reply to this email directly or view it on GitHub
https://github.com/easydigitaldownloads/Easy-Digital-Downloads/issues/1808#issuecomment-51914893
.
@pippinsplugins @ghost1227 where do we stand with this? Now that we have a batch exporter build, are we still looking at supporting the PDFs?
I would still like to remove all PDF exports. They are far too large and provide very little benefit.
Replacing them with comprehensive CSV reports sounds like a much better method to me. See #3055
Let's remove it and release a free plugin with the feature.
We will need to update PDF Invoices with version checks and file_exists checks to PDF libraries.
As #3055 was punted to 2.6, this needs to be punted to at least 2.6
:+1:
PR submitted!
Now we need to get PDF Invoices updated. @sunnyratilal could you take care of that next week so that it conditionally loads the fpdf library if it's not available in core?
@ghost1227 also need to confirm that everything is fine here with PDF Stamper.
@pippinsplugins PDF Stamper no longer references any PDF functionality from core, but I'll double check...
FES also need stop be checked but I think we've been bundling our own
library as well
On Aug 12, 2016 1:21 PM, "Ghost1227" [email protected] wrote:
@pippinsplugins https://github.com/pippinsplugins PDF Stamper no longer
references any PDF functionality from core, but I'll double check...—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/easydigitaldownloads/easy-digital-downloads/issues/1808#issuecomment-239506825,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABQ2XUgQhhxd224vJZ7PFlK_rV0shBAHks5qfKuAgaJpZM4BVGQU
.
PDF Invoices uses tcpdf which is already included in the plugin. Upgraded from fpdf to TCPDF back when 2.0 was released so removing this from Core won't affect PDF Invoices at all.
@pippinsplugins googlechartlib also can be removed from includes/libraries as it was only used for the PDF reports and isn't used anywhere else in Core.
@sunnyratilal nice, thanks.
@chriscct7 FES includes its own copy of fPDF but it does load googlechartlib from core:
/**
* Make PDF chart.
*
* Creates chart used in FES pdf.
*
* @since 2.3.0
* @access public
*
* @param FES_Vendor $vendor Vendor to make PDF for.
* @return GoogleChart Chart to put on pdf.
*/
function fes_draw_chart_image( $vendor ) {
require_once EDD_PLUGIN_DIR . '/includes/libraries/googlechartlib/GoogleChart.php';
require_once EDD_PLUGIN_DIR . '/includes/libraries/googlechartlib/markers/GoogleChartShapeMarker.php';
require_once EDD_PLUGIN_DIR . '/includes/libraries/googlechartlib/markers/GoogleChartTextMarker.php';
.....
Let's move those to FES and get an update pushed out asap. @chriscct7
I'm going to go ahead and merge this into release/2.7 so that we can more easily identify issues in the coming months.
PR submitted to remove them from FES too.
Ok from what i'm seeing, we're good on all the dependencies @pippinsplugins @ghost1227 @sunnyratilal @chriscct7 correct? If so then I think we can make sure this is closed out properly, once and for all with 2.7.
No problems on my end!
Yep. FES has been updated already.
Yep all ready for merge in 2.7
Merged into release/2.7 already.
Most helpful comment
PDF Invoices uses tcpdf which is already included in the plugin. Upgraded from fpdf to TCPDF back when 2.0 was released so removing this from Core won't affect PDF Invoices at all.