wkhtmltopdf : loss of css formating set

(10 posts) (2 voices)

Tags:

No tags yet.

  1. myDBR Team, Key Master

    wkhtmltopdf is usualy quite good at making the output as it is a "real browser" and not just a converter.

    Looks like you are using Mac OS X. What is the wkhtmltopdf version you are using? Are you using a 64 bit kernel?

    The wkhtmltopdf uses UI components from the OS, and the wkhtmltopdf version needs to match OS architecture in order it to be able to use UI components when starting inside PHP. When run from command line one can mix 32bit and 64bit versions.

    --
    myDBR Team

  2. phil1308, Blocked

    Thank you for your quick answer.
    I'm under Windows 7 Pro 64bit.
    I have downloaded and installed the only windows installer I have found at wkhtmltopdf website : wkhtmltopdf-0.9.9-installer.exe
    I can't see if it is dedicated to either 32bit or 64bit windows system or wether specific windows version really existing ?

  3. myDBR Team, Key Master

    The 64bit issue is for MacOS X, where the wkhtmltopdf is compiled as an old 32bit Carbon program. If your server is running Windows, you are not affected.

    Do you have your own styles / dbr.purehtml included in the report? If there is an error in the markup, this might cause the problem.

    You can check the export output by enabling the debug mode in export. Add following command into the report and when you do export, the generated output is saved on disk and the a wkhtmltopdf command is generated:

    select 'dbr.export.options', 'debug', 1;

    --
    myDBE Team

  4. myDBR Team, Key Master

    OK. That is progress.

    Now compare the report generated directly from myDBR and the one from the file. You should be able to inspect where the difference is if you take a browser which has an CSS inspector. Looks like something is preventing the loading of the stylesheets that are present in your normal report.

    --
    myDBR Team

  5. myDBR Team, Key Master

    Yes,
    it was a bug. it is fixed now. Run the updater to get the latest build.

    Thank you for your time and effort.
    --
    myDBR Team

  6. phil1308, Blocked

    It works !
    Thank you for your ability to react.

  7. phil1308, Blocked

    Hello myDBR Team,
    once again I have the exactly same problem :
    the link of "user css" is not correct on the pdf export, so "user style" cannot be applied !

    Here is the actual lines in my temporary html file (file:///C:/Users/Philippe/AppData/Local/Temp/1580919683.html) :

    ...
    <link href="http://127.0.0.1/myDBR/interface/normal.css?v=1572" rel="stylesheet" type="text/css" />
    <link href="http://127.0.0.1/myDBR/interface/themes/taikala.css?v=1572" rel="stylesheet" type="text/css" />
    <link href="user/userstyle.css?1349957489" rel="stylesheet" type="text/css" />
    ...

    It should have been :
    ...
    <link href="http://127.0.0.1/myDBR/interface/normal.css?v=1572" rel="stylesheet" type="text/css" />
    <link href="http://127.0.0.1/myDBR/interface/themes/taikala.css?v=1572" rel="stylesheet" type="text/css" />
    <link href="http://127.0.0.1/myDBR/user/userstyle.css?1349957489" rel="stylesheet" type="text/css" />
    ...

    When I replace "href="http://127.0.0.1/myDBR/user/userstyle.css?1349957489"" by "href="http://127.0.0.1/myDBR/user/userstyle.css?1349957489"", it works fine !
    For information, my myDBR version is 3.6.0 (build 1572)

    I think the previous bug has "come back" !

    Thank you.

  8. myDBR Team, Key Master

    Looks like a bug. We'll fix it.

    --
    myDBR Team

  9. myDBR Team, Key Master

    It is now fixed. Run the updater to get the latest build.

    --
    myDBR Team

  10. phil1308, Blocked

    Yes, it works now !

    Thank you.


Reply

You must log in to post.