I created a report with pdf export function, everything works fine on my laptop. But when I tried on another laptop, the pdf can only be exported with title, no table content, is there any configuration problem?

CommentFileSizeAuthor
#14 2478703-blank-pdf.patch616 bytesmetzlerd
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

metzlerd’s picture

This is most likely due to input format settings for Forena on the second site. Make sure to not use input formats that filter or alter html so that the table markup passses through to PDF unchanged. That is the only setting that I can think of that would supress some but not all of the content.

Of course the other possibility is that you have not granted access on the second laptop. Please compare both input format configuration and forena access permissions bewteen the two configurations.

metzlerd’s picture

Category: Bug report » Support request

Was this solved?

Dra-SiAn’s picture

I'm having a similar problem. Everything in my forena instalation seems that is working fine, but every single report, even the examples that came with module are being exported in pdf with only the title.
I need help on solving this. TKS and regards!!!!

metzlerd’s picture

Did you perform the steps that I suggested in the comment? Verifying your input format? Also please indicate which PDF generation method you are using?

Dra-SiAn’s picture

I'm using MPDF library but regarding the input format I confess that I didn't understand how configure it yet (I just got back to Drupal world) Anyway thanks a lot for your response!

metzlerd’s picture

There is a setting that specifies which input format should be used for Forena. It is found under the Configuration->Content Authoring -> Forena.

Also, mPDF has a a temp folder in its code tree that need write access. It isn't well documented in mPDF, but be sure the apache/web user has write access to that folder.

Dra-SiAn’s picture

I created a new text format and called it "forena", then applied this new format to text format field in my report page config and I gave 777 to tmp dir inside mpdf (it was 755). Nothing worked... Still in need of a help.
I'm wondering what I'm missing...
Thank you again!

metzlerd’s picture

Temporarily, rather than assigning a text format please disable the text formatting system (input filtters) in forena, just to make sure that is isn't the problem.

Also check your logs to see if there are any error messages that you are seeing. I'll try and set aside some time this week to double check to make sure something hasn't changed/broken in mPDF.

Dra-SiAn’s picture

Thank you again for your response.
I disabled every filter format from Drupal and tried again, but didn't work... so I tried to create a new text format exclusive for forena and didn't work either.
It's possible to be a problem from my server? Regarding version, I'm using mpdf vs. 6.0.
Tks in advance.

metzlerd’s picture

Did you check your logs to see if there are any php error messages there?

Dra-SiAn’s picture

Example in mpdf folder (mysite/sites/all/libraries/mpdf/examples/example01_basic.php) is showing perfectly all elements and no citation on error.log
But before saving a report as graph I have this alert:

Mensagem de erro
Notice: Undefined index: style em FrxSVGGraph::graphOptions() (linha 407 de /home/drasaa/public_html/syslabore/sites/all/modules/forena/renderers/FrxSVGGraph.inc).
Notice: Undefined index: style em FrxSVGGraph::graphOptions() (linha 407 de /home/drasaa/public_html/syslabore/sites/all/modules/forena/renderers/FrxSVGGraph.inc).

Anyway after saving the graph shows Ok.

Dra-SiAn’s picture

...But I still have blank pages with only the title for pdf.

metzlerd’s picture

Hmmm.... k. Will try to reproduce this weekend.

metzlerd’s picture

Status: Active » Needs review
FileSize
616 bytes

Verified that this was a bug only affecting mPDF generation methods introduced in some refactoring work. The following patch should correct the problem.

  • ef00301 committed on 7.x-4.x
    Issue #2478703 by metzlerd: pdf export only with title
    
metzlerd’s picture

Version: 7.x-4.2 » 7.x-4.6
metzlerd’s picture

Please test the patch and or download a 7.x-4.x-dev snapshot built after the commit and test for me. Report back results so that I can close the case as appropriate.

  • ef00301 committed on 7.x-5.x
    Issue #2478703 by metzlerd: pdf export only with title
    
Dra-SiAn’s picture

I've just installed the complete dev version and everything is working fine!!!
Thank you very much!!!

metzlerd’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.