Announcement

Collapse
No announcement yet.

Printing the Results HTML / PDF missing part of the pictures

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Printing the Results HTML / PDF missing part of the pictures

    Hi,

    Every time i try to print my Test Results there are missing areas in the generated pictures...

    only if if view the html in Firefox i can see everything.


    Following things i have tested
    print the generated HTML. missing areas pictures
    print the generated HTML to PDF. missing areas pictures
    generate a PDF via PTS. missing big summary from all tests. the unique test results are there.



    How do i print my results with all data?

    Thanks for any help.
    Last edited by Yaniv; 17 December 2012, 07:11 AM.

  • #2
    Originally posted by Yaniv View Post
    Hi,

    Every time i try to print my Test Results there are missing areas in the generated pictures...

    only if if view the html in Firefox i can see everything.


    Following things i have tested
    print the generated HTML. missing areas pictures
    print the generated HTML to PDF. missing areas pictures
    generate a PDF via PTS. missing big summary from all tests. the unique test results are there.



    How do i print my results with all data?

    Thanks for any help.
    In terms of printing from the browser, it sounds like Firefox is incorrectly parsing/evaluating the embedded SVG. It's just using the default size of the tag when the height/width attribute is not specified rather than reading it from the SVG width/height. So it's a browser bug, have you tried any other browsers?

    In terms of the PDF generator not having the overall summary, the support could be added quite easily and patches are welcome. It'd basically be a small patch within pts-core/commands/result_file_to_pdf.php
    Michael Larabel
    https://www.michaellarabel.com/

    Comment


    • #3
      have you tried any other browsers?
      tested with chrome and ie. same problem.

      It'd basically be a small patch within pts-core/commands/result_file_to_pdf.php
      I am not so familiar with PHP but i will look at it. and report back.
      if you could tell me what should be added to this php file in order to add all the SVG's generated... this would make it allot easier for me.

      Thanks

      Comment


      • #4
        I have done some tests in this file "result_file_to_pdf.php"


        Code:
        $identifiers = $result_file->get_system_identifiers();
        $hardware_r = $result_file->get_system_hardware();
        $software_r = $result_file->get_system_software();
        $notes_r = $result_file->get_system_notes();
        $tests = $result_file->get_test_titles();
        if i comment out for example "$software_r = $result_file->get_system_software();" and "$pdf->WriteText($software_r[$i]);" the software part is not in the PDF.

        so i guess i have to add the fields that i am missing to this section.
        could you tell me what the names are for this missing sections?
        actually i miss the
        Hardware summary side by side
        Overall summary
        and the Results points summary table.

        thank you.

        Comment


        • #5
          Originally posted by liulugoommohome
          Thank you for your message. I learn a lot.Hope to see more posts.
          What are you talking about
          I did not solve it. If you have solve it and know what to do please share your solution.

          Thanks.

          Comment

          Working...
          X