Author Topic: 2 pages in pdf creation  (Read 1644 times)

Offline vspaziani

  • Full Member
  • ***
  • Posts: 23
    • View Profile
2 pages in pdf creation
« on: 25/January/2010, 02:32:28 PM »
Hi, when I create a pdf it creats 2 pages output. It not depends on template, it happens with a blank template too.
I think that I have to configure something in html2ps, but I don't know what...
anyone can help me?

Offline netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,952
    • View Profile
Re: 2 pages in pdf creation
« Reply #1 on: 25/January/2010, 03:48:39 PM »
Could it be that your payment instructions and small print values are pushing it onto a 2nd page? I am not aware of any configuration settings in html2ps to control that (other than maybe the paper size, which you can set on the vendor record).

Offline vspaziani

  • Full Member
  • ***
  • Posts: 23
    • View Profile
Re: 2 pages in pdf creation
« Reply #2 on: 25/January/2010, 11:14:56 PM »
Thanks for the quick answer, anyway I made a test printing in pdf format a totally blank page (with a blank template) and the result was the same: two pdf blank pages!
I had the same result changing paper size to A3, A4, A5 and Legal... any idea?

Offline netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,952
    • View Profile
Re: 2 pages in pdf creation
« Reply #3 on: 26/January/2010, 11:28:23 AM »
Sorry, I'm afraid I don't know - I did not write the script so I don't guarantee to be able to support it. I have never seen that behaviour myself, and have no idea what might cause it. I can only suggest deleting the pdfwriter folder and re-uploading it in case there was a glitch uploading one of the files or something.  :-\

Offline SystemIn8

  • Jr. Member
  • **
  • Posts: 1
  • I'm nerdy and proud!
    • View Profile
    • SanDisk Cruzer Titanium
Re: 2 pages in pdf creation
« Reply #4 on: 29/January/2010, 03:13:47 PM »
Thats really strange vsp. Have you been able to fix this yet? Reinstalling might indeed be a good idea. From what I know html2ps does have some bugs, so you may want to peruse some tutorials on it.
"The Internet isn ??t free. It just has an economy that makes no sense to capitalism."

Offline vspaziani

  • Full Member
  • ***
  • Posts: 23
    • View Profile
Re: 2 pages in pdf creation
« Reply #5 on: 30/January/2010, 04:26:59 PM »
I have reinstalled joomla and nbill, but I have this issue.
I opened a topic in html2ps support forum. Wait for an answer...

Offline limessl

  • Sr. Member
  • ****
  • Posts: 82
    • View Profile
Re: 2 pages in pdf creation
« Reply #6 on: 31/January/2010, 08:28:44 PM »
I've got the same issue - always prints a blank second page. Will be interested to hear the answer...

Offline tgontz

  • Jr. Member
  • **
  • Posts: 12
    • View Profile
Re: 2 pages in pdf creation
« Reply #7 on: 04/February/2010, 09:08:31 PM »
I have the same issue. I am using Letter size paper. My invoices don't even come close to the bottom of the page but I always get two pages when creating PDF invoices. This has only started happening since upgrading to nBill 2. I have tried turning off the payment link but that didn't make any difference. If anyone reading this has a resolution please post!

Offline vspaziani

  • Full Member
  • ***
  • Posts: 23
    • View Profile
Re: 2 pages in pdf creation
« Reply #8 on: 18/February/2010, 01:16:52 PM »
No answer on html2ps forum for this issue... any idea?

Offline netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,952
    • View Profile
Re: 2 pages in pdf creation
« Reply #9 on: 18/February/2010, 01:29:52 PM »
Just to check for the possibility of a client-side issue, can you check the demo site and see if the PDF there shows 1 or 2 pages? (http://v2demo.nbill.co.uk/administrator/)

Offline joshseawell

  • Jr. Member
  • **
  • Posts: 1
    • View Profile
Re: 2 pages in pdf creation
« Reply #10 on: 19/February/2010, 04:12:14 PM »
The demo site works fine, but I am also getting a blank page on the PDF.

Offline netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,952
    • View Profile
Re: 2 pages in pdf creation
« Reply #11 on: 20/February/2010, 08:54:30 AM »
If one of you with this issue submits a support ticket, I will try to look into it further, but I cannot make any promises.

Offline netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,952
    • View Profile
Re: 2 pages in pdf creation
« Reply #12 on: 23/February/2010, 11:27:27 AM »
I think I have finally got to the bottom of this - if you replace your /administrator/components/com_nbill/admin.proc/invoices.php file with the attached, it should fix it.

[attachment deleted by admin]

Offline AndrewBucklin

  • Full Member
  • ***
  • Posts: 24
    • View Profile
    • TrueValueWeb.com
Re: 2 pages in pdf creation
« Reply #13 on: 05/March/2010, 06:57:24 AM »
Was this fixed in 2.0.9 ?

Before I updated this was happening to me, but now since I've updated to 2.0.9, it seems as though everything is working correctly now!

Offline netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,952
    • View Profile
Re: 2 pages in pdf creation
« Reply #14 on: 05/March/2010, 09:54:11 AM »
Yes the fix was included in 2.0.9

 

anything