-
Notifications
You must be signed in to change notification settings - Fork 313
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
Insert Page Break after title #141
Comments
You can achieve this using a custom latex template.
…________________________________
From: pteratech <[email protected]>
Sent: Wednesday, 17 July 2019 18:13
To: IzakMarais/reporter
Cc: Subscribed
Subject: [IzakMarais/reporter] Insert Page Break after title (#141)
Would like to insert page break after title so the first page is the title page and the graphs start displaying on the second page. Thanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
OK Looks like I will need to spend some time to learn how to do that.
Thanks
…On Wed, Jul 17, 2019 at 10:28 AM Izak Marais ***@***.***> wrote:
You can achieve this using a custom latex template.
________________________________
From: pteratech ***@***.***>
Sent: Wednesday, 17 July 2019 18:13
To: IzakMarais/reporter
Cc: Subscribed
Subject: [IzakMarais/reporter] Insert Page Break after title (#141)
Would like to insert page break after title so the first page is the title
page and the graphs start displaying on the second page. Thanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#141?email_source=notifications&email_token=AFMZURLDJFHXLHYUA743PJLP75JDFA5CNFSM4IESDJGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2FT5BQ#issuecomment-512441990>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFMZURIM4B2YWY72DKZXHFTP75JDFANCNFSM4IESDJGA>
.
--
Arthur Stephens
Senior Network Administrator
Ptera Inc.
PO Box 135
24001 E Mission Suite 50
Liberty Lake, WA 99019
509-927-7837
ptera.com |
facebook.com/PteraInc | twitter.com/Ptera
-----------------------------------------------------------------------------
"This message may contain confidential and/or propriety information, and is
intended for the person/entity to whom it was originally addressed.
Any use by others is strictly prohibited. Please note that any views or
opinions presented in this email are solely those of the author and are not
intended to represent those of the company."
|
I am assuming that it is ignoring my template and using a default. |
Yes, maybe the readme could be clearer. Reviewing it now, there are two things you need to do:1. Put your template in a directory `templates` relative to the location of the reporter binary. Alternatively you could use any directory you please and specify the directory path (abosolute or relative) as a command line parameter to the reporter. Use --help on the binary to see the specific commandline flag required. 2. Add a `template` query parameter to the HTTP request when you call the reporter to generate the pdf. This specifies the template filename (without extension) to use for that report. This is explained in the readme.
A detailed example is available here: #50
|
Here is my command.
It generates the PDF but not from the template in the templates directory.
I changed this line in the template to see if it is working. |
Oh maybe it won't work from the command line. |
This yeilds
If I remove the
it generates the PDF but not with the change I made. Sorry - I feel really dumb right now. |
I am sorry but it just ignores my templates= command - the results has the apikey removed.
|
After reading through the source code I can confirm that this is a bug. The command line mode feature is very new.
When passing multiple query parameters in a URL, you should have one
If successful, you would expect |
I am looking in syslog and grafana log and do not see this. How do I determine where the log file is? |
Let's first confirm that you see the expected message in the log. |
Ahh there's the catch. That is not from a log file. That is from my console screen when I run the command from the command line. I did a copy and paste of my console screen. Jul 22 08:30:41 zabbixcnr grafana-server[958]: t=2019-07-22T08:30:41-0700 lvl=info msg=Rendering logger=rendering path="d-solo/g08CgnSWz/?from=now-1d&height=500&panelId=6&theme=light&to=now&width=1000" Here is what is in grafana log t=2019-07-22T08:30:41-0700 lvl=info msg=Rendering logger=rendering path="d-solo/g08CgnSWz/?from=now-1d&height=500&panelId=6&theme=light&to=now&width=1000" Here is my console (APIKEY deleted)
|
OK, I think the new cmd_line mode option was confusing the issue here. Even when using the default web-server mode, the log files are still just sent to std out. If you run the service inside some service manager, like systemd, you should see all those same logs appearing in your journal that you saw when you ran from the commandline. Be that as it may, after #143 has been fixed, this should be easier for you using only the command line mode. See this test I did as an example: #145 (comment). |
You need to use the new v2.2.1 release I made yesterday. Or just pull from master and rebuild the reporter. |
OK now I get --- This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian) (preloaded format=pdflatex 2019.7.16) 29 JUL 2019 15:51 ! LaTeX Error: Missing \begin{document}. See the LaTeX manual or LaTeX Companion for explanation. l.1 / ! ==> Fatal error occurred, no output PDF file produced! I looked at Commercial and it the line in it |
Here is report.tex /* Licensed under the Apache License, Version 2.0 (the "License");
Unless required by applicable law or agreed to in writing, software package report const defaultTemplate = ` \graphicspath{ {images/} } |
Even this template yields the same error /* Licensed under the Apache License, Version 2.0 (the "License");
Unless required by applicable law or agreed to in writing, software package report const defaultTemplate = ` \begin{document} \end{document} |
Removed the following and now it works.
and the ` at the end |
Would like to insert page break after title so the first page is the title page and the graphs start displaying on the second page. Thanks
The text was updated successfully, but these errors were encountered: