Problem with PDF-Output

(20 posts) (2 voices)

Tags:

No tags yet.

  1. Tims, Member

    Hello,

    i created my own Theme in myDBR and the PDF output should look like that, but it always looks like the Standardtheme.

    The Columns are very small and the Report just fill 1/4 of the A4-Document.
    I tried to fix it with export.options but nothing changed.

    How can i bring my Theme into the PDF-Output?

    Thanks a lot, Tim.

  2. myDBR Team, Key Master

    Have you installed the wkhtmltopdf?

    --
    myDBR Team

  3. Tims, Member

    Ok, now i installed wkhtmltopdf and thats the error message i get:

    There was an error (code:11) producing the pdf document
    Failed command: ../../wkhtmltopdf/wkhtmltopdf -q --header-html "" -O Portrait -s A4 --zoom 0.5 --margin-top 13 /tmp/757365894.html -

    I debuged it with 'dbr.exports.options', 'debug', 1;
    and tested that command line without "-q" but cant get there some Information about the Problem.

    select 'dbr.wkhtmltopdf', '--header-html ""'; is already in use.

  4. myDBR Team, Key Master

    What was the result from the command line if you ran the command (make sure the /tmp/757365894.html exists):

    % wkhtmltopdf -q --header-html "" -O Portrait -s A4 --zoom 0.5 --margin-top 13 /tmp/757365894.html output.pdf

    What is the OS and wkhtmltopdf-version you are using?

    --
    myDBR Team

  5. Tims, Member

    The tmp/ folder is always empty.
    Theres always another /tmp/"NUMBER".html after reload.

    OS is Debian Linux in Version 6.0
    and wkhtmltopdf version is the newsest.

  6. myDBR Team, Key Master

    When you run the export with the debug flag on, instead of running the wkhtmltopdf, myDBR shows the command it would run and leave the generated HTML file in the /tmp directory. This way you can troubleshoot the wkhtmltopdf from the command line to figure out what is the cause of the problem.

    What is the wkhtmltopdf-version you are using?

    --
    myDBR Team

  7. Tims, Member

    wkhtmltopdf-Version:
    wkhtmltopdf 0.11.0 rc1

    myDBR shows the commandline but there is nowhere a tmp/ directory.
    So i created a tmp/ folder in the mydbr folder with all rights and reloaded the output but theres nowhere a .html file.

    In which directory should i find/exist the tmp folder?

  8. myDBR Team, Key Master

    The system wide temporary directory /tmp is located in the root directory (/).

    --
    myDBR Team

  9. Tims, Member

    There was no tmp directory.
    I created the tmp directory (all rights) reloaded the output but there is still no .html file.

  10. myDBR Team, Key Master

    You can test if your wkhtmltopdf is working by issuing a command:

    % wkhtmltopdf http://google.com google.pdf

    After the command you should have a valid PDF file google.pdf.

    You should be able to find your /tmp directory as well as it is part of a standard (http://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard).

    Is that your own server or a hosted shared server?

    --
    myDBR Team

  11. Tims, Member

    When i execute % wkhtmltopdf http://google.com google.pdf
    i geht the message:
    -shell: fg: %: no such job

    Its a hosted server.

  12. myDBR Team, Key Master

    Run the command without the % (it was a example of a prompt).

    wkhtmltopdf http://google.com google.pdf

    Its a hosted server.

    Is it a shared hosted server i.e do you have control over the full installation?

    --
    myDBR Team

  13. Tims, Member

    executed wkhtmltopdf http://google.com google.pdf:

    Fontconfig error: Cannot load default config file
    Loading pages (1/6)
    Segmentation fault===========================================] 100%

    The Hoster does installations for us.

  14. myDBR Team, Key Master

    You might want to ask your hosting provider to fix the fontconfig in the OS.

    --
    myDBR Team

  15. Tims, Member

    The hosting Provider said that wkhtmltopdf got no root access.

    Is there a way to use wkhtmltopdf without root access?

  16. myDBR Team, Key Master

    There should not be any need for root access when you just use wkhtmltopdf. Please consult your hosting provider.

    --
    myDBR Team

  17. Tims, Member

    Our hosting provider could fix the Fontconfig error but there is still the

    Loading pages (1/6)
    Segmentation fault===========================================] 100%

    and they cant find any reasons for that error.

    So what can i do know?

  18. myDBR Team, Key Master

    Your hosting provider should be able to check what is causing the problem as it is their server. As a last resort, they could try older version of the wkhtmltopdf to see if it that would behave differently.

    --
    myDBR Team

  19. Tims, Member

    Hi,

    sadly the problem persists.
    Our hosting provider tried binary downloads and compiling from source and comes to the conclusion that wkhtmltopdf can't be run on their servers (They get the same "segmentation fault" as we did).

    Is wkhtmltopdf necessary to see custom CSS/Themes in a PDF-export or would it just make them "nicer"? It seems odd to me that we get a PDF in the standard layout instead of an error message. Some sort of PDF-export seems to be possible; it just won’t take our CSS/Theme.

    Regards
    Cenesco GmbH

  20. myDBR Team, Key Master

    The wkhtmltopdf is required for themes / own CSS to appear. myDBR has a another PDF creation capability in addition to wkthmltopdf (comes from the Excel export library), but compared to wkhtmltopdf it is far inferior in both performance and resultwise.

    Did your hosting provider say what was the cause of the segmentation fault?

    --
    myDBR Team


Reply

You must log in to post.