Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: PDF View

PDF View 30 Sep 2013 13:00 #11266

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
  • Karma: 30
THANK YOU , it works now. Admin could get K+5 to Tomaselli ;)

Admin : think you should place your poll in a new topic ;)
The administrator has disabled public write access.

PDF View 30 Sep 2013 13:05 #11267

  • Tomaselli
  • Tomaselli's Avatar
  • Offline
  • Elite Member
  • Posts: 293
  • Thank you received: 87
  • Karma: 46
Admin, please don't use the jQuery UI, it's nice but it's too heavy!!!! :(

I have few controls already done for JDOM, I'll post them, I'll do in the next days, I have to work now.
I have created an addresspicker with googlemap+autocompletion+bootstrap+custom jquery plugin (by me), a nice tags input, and a better datetime picker
The administrator has disabled public write access.
The following user(s) said Thank You: admin

PDF View 30 Sep 2013 13:09 #11268

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
jQuery UI, I don't like. It was only a question.

Cook only implements the strict necessary from jQuery IU (Sortables, Draggable, ...)
Coding is now a piece of cake
The administrator has disabled public write access.

PDF View 30 Sep 2013 13:11 #11269

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Tomasselli K+3, and soon a lot more I guess, with your coming propositions !!! Cool !
Coding is now a piece of cake
The administrator has disabled public write access.

PDF View 20 Feb 2014 01:27 #12222

  • dyvel
  • dyvel's Avatar
  • Offline
  • Elite Member
  • Posts: 200
  • Thank you received: 11
  • Karma: 10
Have any of you tried to implement Tomaselli's code in latest Joomla 3.2 using current Cook version?
I've tried, but continue to get a Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 72 bytes) in ..../public_html/libraries/legacy/view/legacy.php on line 768
The administrator has disabled public write access.

PDF View 20 Feb 2014 06:17 #12223

  • Tomaselli
  • Tomaselli's Avatar
  • Offline
  • Elite Member
  • Posts: 293
  • Thank you received: 87
  • Karma: 46
Hi @dyvel,
I'm currently using that system on several j3.x websites , I didn't experience any error yet, it seems to me a problem related to something else.
Are you trying to output a long list of items with JDOM?
The administrator has disabled public write access.
The following user(s) said Thank You: admin

PDF View 25 Feb 2014 12:02 #12242

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
I would have asked the same.

When you want memory optimization, output the JDom code in the context, and then copy/paste the HTML.
Then, apply the dynamic changes with php.

JDom is nice for developper because it abstract it all, but for long lists or pdf, you can also try the optimized way.

I have experimented such issue with PDF creation already (dompdf). PDF is using a lot of memory.
I think it is normal. Optimize the HTML avoiding JDom.

Personally, I have fixed my issue by reducing the length of the PDF to a certain amount of items.
Coding is now a piece of cake
The administrator has disabled public write access.

PDF View 06 Mar 2014 02:04 #12280

  • dyvel
  • dyvel's Avatar
  • Offline
  • Elite Member
  • Posts: 200
  • Thank you received: 11
  • Karma: 10
I've tried to remove pretty much everything from the page, but still getting errors.

trying to debug, I removed the line:
parent::display($tpl);

from my view. Then an empty pdf was generated and downloaded... so at least the pdf generation is working. Is there anything about that line that would require a modification?
The administrator has disabled public write access.

PDF View 06 Mar 2014 12:34 #12282

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Did you tried to remove the dump of the object ?

Because the line you have removed is killing the HTML. Output nothing, so it will not overload... this is normal.
It is not solving the problem. you can do exit() at the begining of the component and it will never again report errors.... lol. Dev humour...

- Try 'return' at different places of the template. So you can try to render a part of HTML only (until return).
Coding is now a piece of cake
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.069 seconds

Get Started