Giter Club home page Giter Club logo

fancy_treeview_pdf's Introduction

Fancy Treeview PDF

Latest Release webtrees major version

PDF extension for the Fancy Treeview module. This is a webtrees 1 module. It cannot be used with webtrees 2.

Description

This module is an extension for the Fancy Treeview module. If you install this module it offers your users the possibility to download a Fancy Treeview page as PDF. Like the Fancy Treeview webpage, the PDF contains an overview of all descendants of a selected root person in a tree. It contains the same information as the Fancy Treeview page (images are included). Besides the PDF comes with an index with the names of all individuals in alphabetical order. It is designed to use with all kind of languages, including rtl-languages.

Required disk space

The mPDF-library is a huge library. Since webtrees offers many languages we need the complete font-library that comes with mPDF to serve your visitors from all parts of the world. If you don’t need the PDF-option or you don’t have enough disk space on your server (minimum of 100MB free space is required) don’t install this extra module.

If you have less space on your server and still want to use this module it could be possible if you don't serve all webtrees languages to your visitors. If you only provide a few you probably can remove most of the fonts in the folder mpdf/ttfonts, which will reduce package size. You should NOT remove any fonts from the DejaVu family because these are the basic fonts needed for the PDF creation. If you have removed any of the other fonts, you should test the PDF creation in any language you use on your website to see if everything is working properly.

Translations

This module doesn't contain any translation files. The few texts inside this module are added to the translation files inside the main module Fancy Treeview.

Stylesheets

This module only contains stylesheets to style the PDF-document. The few webstyles used inside this module are added to the themefiles inside the main module Fancy Treeview.

Installation & upgrading

For more information about these subjects go to the JustCarmen help pages. Please note: This module won't work without the main module Fancy Treeview7 installed.

Bugs and feature requests

If you experience any bugs or have a feature request for this module you can create a new issue on GitHub or use the webtrees subforum 'customising' to contact me.

fancy_treeview_pdf's People

Contributors

justcarmen avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

fancy_treeview_pdf's Issues

FTV PDF and PHP 7.2 not works

Hi, I have tested the FTV PDF 1.7.9.1 and MPDF 6.1.0 (bundle) with PHP 7.2 and it not works. I receive an error messagein the website logs:

/home/bauschaf/webtrees_ffp/modules_v3/fancy_treeview_pdf/mpdf/classes/ttfontsuni.php:613 count(): Parameter must be an array or an object that implements Countable #0 /modules_v3/fancy_treeview_pdf/mpdf/classes/ttfontsuni.php:613 ErrorException("count(): Parameter must be an array or an object that implements Countable") #1 /modules_v3/fancy_treeview_pdf/mpdf/classes/ttfontsuni.php:202 extractInfo(false, true, 0) #2 /modules_v3/fancy_treeview_pdf/mpdf/mpdf.php:3880 getMetrics('/home/bauschaf/webtrees_ffp/mo…', 'dejavuserifcondensed', 0, false, true, 0) #3 /modules_v3/fancy_treeview_pdf/mpdf/mpdf.php:4246 AddFont('dejavuserifcondensed', '') #4 /modules_v3/fancy_treeview_pdf/mpdf/mpdf.php:13621 SetFont('dejavuserifcondensed') #5 /modules_v3/fancy_treeview_pdf/mpdf/mpdf.php:1287 SetDefaultFont('serif') #6 /modules_v3/fancy_treeview_pdf/app/Template/PdfTemplate.php:50 __construct() #7 /modules_v3/fancy_treeview_pdf/module.php:127 pageBody() #8 /module.php:26 modAction('write_pdf')

I see that you changed the code in 1.8.0-dev for use with PHP 7.2 but with MPDF 7.0 or 7.1 it not works too. In the webtrees website logs aren't error messages.

I use webtrees 1.7.10 and it would be great to use your addon again with PHP 7.2. I think there is a problem with the integration of mpdf.

Best regards
Martin

Php7 support

Click here for a workaround of Fancy Treeview PDF in combination with Php7.

Can't generate a PDF file.

Hi Carmen,

I can't generate a PDF file... Here is my log :

error /var/www/webtrees/includes/session.php:193 /var/www/webtrees/modules_v3/fancy_treeview_pdf/mpdf/mpdf.php:11806 fopen(/media/LINUX-CLOUD/webtrees/data/ftv_cache/1-M2472-1420647246.png): failed to open stream: No such file or directory
#0 unknown:unknown ErrorException("/var/www/webtrees/modules_v3/fancy_treeview_pdf/mpdf/mpdf.php:11806 fopen(/media/LINUX-CLOUD/webtrees/data/ftv_cache/1-M2472-1420647246.png): failed to open stream: No such file or directory")
#1 /modules_v3/fancy_treeview_pdf/mpdf/mpdf.php:11806 fopen('/media/LINUX-CLOUD/webtrees/da…', 'rb')
#2 /modules_v3/fancy_treeview_pdf/mpdf/Tag.php:3271 _getImage('https://UNDISCLOSED.net/media/LIN…', true, true, '/media/LINUX-CLOUD/webtrees/da…', false)
#3 /modules_v3/fancy_treeview_pdf/mpdf/mpdf.php:16543 OpenTag('IMG', [array], [array], 29)
#4 /modules_v3/fancy_treeview_pdf/app/Template/PdfTemplate.php:88 WriteHTML('Descendants de <span class…', 2, true, false)
#5 /modules_v3/fancy_treeview_pdf/module.php:120 pageBody()
#6 /module.php:26 modAction('write_pdf')

It's weird, because the file "1-M2472-1420647246.png" IS in that directory...

Any tips ? Thank you !

[EDIT] Got also this one now :

error /var/www/webtrees/includes/session.php:193 /var/www/webtrees/modules_v3/fancy_treeview_pdf/mpdf/mpdf.php:11806 fopen(/media/LINUX-CLOUD/webtrees/data/ftv_cache/undefined): failed to open stream: No such file or directory
#0 unknown:unknown ErrorException("/var/www/webtrees/modules_v3/fancy_treeview_pdf/mpdf/mpdf.php:11806 fopen(/media/LINUX-CLOUD/webtrees/data/ftv_cache/undefined): failed to open stream: No such file or directory")

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.