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

TOPIC:

PDF View 30 Sep 2013 13:00 #11266

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

Admin : think you should place your poll in a new topic ;)

Please Log in or Create an account to join the conversation.

PDF View 30 Sep 2013 13:05 #11267

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 following user(s) said Thank You: admin

Please Log in or Create an account to join the conversation.

PDF View 30 Sep 2013 13:09 #11268

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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

Please Log in or Create an account to join the conversation.

PDF View 30 Sep 2013 13:11 #11269

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Tomasselli K+3, and soon a lot more I guess, with your coming propositions !!! Cool !
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

PDF View 20 Feb 2014 01:27 #12222

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

Please Log in or Create an account to join the conversation.

PDF View 20 Feb 2014 06:17 #12223

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 following user(s) said Thank You: admin

Please Log in or Create an account to join the conversation.

PDF View 25 Feb 2014 12:02 #12242

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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

Please Log in or Create an account to join the conversation.

PDF View 06 Mar 2014 02:04 #12280

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?

Please Log in or Create an account to join the conversation.

PDF View 06 Mar 2014 12:34 #12282

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Time to create page: 0.070 seconds

I must say that I'm leaps and bounds ahead of where I would have other been with J2.5 with full thanks to the folks on this forum and specifically to Cook so you'll never hear me complaining.
gdpodesta (Forum)  

Get Started