Headers / Footers on Reports

classic Classic list List threaded Threaded
18 messages Options
Reply | Threaded
Open this post in threaded view
|

Headers / Footers on Reports

Cheryl Viering
I’d like to have the current date, and page numbers, printed on my reports. Is there a way to do this?
thanks




_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org
Reply | Threaded
Open this post in threaded view
|

Re: Headers / Footers on Reports

Ron Johnson
On 11/07/2018 02:11 PM, Cheryl Viering wrote:
> I’d like to have the current date, and page numbers, printed on my reports. Is there a way to do this?

If the report doesn't offer the feature, then export it to "Open Document
Text", then open the file in LibreOffice and add the header/footer there.


--
Angular momentum makes the world go 'round.


_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org
Reply | Threaded
Open this post in threaded view
|

Re: Headers / Footers on Reports

Brad Rogers
In reply to this post by Cheryl Viering
On Wed, 7 Nov 2018 15:11:00 -0500
Cheryl Viering <[hidden email]> wrote:

Hello Cheryl,

>I’d like to have the current date, and page numbers, printed on my
>reports. Is there a way to do this?

Whilst it's possible that Gramps could be made to do that, it's the sort
of thing that is usually enabled in the print dialogue and/or printer
settings.  Look for things like header/footer settings.

--
 Regards  _
         / )           "The blindingly obvious is
        / _)rad        never immediately apparent"
To the ends of the earth, you look for sense in it
No Time To Be 21 - The Adverts


_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org

attachment0 (499 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Headers / Footers on Reports

adrian.davey
In reply to this post by Ron Johnson
And if you have created & imported an open doc template [.ott] with all
the formatting, text-flow, and header/footer text you want, when you
open the .odt you can simply load that template, and the entire report
is instantly reformatted and re-paged using your fonts, indents,
linespacings, headers/footers etc.

In LibreOffice v6, goto Styles > Load styles > select template, with
"Text", "Pages" and "Overwrite" selected.

You do still have to check [i.e. manually remove] some of the weird and
inconsistent gramps punctuation on headings, and manually insert some
page breaks.

For example, the headers/footers in some of my reports includes privacy
& copyright disclaimer text, and/or horizontal rules & the word "DRAFT"
and my email address, and/or incitement to send back comments and
corrections by a nominated date, as well as compilation date and
filename & pageno of pagecount.

Adrian Davey

On 2018-11-08 07:21, Ron Johnson wrote:
> On 11/07/2018 02:11 PM, Cheryl Viering wrote:
>> I’d like to have the current date, and page numbers, printed on my
>> reports. Is there a way to do this?
>
> If the report doesn't offer the feature, then export it to "Open
> Document Text", then open the file in LibreOffice and add the
> header/footer there.
>
>



_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org
Reply | Threaded
Open this post in threaded view
|

Re: Headers / Footers on Reports

yorkshire_lad
In reply to this post by Cheryl Viering
This is something I'd like too, but in pdf reports that are generated by gramps.
I find myself sending out information (e.g. complete individual report) as pdf (automatically generated from gramps), which is a really useful feature.  It would be really useful to have a footer (with e.g. name, date and/or time) in the pdf, and/or add something useful in the metadata (this helps identify the version and the author/creator).  I acknowledge it's possible to edit the pdf later, but having similar information (footers & metadata) to the above added automatically to the pdf would be really useful.  I know I could also print to a pdf pseudo-printer/creator and have the information added to the pdf there, but the pdf created that way just doesn't look at good/sharp as the pdf generated by gramps!


------------------------------

Message: 2
Date: Wed, 7 Nov 2018 15:11:00 -0500
From: Cheryl Viering <[hidden email]>
To: [hidden email]
Subject: [Gramps-users] Headers / Footers on Reports
Message-ID: <[hidden email]>
Content-Type: text/plain; charset=utf-8

I?d like to have the current date, and page numbers, printed on my reports. Is there a way to do this?
thanks




_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org
Reply | Threaded
Open this post in threaded view
|

Re: Headers / Footers on Reports

Peter Flynn
On 08/11/2018 10:30, Allan Gould wrote:

> This is something I'd like too, but in pdf reports that are generated by
> gramps.
> I find myself sending out information (e.g. complete individual report)
> as pdf (automatically generated from gramps), which is a really useful
> feature.  It would be really useful to have a footer (with e.g. name,
> date and/or time) in the pdf, and/or add something useful in the
> metadata (this helps identify the version and the author/creator).  I
> acknowledge it's possible to edit the pdf later, but having similar
> information (footers & metadata) to the above added automatically to the
> pdf would be really useful.  I know I could also print to a pdf
> pseudo-printer/creator and have the information added to the pdf there,
> but the pdf created that way just doesn't look at good/sharp as the pdf
> generated by gramps!

There are two other ways:

1. Convert the PDF to Postscript, run it through a sed script that adds
PS code to implement a footer, and then convert back to PDF. I have used
this method to add a client userid to a PDF for customisation, and
(using pdf2ps and ps2pdf) it did not interfere with the quality of the
result.

2. If you have LaTeX installed, you can just use the pdfpages package to
create a PDF with the original pages embedded and a footer and page
numbers (and indeed pretty much anything else you want) added into each
page.

///Peter


_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org
Reply | Threaded
Open this post in threaded view
|

TeX (was: Headers / Footers on Reports)

Janusz S. Bień
On Thu, Nov 08 2018 at 12:10 GMT, Peter Flynn wrote:

[...]

> 2. If you have LaTeX installed, you can just use the pdfpages package to
> create a PDF with the original pages embedded and a footer and page
> numbers (and indeed pretty much anything else you want) added into each
> page.

The LaTeX source is generated for the "classical" Tex engine. Is the
source generation user configurable? This is now almost zero priority
for me, but perhaps some time in the future I would try to adapt it to
XeTeX (which handles Unicode natively).

Best regards

Janusz

--
             ,  
Janusz S. Bien
emeryt (emeritus)
https://sites.google.com/view/jsbien


_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org
Reply | Threaded
Open this post in threaded view
|

Re: Headers / Footers on Reports

Cheryl Viering
In reply to this post by Cheryl Viering
Thank you all for the help. It’s good to know that it can be done, but it would be nicer if it could be done directly from Gramps.

On Nov 8, 2018, at 7:10 AM, [hidden email] wrote:

Re: Headers / Footers on Reports



_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org
Reply | Threaded
Open this post in threaded view
|

Re: Headers / Footers on Reports

Craig Treleaven
In reply to this post by Cheryl Viering
> On Nov 7, 2018, at 3:11 PM, Cheryl Viering <[hidden email]> wrote:
>
> I’d like to have the current date, and page numbers, printed on my reports. Is there a way to do this?
> thanks
>

I filed an enhancement request in 2013 asking for similar information.  Unfortunately, none of the developers have tackled the issue:

https://gramps-project.org/bugs/view.php?id=6316

Craig



_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org
Reply | Threaded
Open this post in threaded view
|

Re: Headers / Footers on Reports

Brad Rogers
In reply to this post by Cheryl Viering
On Thu, 8 Nov 2018 07:47:48 -0500
Cheryl Viering <[hidden email]> wrote:

Hello Cheryl,

>Thank you all for the help. It’s good to know that it can be done, but
>it would be nicer if it could be done directly from Gramps.

Personally, I disagree;  Gramps provides the bare bones, and that's
good.  Other software is far better suited to styles and formatting.  As
things are, I invariably have to check the output from Gramps because
weird things can happen; (sub)titles appearing on one page and the
relevant content on the next is one oddity that comes to mind.  Can't be
helped, but just looks 'wrong'.

Getting Gramps to add even more content isn't always a Good Thing™, IMO.

--
 Regards  _
         / )           "The blindingly obvious is
        / _)rad        never immediately apparent"
It belongs to them, let's give it back
Beds Are Burning - Midnight Oil


_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org

attachment0 (499 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Headers / Footers on Reports

J. Allen Crider-2
In reply to this post by Peter Flynn
You might also try generating the file in OpenDocument Text instead of
PDF.  You could then open it in LibreOffice, add the header and/or
footer, and export it as PDF from there.

Allen

On 11/8/18 6:10 AM, Peter Flynn wrote:

> On 08/11/2018 10:30, Allan Gould wrote:
>> This is something I'd like too, but in pdf reports that are generated by
>> gramps.
>> I find myself sending out information (e.g. complete individual report)
>> as pdf (automatically generated from gramps), which is a really useful
>> feature.  It would be really useful to have a footer (with e.g. name,
>> date and/or time) in the pdf, and/or add something useful in the
>> metadata (this helps identify the version and the author/creator).  I
>> acknowledge it's possible to edit the pdf later, but having similar
>> information (footers & metadata) to the above added automatically to the
>> pdf would be really useful.  I know I could also print to a pdf
>> pseudo-printer/creator and have the information added to the pdf there,
>> but the pdf created that way just doesn't look at good/sharp as the pdf
>> generated by gramps!
>
> There are two other ways:
>
> 1. Convert the PDF to Postscript, run it through a sed script that adds
> PS code to implement a footer, and then convert back to PDF. I have used
> this method to add a client userid to a PDF for customisation, and
> (using pdf2ps and ps2pdf) it did not interfere with the quality of the
> result.
>
> 2. If you have LaTeX installed, you can just use the pdfpages package to
> create a PDF with the original pages embedded and a footer and page
> numbers (and indeed pretty much anything else you want) added into each
> page.
>
> ///Peter
>
>
> _______________________________________________
> Gramps-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gramps-users
> https://gramps-project.org
>


_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org
Reply | Threaded
Open this post in threaded view
|

Re: Headers / Footers on Reports

Peter Flynn
In reply to this post by Craig Treleaven
On 08/11/2018 12:48, Craig Treleaven wrote:
>> On Nov 7, 2018, at 3:11 PM, Cheryl Viering <[hidden email]> wrote:
>>
>> I’d like to have the current date, and page numbers, printed on my
>> reports. Is there a way to do this?
>> thanks
>
> I filed an enhancement request in 2013 asking for similar
> information. Unfortunately, none of the developers have tackled the
> issue: https://gramps-project.org/bugs/view.php?id=6316

I'm lazy, so I use LaTeX as an API to create PDFs. I wrote this to add
footers to any PDF document. If you don't have LaTeX installed, use one
of the online services like Overleaf instead (www.overleaf.com):

1. Register (use any of email, Google, Twitter, ORCID, IEEE)
2. Create a blank project (give it a name)
3. Upload your PDF (third icon from left)
4. Delete the default document content in the Source panel
5. Copy and paste the code below
6. If you are in the USA, change 'a4' to 'letter' in line 9
7. Put your document title where it says on line 17
8. Put the name of your uploaded PDF file in curly braces on line 22
9. Click RECOMPILE
10. Click the Download icon (next to RECOMPILE) to download your PDF
11. Click the ⮥ (next to Menu) to leave LaTeX
12. Click Account and select Log Out.

///Peter

------------------------------8<-----------------------------------
\documentclass{report}
%
% addfooter.tex — LaTeX document to add footers to a PDF
%
% Peter Flynn, Silmaril Consultants, November 2018. Free to
% use under the terms of the LaTeX Project Public License 1.3
%
% In the USA, change 'a4'to 'letter' in the next line;
\usepackage[a4paper,margin=0mm,bottom=2cm,nohead]{geometry}
\usepackage{pdfpages,fancyhdr,lastpage,datetime}
\pagestyle{fancy}
\addtolength{\headheight}{\baselineskip}
\renewcommand{\headrulewidth}{0mm}
\lfoot{\qquad\today}
\cfoot{\thepage~of~\pageref{LastPage}}
\rfoot{% Put the short title of your report on the next line:
YOUR TITLE GOES HERE
  \qquad}
\begin{document}
\includepdf[pages=-,pagecommand={\pagestyle{fancy}}]
% Put the name of your PDF file in curly braces on the next line:
  {YOUR-PDF_FILE_NAME.pdf}
\end{document}
% Then process this with pdflatex twice and rename the
% output filename to something meaningful.
% Report errors and suggestions to <[hidden email]>
------------------------------8<-----------------------------------




_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org
Reply | Threaded
Open this post in threaded view
|

Re: TeX (was: Headers / Footers on Reports)

Peter Flynn
In reply to this post by Janusz S. Bień

On 08/11/2018 12:35, Janusz S. Bień wrote:

> On Thu, Nov 08 2018 at 12:10 GMT, Peter Flynn wrote:
>
> [...]
>
>> 2. If you have LaTeX installed, you can just use the pdfpages package to
>> create a PDF with the original pages embedded and a footer and page
>> numbers (and indeed pretty much anything else you want) added into each
>> page.
>
> The LaTeX source is generated for the "classical" Tex engine.

I suspect that hardly anyone uses that nowadays, although for a
generated report it would work fine — but lack easy configurability. I
believe most people would be using pdflatex or XeLaTeX these days.

> Is the source generation user configurable? This is now almost zero
> priority for me, but perhaps some time in the future I would try to
> adapt it to XeTeX (which handles Unicode natively).

That would be an excellent move. Xe[La]TeX can also use a much wider
choice of fonts (all your installed system (TTF/OTF) fonts as well as
Postscript Type 1 and Metafont (Type 3)).

///Peter



_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org
Reply | Threaded
Open this post in threaded view
|

Re: Headers / Footers on Reports

yorkshire_lad
In reply to this post by yorkshire_lad

Thanks for all the suggestions, which open up plenty of scope for doing a lot of things, but involve a certain amount of expertise and manual work each time e.g. a pdf report is created.
Maybe I'm being simplistic, but one might have thought that updating the gramps code that builds the pdf to include adding a little bit of metadata (date and time?) or a footer timestamp should not create too much overhead, and is fairly generic across platforms.


On 08/11/2018 10:30, Allan Gould wrote:

This is something I'd like too, but in pdf reports that are generated by gramps.
I find myself sending out information (e.g. complete individual report) as pdf (automatically generated from gramps), which is a really useful feature.  It would be really useful to have a footer (with e.g. name, date and/or time) in the pdf, and/or add something useful in the metadata (this helps identify the version and the author/creator).  I acknowledge it's possible to edit the pdf later, but having similar information (footers & metadata) to the above added automatically to the pdf would be really useful.  I know I could also print to a pdf pseudo-printer/creator and have the information added to the pdf there, but the pdf created that way just doesn't look at good/sharp as the pdf generated by gramps!


------------------------------

Message: 2
Date: Wed, 7 Nov 2018 15:11:00 -0500
From: Cheryl Viering <[hidden email]>
To: [hidden email]
Subject: [Gramps-users] Headers / Footers on Reports
Message-ID: <[hidden email]>
Content-Type: text/plain; charset=utf-8

I?d like to have the current date, and page numbers, printed on my reports. Is there a way to do this?
thanks




_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org
Reply | Threaded
Open this post in threaded view
|

Re: Headers / Footers on Reports

Peter Flynn
In reply to this post by Brad Rogers
On 08/11/2018 13:19, Brad Rogers wrote:

> On Thu, 8 Nov 2018 07:47:48 -0500
> Cheryl Viering <[hidden email]> wrote:
>
> Hello Cheryl,
>
>> Thank you all for the help. It’s good to know that it can be done, but
>> it would be nicer if it could be done directly from Gramps.
>
> Personally, I disagree;  Gramps provides the bare bones, and that's
> good.  Other software is far better suited to styles and formatting.  

I would tend to agree. No problem in using your own stylesheet.
Too much hard-wiring is usually wrong, so I think Gramps gets it about
right.

///Peter


_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org
Reply | Threaded
Open this post in threaded view
|

Frequency of digest mode e-mails (again) (with statistics)

yorkshire_lad
In reply to this post by yorkshire_lad
Did anything ever happen about tweaking the frequency of the digest posts on this list?
I know there were a few comments about increasing it, and someome posted the current thresholds.

I've recorded some statistics on the digest e-mails for 3 months (4 Sept to 4 Dec 2018).  The figures are at:
https://docs.google.com/spreadsheets/d/1iIy2cxbOdZcAcDr6IIPqmJ69bXXHxwFCXhZvZeDMKU4/edit?usp=sharing

Some salient points seem to be:
average digest e-mails per day: 2.5 (highest is 7 in one day! hardly a digest mode?)
average number of messages per digest e-mail: 3 (maximum: 6)
average size of digest e-mail: 10kb (max: 25kb)
(figures vary depending on whether the raw data is used or the daily summary data)

I'd like to suggest and ask that the thresholds are raised.  I would be happy with one daily digest, but if others would like more often than daily, please could the thresholds be raised: 7 digest e-mails in one day somewhat defeats the object of a digest mode?

There are very few days when there isn't a digest e-mail, and frequently there will be a digest e-mail at 12:06/13:06 (BST/GMT) if there hasn't previously been another digest e-mail.

Thanks
Allan (in a damp North Yorks, UK)

_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org
Reply | Threaded
Open this post in threaded view
|

Re: Frequency of digest mode e-mails (again) (with statistics)

Nick Hall
On 04/12/2018 23:32, Allan Gould wrote:
> Did anything ever happen about tweaking the frequency of the digest
> posts on this list?

I have just changed the settings so you will now get one digest per day
with no maximum size.

Let me know if this causes a problem. I can set a maximum size larger
than the previous value of 30Kb if necessary.

Regards,


Nick.




_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org
Reply | Threaded
Open this post in threaded view
|

Re: Frequency of digest mode e-mails (again) (with statistics)

yorkshire_lad
In reply to this post by yorkshire_lad
Thanks, Nick.  The once-a-day digest works a treat, especially it's started when there was a spike in traffic yesterday and today, so that's saved a flurry into my inbox.  Size is fine at the moment.
It's also actually really nice getting what is effectively a larger consolidation of several threads (similar to dipping into usenet/newsgroups: I'm showing my age now!) and reading a summary , rather than having to spread over time across digests/posts.
Thanks again: it works a treat for me!


On 05/12/2018 12:07, [hidden email] wrote:


Today's Topics:

   1. Re: Raw Data Forms (Nick Hall)
   2. Frequency of digest mode e-mails (again) (with statistics)
      (Allan Gould)
   3. Re: Frequency of digest mode e-mails (again) (with
      statistics) (Nick Hall)
   4. Custom event information in reports (Jon Schewe)
   5. Re: Raw Data Forms (Janusz S. =?utf-8?Q?Bie=C5=84?=)

------------------------------

Message: 3
Date: Tue, 4 Dec 2018 23:51:25 +0000
From: Nick Hall <[hidden email]>
To: [hidden email]
Subject: Re: [Gramps-users] Frequency of digest mode e-mails (again)
    (with statistics)
Message-ID: <[hidden email]>
Content-Type: text/plain; charset=utf-8; format=flowed

On 04/12/2018 23:32, Allan Gould wrote:
Did anything ever happen about tweaking the frequency of the digest
posts on this list?

I have just changed the settings so you will now get one digest per day
with no maximum size.

Let me know if this causes a problem. I can set a maximum size larger
than the previous value of 30Kb if necessary.

Regards,

Nick.



_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org