GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 

GenoPro Support Forum




Struggling with the PDF Book Skin

Click to view RSS...
Author
Posted Monday, February 17, 2014 - Post #33185
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: 56 minutes ago
Posts: 3,429, Visits: 26,549
If you want help then more information is required.  Exaactly which version of the Narrative Report are you trying to use?  The report log will provide the version (date).  Also what happens when you request a PDF report on the Configuration Parameters dialogue (an IE HTA form) and click OK then Generate? Are there errors in the Report Log and is any document produced?


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Sunday, February 16, 2014 - Post #33179
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Customers
GenoPro version: 3.1.0.1

Last Login: Sunday, January 26, 2025
Posts: 2, Visits: 3
I am also suffering trying to produce a PDF report using the latest Narrative Report download. It keeps on coming up with an IE form! From this I cannot produce a PDF report. Please help.
Posted Wednesday, February 12, 2014 - Post #33173
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Customers
GenoPro version: 2.5.3.9

Last Login: Tuesday, August 20, 2019
Posts: 104, Visits: 1,686
Removing the picture headings is really no problem for me. Is there a possibility to avoid part of the Notes under a picture being broken to the following page or is this a function which is not supported by the browsers? Kind regards

Roland 
Posted Tuesday, February 11, 2014 - Post #33167
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: 56 minutes ago
Posts: 3,429, Visits: 26,549
Glad to hear we are getting somewhere near satisfactory on this one.  As the thread title indicates, it has been a real struggle!  I too had noticed the orphaned picture headings and had decided to remove them from the book output in my next version as I don't think they are required.

I have also been testing a new release of wkhtmltopdf (0.12.0 @  http://wkhtmltopdf.org/). This is the first revision for some time and a slight improvement I think when used for the Narrative PDF report.  I have been trying to use HTML tables to hold pictures and their titles and details below to try and keep them together but without real success.

I have decided to make running wkhtmltopdf optional in the Narrative 'Book' report and remove the binary from the skin but provide for the user installing it (into Program Files) if required in the same way as IrfanView and Inkscape.  the latest wkhtmltopdf has been packaged in a Windows installer version which helps with this too. This will make the zipped skin much smaller as well.

CSS does have features designed to avoid widows and orphans but only for standard paragraph text.  There is also some provision to keep sections together, e.g. {page-break-after: avoid} and {page-break-before: avoid} should in theory allow a heading to be kept with its content but sadly this does not seem to be well supported in the current browsers.  They all seem to take time to catch up with standards.  SVG for GenoMaps for example was very difficult until all browsers added support. So maybe in the future things will improve Unsure

Busy on other things at present but should get a revision out in a couple of days.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"


Tags:
Posted Tuesday, February 11, 2014 - Post #33166
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Customers
GenoPro version: 2.5.3.9

Last Login: Tuesday, August 20, 2019
Posts: 104, Visits: 1,686
Hi Ron,
The results obtained by generating a report using the 2014.01.30 PDF skin, opening "individuals.htm" with Firefox and printing a PDF file using PDF995 (my PDF virtual printer) are globally satisfactory for my purpose. This process produces the best PDF file for me so far. The "cut picture" problem does not seem to happen with this report generation method. There still are the small occasional cosmetic possible improvements which would make the end result PDF file look better, but nothing redhibitory, as far as my project is concerned (mainly the orphan titles (individual names, notes, etc) already documented earlier). I found another "orphan" occurence with the picture title:


http://support.genopro.com/Uploads/Images/e73917f7-af72-4857-8bc6-915f.JPG

But I could live with it. Thank you for your help. Kind regards

Roland
Posted Friday, February 7, 2014 - Post #33149
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Customers
GenoPro version: 2.5.3.9

Last Login: Tuesday, August 20, 2019
Posts: 104, Visits: 1,686
My apologies. I was wrong. I used IE to look at the "individuals.htm" file with a 75% zoom level and saw (looking at the bottom page ruler) that, although the page filled the whole screen, it did not fill the whole available width. And thus deducted too hastily that the extra available width as seen by pushing out the bottom page ruler to the right) was the extra blank margin space.

http://support.genopro.com/Uploads/Images/1a2173d9-a0a9-4415-8fc4-d94f.JPG




Same page with bottom ruler pushed to the right:
http://support.genopro.com/Uploads/Images/ed3d8f8d-3b9e-4498-a8d9-3ffe.JPG



Changing the zoom % does indeed always fill the screen as you said.
Posted Friday, February 7, 2014 - Post #33146
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: 56 minutes ago
Posts: 3,429, Visits: 26,549
Now I am a little confused.  The split photos issue should be resolved using Firefox to print, I wonder why you want to move the photo down (I can't see moving being an option without deleting content above). 

 Anyway the picture and its notes are rendered as a floating block to the right of the family detail, so the best option is to move the whole family down by adding padding above.  One way to achieve this is to add more line break tags <br /> before the <h3 class='familyheading'> tag.

However I am also looking into tagging Families and Individuals so that a page break can be inserted according to a custom tag setting.  This would remove the need to edit individuals.htm before printing.  I also intend to investigate use of CSS {page-break-inside: avoid;} to overcome orphaned subheadings.  I have also yet to test this CSS styling with the floating picture blocks when used with Firefox or IE9+



You also said in your previous post

4. The margin problem is still there when the PDF report is produced with IrfanView thumbnails. Please note that it is also present in the individuals.htm file, but it is possible to correct this in the HTML to PDF conversion program.


I am struggling to see how this can be or indeed quite what you mean here, as the html has no fixed width and is designed to flow into the space available to it.  Perhaps you could send your resulting individuals.htm file via PM for me to investigate.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Thursday, February 6, 2014 - Post #33144
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Customers
GenoPro version: 2.5.3.9

Last Login: Tuesday, August 20, 2019
Posts: 104, Visits: 1,686
Hi,

The first tests using "individuals.htm" look encouraging. I was able to produce PDF reports with all their pictures and no right margin problems anymore.

Funny discovery: the non-superscript footnotes problem occuring with "wkhtmltopdf.exe" is still there when using "PDF995" or"Nitro Pro 8" to convert "individuals.htm" to PDF. Could they all be using the same erroneous conversion algorithm...

Now, in html code, it should be possible to move the pictures higher or lower in a page to circumvent the cut picture problem. It's probably a tedious manual solution, but feasible in my case with less than 100 pictures per report. I tried and was only able so far to move the picture up or down, but losing the right margin alignment and the "Notes" alignment underneath the picture. If I only knew which block of code I should move as a whole to move the picture with its notes and keeping the right or left justification, for example here:

  <a name='Family'></a>
<a id='fam00669'></a>
<div class='clear'><br /><h3 class='familyheading'><a href="#fam00669" onclick='tocExit();' >Famille de Karl Gottlieb avec Emilie Zink</a></h3></div>
<div class='floatright aligncenter widthpaddedlarge'>
<br />
Photos famille<div id='idPVp_fam00669'>
<img src='thumbnails/pic00452.jpg' width='293px' height='430px' class='pic' style='margin:0px 68px 0px 68px;' onclick='viewPic("..\\..\\Ancetres Tous\\Pictures\\Schäfer Karl Gottlieb (1875)\\Karl Gottlieb Schäfer (famille).jpg")' alt=' provient deRoland Schaeffer.' title=' provient deRoland Schaeffer.'/>
</div><div class='caption' id='idPVc_fam00669'>Cette photo provient de <a href='source-source00024.htm' onclick='showPopUpFrame("");' target='popup'>Roland Schaeffer</a>.</div>
<ul id='idPVv_fam00669' class='xT show note'>
    <li class='xT-o xT-h' onclick='xTclk(event,"")'>Notes sur la photo
        <ul class='xT-n'><li id='idPVd_fam00669' class='xT-b xT-n'>De gauche à droite: Wilhelm Theophil Schaeffer, Emilie Zink, Karl Schaeffer, Theodor Schaeffer et Johanna Schaeffer. D&#39;après l&#39;âge des enfants la photo a été prise vers 1916, année d&#39;incorporation de Karl Schaeffer (Mars 1916).<br />Photo prise par Karl Pinkau, photogra. Atelier, Leipzig, Tauchaerstr. 9 (Johann Carl Pinkau (o 1. Juni 1859 in Thonberg; † 26. August 1922 in Leipzig) war ein deutscher Lithograf, Fotograf und SAPD Politike)
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</li></ul>
    </li>
</ul>
</div>
<div>
Karl Gottlieb et <a href='#ind01701'  title='Emilie Zink'>Emilie</a> se sont unis par un mariage civil le 27 octobre 1900 à <a href='place-place00501.htm' onclick='showPopUpFrame("");' target='popup'>Villingen, Schwarzwald, Allemagne</a>; les témoins étaient Guillaume Schaeffer (son jeune frère), Johann Nepomuk Fischer (Finanzassistent).<sup><a href='#3' title='Voir le bas de page pour source'>3</a>&nbsp;</sup><ul class='xT note'>
  <li class='xT-o xT-h' onclick='xTclk(event,"")'><h5 class='inline'>Notes sur l&#39;union</h5>
    <ul class='xT-n'>
     <div>Acte de mariage - Villingen - 27 Octobre 1900 Nr. 66<br />Der ledige Maschinenmeister Karl Gottlieb Schaeffer, katholischer Religion, geboren am 28. Oktober 1875 zu Bern, Schweiz wohnhaft in Karlsruhe Sohn des Cementarbeiters Karl Gottlieb Schaeffer und dessen Ehefrau Karolina geborene Dufner, Ersterer an unbekannten Orten abwesend, Letztere verstorben und zuletzt wohnhaft in Straßburg<br />die ledige Emilia Zink, ohne Beruf, katholischer Religion, geboren am 16. Oktober 1879 zu Kreuzlingen, wohnhaft in Villingen Tochter des Lokomotivführers Johann Friedrich Zink und dessen Ehefrau Maria Barbara geborene Sütterlin, beide wohnhaft in Villingen<br />Als Zeugen waren zugezogen und erschienen<br />der ledige Finanzassistent Johann Nepomuk Fischer, 28 Jahre alt wohnhaft in Villingen<br />der ledige Maschinenmeister Wilhelm Schaeffer, 21 Jahre alt, wohnhaft in Hannover<br />unterschrieben: Karl Gottlieb Schaeffer&nbsp;&nbsp;&nbsp; Emilie Schaeffer geborene Zink&nbsp;&nbsp;&nbsp; Johann Nepomuk Fischer&nbsp;&nbsp;&nbsp; Wilhelm Schaeffer<br />Alors qu&#39;il faisait son service militaire à Hanovre, Guillaume Schaeffer a pu obtenir une permission pour aller à Villingen et être témoin au mariage de son frère.<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;     </div>
    </ul>
  </li>
</ul>


Ils ont eu trois fils et une fille, prénommés <a href='##ind01702' onclick='explorerTreeOpen("Children","2");' title='Wilhelm Theophil Schaeffer'>Wilhelm Theophil</a>, <a href='##ind01704' onclick='explorerTreeOpen("Children","2");' title='Karl Theodor Schaeffer'>Karl Theodor</a>, <a href='##ind01705' onclick='explorerTreeOpen("Children","2");' title='Günther Schaeffer'>Günther</a> et <a href='##ind01703' onclick='explorerTreeOpen("Children","2");' title='Johanna Getrud Schaeffer'>Johanna Getrud</a>.</div><br />
<div class='clearleft'><ul class='xT'>
    <li class='xT2-o xT-h' id='Children' onclick='xTclk(event,"2")'>
<a name='Children'></a><h4 class='xT-i inline'>Les enfants</h4><ul class='xT-h'>
<a id='#ind01702'></a>
<div class='clearleft'>
<img src='images/gender_M.gif' class='icon' alt='Homme' title='Homme' />&nbsp;<a href='#ind01702' onclick='hidePopUpFrame("");' target='detail'>Wilhelm Theophil Schaeffer</a><br />
Wilhelm Theophil est venu au monde le 25 janvier 1903 à <a href='place-place00502.htm' onclick='showPopUpFrame("");' target='popup'>Beiertheim</a>.<sup><a href='#4' title='Voir le bas de page pour source'>4</a>&nbsp;</sup><ul class='xT note'>
  <li class='xT-o xT-h' onclick='xTclk(event,"")'><h5 class='inline'>Notes sur la naissance</h5>
    <ul class='xT-n'>
     <div>Confirmée dans son annonce nécrologique.<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;     </div>
    </ul>
  </li>
</ul>


The section in red is the part I would like to move. What else should I move along with it? And in-between which commands (such as maybe "</ul>" e.g.) am I allowed to insert it without creating total chaos in "individuals.htm"?

I hope I do not have overdimensioned technical ambitions and that what I try to achieve is as simple as it looks to my inexperienced eyes. Thank you for your help.

Kind regards

Roland


Posted Thursday, February 6, 2014 - Post #33142
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Customers
GenoPro version: 2.5.3.9

Last Login: Tuesday, August 20, 2019
Posts: 104, Visits: 1,686
Hi Ron,

1. No errors in the report log. All the pictures of the report were generated (updated) as thumbnails, including those which are "behind the top of the pile" picture in the same box (the ones which are scrolled in this box in the HTML report). This leads me to think that the problem could be linked with a memory shortage, the way some pictures are swapped out because of a lack of memory in the Photo album of the HTML report.

The missing picture problem appears under different expressions:

1.1. Blank page (no text, an empty box frame for the missing picture, but the box is the size and aspect ratio of the missing picture)


1.2. Hybrid (mix of picture and empty box on the same page; all text missing)

http://support.genopro.com/Uploads/Images/5d691c5b-b1af-430b-911b-3d6a.JPG


1.3 Funny picture in 3 small partial iterations. The following page is a "missing picture with empty box and no text" version.

http://support.genopro.com/Uploads/Images/2aca98d0-0ecb-4196-ae10-92fb.JPG


After an empty page, the report goes on as if nothing had happened. In particular, the following page starts where it should have started if there had been the "normal" previous page.

 
2. All the pictures including the missing pictures have thumbnail images in the thumbnails folder of the report destination folder.

3. All the pictures including the missing pictures are there when I open individuals.htm from the destination folder in a browser

4. The margin problem is still there when the PDF report is produced with IrfanView thumbnails. Please note that it is also present in the individuals.htm file, but it is possible to correct this in the HTML to PDF conversion program.

I shall start playing with the "individuals.htm" file and converting it to a PDF report. This could be a solution for me

Kind regards

Roland
Posted Thursday, February 6, 2014 - Post #33135
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: 56 minutes ago
Posts: 3,429, Visits: 26,549
Hi Roland.

 I am very surprised that you have missing pictures when using IrfanView thumbnails and I would like to understand why this is happening.  Perhaps you could kindly answer the following:

  1. Did you see any errors in the Report Log when thumbnails were being created?
  2. Do the missing images in fact have thumbnail images in the thumbnails folder of the report drestination folder?
  3. Are the images also missing when you open individuals.htm from the destination folder in a browser?
  4. Is the margin problem still there when PDF produced with IrfanView thumbnails?


Perhaps it is also time to take stock of where we are with PDF output.

  • The problem of pictures split between pages appears to be unavoidable unless wkhtmltopdf is improved.
  • There are unknown factors within wkhtmltopdf causing font reduction at times.
  • I have discovered that both IE8+ and Firefox will print the individuals.htm file without splitting the larger right-hand pictures but sometimes the smaller images on the left are truncated.  IE9+ is required to ensure the CSS media print styles to provide all black text works correctly. Only IE8 is available for XP. 
  •   Printing with Google Chrome does still lead to split images.


I therefore suggest the way forward when the  Table of Contents, or TOC, feature of wkhtmltopdf is not required is to print individuals.htm via Firefox to a PDF printer package (e.g. CutePDF, PrimoPDF etc. ).

Over the next day or so I will amend the Narrative Report skin to incorporate the things discovered whilst working with Roland on this issue over the past  days and provide an option to produce individuals.htm but not run wkhtmltopdf to produce PDF directly, leaving it up to the user to convert as above.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"


Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse
Active: 4 - 1 guest, 2 members, 0 anonymous.
Refresh