* V7 PDF creation very slow, creating huge files

Questions regarding use of any Version of Family Historian. Please ensure you have set your Version of Family Historian in your Profile. If your question fits in one of these subject-specific sub-forums, please ask it there.
User avatar
Mark1834
Megastar
Posts: 2146
Joined: 27 Oct 2017 19:33
Family Historian: V7
Location: South Cheshire, UK

Re: V7 PDF creation very slow, creating huge files

Post by Mark1834 » 28 Jan 2021 10:33

I've had another go at getting an acceptable format for the 1911 Census that FH can output before giving up on tables. With a bit of abbreviation and combining columns I can get to something that is at least workable. I've copied the information in my old narrative style below the table, and which is "better" is personal preference.
Capture.PNG
Capture.PNG (88.12 KiB) Viewed 4200 times
Mark Draper

User avatar
AdrianBruce
Megastar
Posts: 1961
Joined: 09 Aug 2003 21:02
Family Historian: V7
Location: South Cheshire
Contact:

Re: V7 PDF creation very slow, creating huge files

Post by AdrianBruce » 28 Jan 2021 11:52

Mark - thanks for this (from v6-land).

Do you have a tentative summary about the cause of the table related issue? Specifically do you think it's tables within tables that cause your problems? (As I understand it, the RTF pages appear to be laid out in tables so any user created table in text is a table within a table.)

Or is it when the user created tables are wider than the sheet of paper (for want of a better term)?
Adrian

User avatar
NickWalker
Megastar
Posts: 2401
Joined: 02 Jan 2004 17:39
Family Historian: V7
Location: Lancashire, UK
Contact:

Re: V7 PDF creation very slow, creating huge files

Post by NickWalker » 28 Jan 2021 12:02

FH7 rtf doesn't allow tables in tables (in the rich text source, notes, etc).
Nick Walker
Ancestral Sources Developer

https://fhug.org.uk/kb/kb-article/ancestral-sources/

User avatar
tatewise
Megastar
Posts: 27078
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: V7 PDF creation very slow, creating huge files

Post by tatewise » 28 Jan 2021 12:13

It is the saved RTF files that use tables to format the Report sections (and has always done so) but now a rich text table sits within those RTF file tables, i.e. table within table.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
AdrianBruce
Megastar
Posts: 1961
Joined: 09 Aug 2003 21:02
Family Historian: V7
Location: South Cheshire
Contact:

Re: V7 PDF creation very slow, creating huge files

Post by AdrianBruce » 28 Jan 2021 12:34

tatewise wrote:
28 Jan 2021 12:13
It is the saved RTF files that use tables to format the Report sections (and has always done so) but now a rich text table sits within those RTF file tables, i.e. table within table.
Thanks Mike - that's what I was trying to get at, though I hadn't got it as precisely defined as you just did.

So the question then is whether a (user-created) rich text table within an RTF table in, or destined for, an RTF file is a problem automatically? (bearing in mind, so far as I can see in v6, that not all text in an RTF file is laid out in an RTF table)

Or whether the issue is when the (user-created) rich text table is "wider than the page"? Mark certainly seems to imply that this causes a problem but I wasn't sure about the user-created rich-text table within an RTF table...
Adrian

User avatar
Mark1834
Megastar
Posts: 2146
Joined: 27 Oct 2017 19:33
Family Historian: V7
Location: South Cheshire, UK

Re: V7 PDF creation very slow, creating huge files

Post by Mark1834 » 28 Jan 2021 13:11

Simple "tables within tables" appear to be ok, as per the screen grab below. My conclusion (and what I reported to CP) is that the overspill kills output, not the embedded tables. I've converted all my census sources back to plain text, but will keep simple tables for this type of two column output.
Capture.PNG
Capture.PNG (12.89 KiB) Viewed 4158 times
Mark Draper

User avatar
tatewise
Megastar
Posts: 27078
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: V7 PDF creation very slow, creating huge files

Post by tatewise » 28 Jan 2021 13:12

The layout of ISR and FGS reports were very different for me using both Microsoft Print to PDF and Nitro PDF Creator.
The fact details were in an odd bullet list format and the media image resolution was poor.
I can attach PDF files if interested.
However, they are better than nothing and are searchable text.

I was replying to Helen's posting suggesting to Save As HTML and in browser to print to PDF.
But her posting has vanished, maybe because Mark posted at the same time?
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
Mark1834
Megastar
Posts: 2146
Joined: 27 Oct 2017 19:33
Family Historian: V7
Location: South Cheshire, UK

Re: V7 PDF creation very slow, creating huge files

Post by Mark1834 » 28 Jan 2021 13:25

Yes, I've just tested HTML output in both Chrome and Edge, and layout is corrupted. I suspect Helen has tested it as well ;)

Now that I've got rid of wide tables, my favourite option at the moment is to go via RTF. That gives good opportunity to tidy up some of the formatting (untidy page breaks etc), but the trade-off is the usual difficulty in Word of controlling the precise page layout when you have multiple images. I suspect that the preferred option will depend on what type of report output you have, and how complex it is.
Mark Draper

User avatar
ColeValleyGirl
Megastar
Posts: 4853
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Re: V7 PDF creation very slow, creating huge files

Post by ColeValleyGirl » 28 Jan 2021 13:27

Mark, the only problem I had was that there weren't any page breaks (hence deleting the suggestion). No corruption.

User avatar
NickWalker
Megastar
Posts: 2401
Joined: 02 Jan 2004 17:39
Family Historian: V7
Location: Lancashire, UK
Contact:

Re: V7 PDF creation very slow, creating huge files

Post by NickWalker » 28 Jan 2021 13:35

Personally I think that as FH 7 has only been out for less than 2 months, I'm going to assume that at some point CP will resolve these issues with reports and tables being too wide, etc. and so I'm going to carry on using tables and rich text. If a long period goes by without a solution (which I think/hope is unlikely) then I'll reassess that and it would be relatively easy to create a program/plugin to convert the rich text data back to plain text again if need be. I don't have any desperate need to produce any reports currently.
Nick Walker
Ancestral Sources Developer

https://fhug.org.uk/kb/kb-article/ancestral-sources/

User avatar
AdrianBruce
Megastar
Posts: 1961
Joined: 09 Aug 2003 21:02
Family Historian: V7
Location: South Cheshire
Contact:

Re: V7 PDF creation very slow, creating huge files

Post by AdrianBruce » 28 Jan 2021 14:15

Mark1834 wrote:
28 Jan 2021 13:11
.... My conclusion (and what I reported to CP) is that the overspill kills output, not the embedded tables. ...
Thanks Mark

That warns me not to go down the route of over-wide tables (out of gauge as we said on the railways). I know that I'm quite liable to enter data without really thinking how to get it out - my typical failing with Excel...

I did hope that tables of a couple of columns would be ok, as it appears to be.
Adrian

User avatar
tatewise
Megastar
Posts: 27078
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: V7 PDF creation very slow, creating huge files

Post by tatewise » 28 Jan 2021 14:38

Hele, my PDF had perfectly good page breaks. It was other formatting that was the problem.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
Mark1834
Megastar
Posts: 2146
Joined: 27 Oct 2017 19:33
Family Historian: V7
Location: South Cheshire, UK

Re: V7 PDF creation very slow, creating huge files

Post by Mark1834 » 28 Jan 2021 14:42

Even when/if the flawed report driver is fixed, it doesn’t address the more fundamental question of how we get a wide table to properly display in an A4 portrait report, but that’s a topic for another day - bit like getting GWR to run on standard gauge.. ;)
Mark Draper

User avatar
ColeValleyGirl
Megastar
Posts: 4853
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Re: V7 PDF creation very slow, creating huge files

Post by ColeValleyGirl » 28 Jan 2021 14:43

tatewise wrote:
28 Jan 2021 14:38
Hele, my PDF had perfectly good page breaks. It was other formatting that was the problem.
Was this a PDF created by printing from an HTML file? For me, that was the only problem. (Fonts might have been amiss, but nothing I couldn't solve with css.) However, the lack of page breaks was a show stopper.

User avatar
tatewise
Megastar
Posts: 27078
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: V7 PDF creation very slow, creating huge files

Post by tatewise » 28 Jan 2021 14:55

I used the FH Save Report As... > Web Page (HTML)... and agreed for it to open in my default browser (latest Firefox).
Then in Firefox, used File > Print... and in Select Printer chose Microsoft Print to PDF, etc, and hit Print button.
See attachments that have several page breaks, but the bullet lists corrupt the layout.
Attachments
TestPDF.pdf
(442.78 KiB) Downloaded 98 times
Family of Ian Stephen MUNRO and Charlotte CARRINGTON.pdf
(62.38 KiB) Downloaded 97 times
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
ColeValleyGirl
Megastar
Posts: 4853
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Re: V7 PDF creation very slow, creating huge files

Post by ColeValleyGirl » 28 Jan 2021 14:59

Mike, no doubt the formatting issues depend on the reports you chose -- I was looking at a Narrative report.

The page break issues I found only materialised when you generate a report for multiple individuals.

As we're both agreed for different reasons that it's not a viable workaround, let us not waste any more time on it.

User avatar
tatewise
Megastar
Posts: 27078
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: V7 PDF creation very slow, creating huge files

Post by tatewise » 28 Jan 2021 16:34

I disagree, for Narrative reports, it works quite well, and it is in searchable text format.
It is far better than the blank pages I get that FH produces when saved directly to PDF.

The missing page breaks between separate reports is a bug in Save Report As > HTML that exists in FH V6 too.
The page breaks within one say Descendant by Generation report are present and correct.
In FH V7 it also omits the Bibliography, so that is a new bug.

If the Chrome browser is used then the citation superscripts are active hyperlinks in the PDF file.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
AdrianBruce
Megastar
Posts: 1961
Joined: 09 Aug 2003 21:02
Family Historian: V7
Location: South Cheshire
Contact:

Re: V7 PDF creation very slow, creating huge files

Post by AdrianBruce » 28 Jan 2021 16:37

Mark1834 wrote:
28 Jan 2021 14:42
... it doesn’t address the more fundamental question of how we get a wide table to properly display in an A4 portrait report, but that’s a topic for another day ...
Definitely another day - but I would like to squeeze in this thought - that we first need to think what an over-wide table should look like in such a report. I tried an over-wide table in MS Word and the excess stuff just vanishes off the side of the "paper". The only thing that I can say at the moment is that FH should fail gracefully, if fail it does.
Adrian

User avatar
ColeValleyGirl
Megastar
Posts: 4853
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Re: V7 PDF creation very slow, creating huge files

Post by ColeValleyGirl » 28 Jan 2021 16:42

I disagree, for Narrative reports, it works quite well, and it is in searchable text format.
No, we agree -- I was saying Narrative reports don't suffer the formatting problems, only the page break issue.

And the page break issue is within a single report, not between separate reports. Printing from the HTML version (because HTML doesn't have page breaks) results in multiple individuals in the resultant PDF appearing on the same page, when they didn't in the original report. See attached.
Attachments
html to pdf.pdf
(120.91 KiB) Downloaded 57 times

avatar
shoshk
Famous
Posts: 242
Joined: 13 May 2015 16:28
Family Historian: V7
Location: Mitzpe Jericho, Israel

Re: V7 PDF creation very slow, creating huge files

Post by shoshk » 28 Jan 2021 19:05

Helen, you may be able to take care of the page break issue via css.
Shosh Kalson

User avatar
ColeValleyGirl
Megastar
Posts: 4853
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Re: V7 PDF creation very slow, creating huge files

Post by ColeValleyGirl » 28 Jan 2021 19:27

Shosh, I know, but it means it isn't a viable workaround for many people.

Plus, I don't need the workaround -- I can print to PDF from FH without difficulty, and use NitroPDF to convert the image to searchable text.

User avatar
Mark1834
Megastar
Posts: 2146
Joined: 27 Oct 2017 19:33
Family Historian: V7
Location: South Cheshire, UK

Re: V7 PDF creation very slow, creating huge files

Post by Mark1834 » 31 Jan 2021 23:52

A common report I prepare is an extended Family Group Sheet, consisting of FGS reports for a principal family and all their children (so anything from one to around a dozen separate reports as one document).

I've been experimenting with saving this report as an RTF file, then using a VBA macro in Word to format it exactly as I want (margins, position of header and footer, font, paragraph spacing, stopping all table rows from splitting between pages, etc). It works really well, and it becomes a simple matter to scroll through the formatted report and quickly tidy up any odd page breaks. Saving it as a PDF from Word typically gives a file of only 500-600 kB for over 30 pages, including a lot of thumbnail source images.

The final document looks better than the PDF produced directly from FH, so I may carry on doing them this way even when the PDF routine is fixed.
Mark Draper

User avatar
Mark1834
Megastar
Posts: 2146
Joined: 27 Oct 2017 19:33
Family Historian: V7
Location: South Cheshire, UK

Re: V7 PDF creation very slow, creating huge files

Post by Mark1834 » 12 Mar 2021 12:50

Curious observation time - I'm sure I checked this when I first installed version 7.0.2 to see if it had been fixed, and it was just as before, with report PDF files coming out as images. I've just tried it again, and every report type that I've tried, with any PDF printer, is now completely blank. Charts and diagrams are still printing normally to PDF, with fully selectable and searchable text.

Not a problem at the moment, as I'm happy with going via RTF for the reports I produce, but just a little odd.
Mark Draper

User avatar
tatewise
Megastar
Posts: 27078
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: V7 PDF creation very slow, creating huge files

Post by tatewise » 12 Mar 2021 13:20

Mark, are they 'completely' blank, or just have headers and footers, which is what I've had all along?
Maybe it depends on some Microsoft Windows RTF library confabulation?
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
Mark1834
Megastar
Posts: 2146
Joined: 27 Oct 2017 19:33
Family Historian: V7
Location: South Cheshire, UK

Re: V7 PDF creation very slow, creating huge files

Post by Mark1834 » 12 Mar 2021 14:06

I’ve also had just headers and footers sometimes, but these are completely blank!
Mark Draper

Post Reply