Menu

Family Tree Print

Help
KaiNo
2010-06-17
2013-05-30
  • KaiNo

    KaiNo - 2010-06-17

    hello
    I want to know where have to add my code.
    With the existing reports of PHPGedView i was not able to create a family tree on an single page to print the tree on a large plotter. So I have implemented some code. The results you can download from filefactory:

    http://www.filefactory.com/file/b218c9d/n/nixon_11_compr.pdf
    http://www.filefactory.com/file/b218c9g/n/nixon_11_expan.pdf

    There I have created a family tree for "Richard Milhous NIXON  ‎(I1195)‎" from the presidents.ged file.
    Following  is options can be set:
    - page orientation                ("portrait" in example)
    - number of generations    ("11" in example)
    - show of siblings                (no siblings exists in the family tree of R. Nixon)
    - include defined images   (yes in example)

    For this report I have added in the reportengine.php file the code

    //- run the report
    else if ($action=="run") {
    // -- ADD start
            if ($report=="reports/pedigree_singlepage.xml") {
                    require 'includes/classes/class_pedigree.php';
                    $pedigree=PGVReportPedigree::setup ();
                    exit;
            }
    // -- ADD end

    so I am not sure if this change is convenient to the code style of PHPGedView

     
  • ggpauly

    ggpauly - 2010-06-17

    KaiNo,

    I've been thinking about this very issue lately.  Why doesn't  PGV have pretty-printing family tree charts suitable for framing?  The solutions I was considering are way more complicated than yours though.

    Unfortunately, your pdfs aren't loading from the filefactory site for me.

    Anyway, I usually submit changes to the Patches section of tracker, or maybe a kind committer may pick up your work.

    Thanks, I'll try this out.

     
  • KaiNo

    KaiNo - 2010-06-17

    hello ggpauly,
    if you can't download from filefactory try this link from megaupload
    http://www.megaupload.com/?d=034VRZNA
    now only one file

     
  • ggpauly

    ggpauly - 2010-06-17

    No luck there either.

    Do you have a PGV site that demos this?

     
  • Stephen Arnold

    Stephen Arnold - 2010-06-17

    KaiNo
    Not sure why Paul is having a problem, but yes - very nice diagram.
    How large would the format have to be to print this? It looks quite tall as well as wide.

    Of course this works well for one limited line, but what if the relationships are more numerous, the family larger and the lines longer?

    To answer the real question about PGV and printing, there are paid services for this that took many people much time, effort and talent to create a method by which to print these and this talent, time and effort is not available to PGV, particularly for such a limited audience. PGV is and remains an outstanding program for the collaborative process of entering family tree data online and displaying it thereby.  Its mission did not and does not include printing pretty trees suitable for framing.
    Stephen

     
  • KaiNo

    KaiNo - 2010-06-18

    Hello Stephen
    the format depend on the amount of generations an leaves
    in the portrait mode for the nixon example
    5cm (2") per generation plus 4cm (1.5") border = 59cm (23.5")
    1.5cm (0.6") per leave plus 4.5cm (1.7") border = 114cm (45")

    each person is displayed only once. If a person appears  more often in the tree a reference is displayed. See person John Hussey (I1306) shown under numbers 110 and 212.

    KaiNo

     
  • KaiNo

    KaiNo - 2010-06-18

    Hello Paul
    until now I have no PGV site online, so there is no demo version. I waiting to be joined to the PGV project and then put my code into the main repository. So  you have to wait a little bit or you tell me where I can upload the demo diagrams.
    KaiNo

     
  • ggpauly

    ggpauly - 2010-06-18

    Hi KaiNo,

    You could try drop.io

     
  • KaiNo

    KaiNo - 2010-06-19

    hi Paul
    next try at drop.io

    http://drop.io/pgv_familytree

    now some additional files.
    one with siblings and another in landscape mode

     
  • Anonymous

    Anonymous - 2010-06-20

    Are you going to upload this report to the Patches section here (under Tracker in the menu near the top of this page)?  Thats the normal way to add new bits.

     
  • ggpauly

    ggpauly - 2010-06-27

    Hi KaiNo,

    I guess I need some more information.  What does this patch do exactly?

    I put it on a version 4.2.3 pgv site and saw no difference.

    I did discover that I could print the report to pdf with results similar to yours (patched or unpatched made no difference) by clicking the "Printer-friendly Version" link on the bottom of the page, and then choosing "Print…"  from my browser (Firefox 3.0.19 on Ubuntu Linux) and printing to a .pdf file.  This worked in the standard theme but not in Cloudy theme.

    So I'm a happy camper, just curious about what your patch does…

     
  • KaiNo

    KaiNo - 2010-06-28

    Hi Paul
    up to now I had no time to add the code. But now it is available in the tracker section.
    please add some comments how the style and code can be improved.

     

Log in to post a comment.