[GNC] Potential regression: PDFs generated using "Make PDF" have a superfluous blank page

Yves-Eric Martin yem_lists.gnucash.org at filter.yve.net
Sat Jul 4 23:31:45 EDT 2020


Hi Adrien,


Thank you for the pointer to the BugZilla instance. I was going to create
the bug report now, but I see you are waaaaay ahead of me! You already
found the root cause too, fixed it, and are now working with Christopher
Lam to validate the solution... Just, wow!

FYI for anyone ending up on this thread: the entry in BugZilla is:
https://bugs.gnucash.org/show_bug.cgi?id=797840


Thanks again for your great work Adrien and Christopher!
Yves-Eric



On Tue, Jun 30, 2020 at 8:35 AM Adrian Yong <adrianyong.88park at gmail.com>
wrote:

> Hi Adrien,
>
> After speaking to you the last time, I tried exporting documents (ie.
> General Ledger) to pdf and xlsx formats and I got gibberish...
>
> I am using version 3.7...
>
> Regards,
> Adrian
>
>
> On Tue, Jun 30, 2020 at 2:47 AM Adrien Monteleone <
> adrien.monteleone at lusfiber.net> wrote:
>
> > I can confirm this on 3.906 (4.0 beta) using various methods of printing
> > invoices. (it doesn’t seem to matter if it is ‘easy’ invoice or not)
> >
> > I also tried exporting to HTML and then printing to PDF, but that too
> > generates an extra page.
> >
> > I haven’t yet tested with 3.5–3.7 to see what the differences in the HTML
> > are.
> >
> > While I did find some minor syntax issues with the HTML and CSS,
> > correcting them didn’t resolve the issue. There doesn’t appear to be
> > anything at first glance in the HTML itself that would generate the extra
> > page.
> >
> > Note, GnuCash has a BugZilla instance at https://bugs.gnucash.org
> >
> > Please create an account and file the bug there.
> >
> > Regards,
> > Adrien
> >
> > > On Jun 29, 2020 w27d181, at 5:31 AM, Yves-Eric Martin <
> > yem_lists.gnucash.org at filter.yve.net> wrote:
> > >
> > > Hi all,
> > >
> > > (Full bug report below)
> > >
> > > I am having a PDF issue trying to upgrade from 3.7 to 4.0, but traced
> the
> > > problem back to 3.8. The invoice PDFs generated using "Make PDF" have a
> > > superfluous blank page. I first thought the problem may be with my
> > heavily
> > > customized CSS, but I was able to reproduce the issue with the
> > > vanilla invoices (Easy / Printable / Fancy).
> > >
> > > Any idea what introduced this change? Is a fix needed?
> > >
> > > And short of manually editing the PDFs, is there a workaround to remove
> > > that extra blank page on the GnuCash side, maybe editing some SCM
> files?
> > > Thank you.
> > >
> > >
> > > Full bug report:
> > >
> > > GnuCash versions: tested all stable from 3.5 to 4.0
> > >
> > > OS: MacOS Catalina (10.15.5)
> > >
> > > Problem: Invoice PDFs generated using "Make PDF" have a superfluous
> blank
> > > page.
> > >
> > > Versions not affected: 3.5, 3.6, 3.7
> > >
> > > Versions affected: 3.8, 3.9, 3.10, 3.11, 4.0
> > >
> > > Steps to reproduce:
> > > 1) Create a dummy invoice with a single line
> > > 2) Create an Easy Invoice: Reports > Business > Easy Invoice
> > > 3) Select the dummy invoice: Edit > Report Options > General > Invoice
> > > Number > Select the dummy invoice
> > > 4) Make Pdf
> > >
> > > Expected behavior: The generated PDF has only 1 page.
> > >
> > > Current behavior (since 3.8): The generated PDF has a superfluous blank
> > > page.
> > >
> > > Comparison of various invoice PDFs, generated with 3.7 and 3.8:
> > >
> >
> https://www.dropbox.com/sh/h8hwhy43uiz9c8m/AADslcR3uJtfXy5Q7GTn6FqVa?dl=0
> >
> >
> > _______________________________________________
> > gnucash-user mailing list
> > gnucash-user at gnucash.org
> > To update your subscription preferences or to unsubscribe:
> > https://lists.gnucash.org/mailman/listinfo/gnucash-user
> > If you are using Nabble or Gmane, please see
> > https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
> > -----
> > Please remember to CC this list on all your replies.
> > You can do this by using Reply-To-List or Reply-All.
> >
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> If you are using Nabble or Gmane, please see
> https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
>


More information about the gnucash-user mailing list