Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Produce large format pdf tree. #1067

Open
billthefarmer opened this issue Jul 15, 2016 · 7 comments
Open

Produce large format pdf tree. #1067

billthefarmer opened this issue Jul 15, 2016 · 7 comments
Labels
enhancement feature request

Comments

@billthefarmer
Copy link

This appears to be a feature that is missing, to produce a large format pdf file of the whole tree that can be printed out and hung on the wall. I have had a go at it as a stand alone utility, see https://github.com/billthefarmer/gpdf. However the code uses a text file to lay out the tree. A development of the interactive tree feature might do the job.

@fisharebest
Copy link
Owner

pdf file of the whole tree

I don't believe this is possible, except for small/trivial trees.

You can draw subsets of this (ancestors of X or descendants of Y), but I can't imagine how you would draw everyone.

@billthefarmer
Copy link
Author

It depends, as you say, on the complexity of the tree, but I think it should be possible to attempt an algorithm. It would be a combination of recursion and iteration using a set of rules, such as:

  • Divide the page into slots according to the number of generations and the maximum number of individuals and different families in a generation.
  • Start with the first individual in the database and place them in the centre of the page vertically in the correct generation and build the tree around them. This individual would be expected to be either the person building the tree, or a relative he or she is building the tree around.
  • Siblings should be in order of birth from top to bottom
  • Parents should be in line with children vertically, offset towards the top or bottom according to whether above or below the centre of the page.
  • Fathers should either be above or below mothers consistently, either an option or depending on a patriarchal or matriarchal tree.
  • No more than one individual to a slot.

The algorithm would run iteratively making adjustments until either the problem it is found to be insoluble or an iteration finds no changes to make.

An enhancement to make following families easier, have a extra slot vertical gap between different families in each generation.

@arjanvs
Copy link

arjanvs commented Dec 12, 2016

How did gramps solved this?

@billthefarmer
Copy link
Author

I just had a look. there's a plugin Family Tree that does something similar, but it doesn't look like it handles offshoots and things like that. I tried gramps at the time, it wouldn't import our data from webtrees correctly.

@arjanvs
Copy link

arjanvs commented Jan 25, 2017

For me it does import correctly. It makes nice relationship charts. Sometimes a bit to large ;)

@billthefarmer
Copy link
Author

Well, it was a while ago and we were just trying it out to see what it could do without much luck.

@sevtor
Copy link
Contributor

sevtor commented Feb 6, 2024

I have a new report module 'family_tree' that is ready to be included when PR #4945 is included!
This report module can produce up to size A2, fairly easy to add even bigger formats if wanted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement feature request
Projects
None yet
Development

No branches or pull requests

4 participants