Results 1 to 5 of 5

Thread: Printing the Results HTML / PDF missing part of the pictures

  1. #1
    Join Date
    Oct 2012
    Posts
    20

    Question 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; 12-17-2012 at 06:11 AM.

  2. #2

    Default

    Quote 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

  3. #3
    Join Date
    Oct 2012
    Posts
    20

    Default

    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

  4. #4
    Join Date
    Oct 2012
    Posts
    20

    Default

    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.

  5. #5
    Join Date
    Oct 2012
    Posts
    20

    Default

    Quote Originally Posted by liulugoommohome View Post
    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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •