These are chat archives for jsreport/jsreport

8th
Dec 2015
BJR Matos
@bjrmatos
Dec 08 2015 19:39
Captura de pantalla 2015-12-08 a las 2.38.46 p.m..png
@pofider still not working, are you sure that it is working for you? if i set web page width, web page height and printDelay, none of these values are being sending in the request
Jan Blaha
@pofider
Dec 08 2015 19:40
I will check now ones more
btw the electron pdf rendering somehow doesn't work for me, it just get stuck, anything particular I should check?
I am on windows
you run it in development NODE_ENV right?
BJR Matos
@bjrmatos
Dec 08 2015 19:44
currently i'm not setting NODE_ENV.. just running with node server.js, is it necessary?
mmm the only thing required to electron pdf recipe to work is install electron
0.35.x
do you have it installed in the directory of your app?
Jan Blaha
@pofider
Dec 08 2015 19:48
screen.png
this is what I get from my current working environment
and clone of your jsreport-electron
I will try to check what else could be wrong
BJR Matos
@bjrmatos
Dec 08 2015 19:52
what? that is really weird
currently, i'm testing the jsreport-electron-pdf using npm link
to simulate a npm install
i'm going to try just cloning the report, like you do
Jan Blaha
@pofider
Dec 08 2015 19:57
I will try it on the normal jsreport install
BJR Matos
@bjrmatos
Dec 08 2015 20:06
not working with git clone.. i'm going to die xD
Jan Blaha
@pofider
Dec 08 2015 20:09
strange, really
did you try to clear browser cache, right?
BJR Matos
@bjrmatos
Dec 08 2015 20:12
yes
just for the record.. i'm testing in a folder called jsreport-playground, npm install jsreport electron-prebuilt@0.35.4, node node_modules/jsreport --init, node server.js
Jan Blaha
@pofider
Dec 08 2015 20:13
and also npm link jsreport-electron-pdf right?
BJR Matos
@bjrmatos
Dec 08 2015 20:13
yes
and with git clone .... , npm run prepublish
Jan Blaha
@pofider
Dec 08 2015 20:14
somehow npm link jsreport-electron-pdf doesn't create lib folder, just src
ah ok, I need to run prepublish
BJR Matos
@bjrmatos
Dec 08 2015 20:15
yes, to compile es6 -> es5 and create the lib folder
Jan Blaha
@pofider
Dec 08 2015 20:19
I am not able to make prepublish scripts running, give me a minute
BJR Matos
@bjrmatos
Dec 08 2015 20:20
do you run npm install in jsreport-electron-pdf folder first?
Jan Blaha
@pofider
Dec 08 2015 20:21
yes, but I guess It didn't install dev packages
for some reason this is default behavior for my windows console, now it is working after forcing NODE_ENV
BJR Matos
@bjrmatos
Dec 08 2015 20:23
maybe you have the npm flag --production globally
Jan Blaha
@pofider
Dec 08 2015 20:24
I will check that later, thanks for tip
OK, so now I have the same behavior, not sending width, GREAT :)
I will investigate
BJR Matos
@bjrmatos
Dec 08 2015 20:25
uff.. i'm not crazy D:
Jan Blaha
@pofider
Dec 08 2015 20:25
however still not getting any pdf
this is the output I got originally
BJR Matos
@bjrmatos
Dec 08 2015 20:26
long time since i code in marionettejs..
Jan Blaha
@pofider
Dec 08 2015 20:26
2015-12-08T19:55:07.989Z - info: Rendering template {shortid:E1xM5b1wVe, recipe:electron-pdf,engine:handlebars}
Tue, 08 Dec 2015 19:55:08 GMT electron-html-to:conversion generating new conversion task..
Tue, 08 Dec 2015 19:55:08 GMT electron-html-to:conversion conversion task id: ff82a0c0-cead-4f02-84b2-62df98a99a96
Tue, 08 Dec 2015 19:55:08 GMT electron-html-to:conversion creating temporal html files in C:\Users\JANBLA~1\AppData\Local\Temp\jsreport-temp..
Tue, 08 Dec 2015 19:55:08 GMT electron-html-to:conversion creating temporal html file [type: html] in C:\Users\JANBLA~1\AppData\Local\Temp\jsreport-temp\ff82a0c0-cead-4f02-84b2-62df98a99a96html.html..
Tue, 08 Dec 2015 19:55:08 GMT electron-html-to:conversion starting conversion task [strategy:dedicated-process][task id:ff82a0c0-cead-4f02-84b2-62df98a99a96] with options: { browserWindow: { width: 600, height: 600, webPreferences: { javascript: true } },
waitForJSVarName: 'JSREPORT_READY_TO_START',
delay: undefined,
waitForJS: false,
converterPath: 'f:\work\jsreport\jsreport\node_modules\jsreport-electron-pdf\node_modules\electron-html-to\lib\converters\pdf.js',
pdf:
{ marginsType: 0,
pageSize: 'A4',
printBackground: true,
landscape: false },
htmlFile: 'C:\Users\JANBLA~1\AppData\Local\Temp\jsreport-temp\ff82a0c0-cead-4f02-84b2-62df98a99a96html.html',
url: 'file:///electron-html-to/C%3A%5CUsers%5CJANBLA~1%5CAppData%5CLocal%5CTemp%5Cjsreport-temp%5Cff82a0c0-cead-4f02-84b2-62df98a99a96html.html',
chromeCommandLineSwitches: { 'ignore-certificate-errors': null },
output:
{ tmpDir: 'C:\Users\JANBLA~1\AppData\Local\Temp\jsreport-temp',
id: 'ff82a0c0-cead-4f02-84b2-62df98a99a96' } }
Tue, 08 Dec 2015 19:55:08 GMT electron-html-to:dedicated-process-strategy saving settings in temporal file..
Tue, 08 Dec 2015 19:55:08 GMT electron-html-to:dedicated-process-strategy searching electron executable path..
Tue, 08 Dec 2015 19:55:08 GMT electron-html-to:dedicated-process-strategy electron executable path returned from $PATH: c:\Users\jan blaha\AppData\Roaming\npm\electron.CMD
Tue, 08 Dec 2015 19:55:08 GMT electron-html-to:dedicated-process-strategy spawing new electron process..
Tue, 08 Dec 2015 19:55:08 GMT electron-html-to:dedicated-process-strategy processing conversion..
and then it stucks
BJR Matos
@bjrmatos
Dec 08 2015 20:31
mmm
the version of electron that you have installed is 0.35?
is located here c:\Users\jan blaha\AppData\Roaming\npm\electron.CMD
Jan Blaha
@pofider
Dec 08 2015 20:32
I have done npm install electron-prebuilt -g
I will check if its there
XD
i know what is happening...
can you please
uninstall
electron-prebuilt globally
and install it locally in your folder?
Jan Blaha
@pofider
Dec 08 2015 20:34
ok
btw if you get from git latest https://github.com/jsreport/jsreport-templates , you get the width and height working, there is change in logic making the rendering request which is probably fixing it for you, but I will review it afterwards
BJR Matos
@bjrmatos
Dec 08 2015 20:39
ok, i will test with lastest jsreport-templates
lets see how it goes
it works with latest jsreport-templates!
Jan Blaha
@pofider
Dec 08 2015 20:45
and I see PDF FROM ELECTRON!!!! it was like you said, I installed the electron-prebuilt under jsreport-electron-pdf and it wroks now
I want to see what it can do now, thank you
BJR Matos
@bjrmatos
Dec 08 2015 20:46
great news!
if you can't find any errors
jsreport-electron-pdf is done
currently it doesnt support header and footer in pdf
because a limitation of electron.. but i will open an issue in electorn asking for support
Jan Blaha
@pofider
Dec 08 2015 20:49
ok
BJR Matos
@bjrmatos
Dec 08 2015 20:49
by the way electron-pdf is faster than phantom-pdf (at least in my machine) :smile:
Jan Blaha
@pofider
Dec 08 2015 20:49
wow, it seems to be fixing common problem with overlapping table headers, great, now I can forward all that annoyng emails to jsreport-electron-pdf :)
I will put it to next release of jsreportonline and lets see
BJR Matos
@bjrmatos
Dec 08 2015 20:51
awesome!!!!
other thing to mention..
Jan Blaha
@pofider
Dec 08 2015 20:52
I guess you can then publish to npm and I will make a post on jsreport blog, so it gets some attention
after the next jsreport with patched jsreport-templates is published
BJR Matos
@bjrmatos
Dec 08 2015 20:52
yes i will publish it in npm
if you try to use electorn in linux
you will need to do
some things, since linux doesn't have a UI and electron is not a 100% headless process
there are some instructions there using xvfb in ubuntu and centos
but I have not tried
when i can find a setup working in linux i will add it in jsreport-electron-pdf README
Jan Blaha
@pofider
Dec 08 2015 20:56
ok, jsreportonline currently runs on windows, so it should work fine
BJR Matos
@bjrmatos
Dec 08 2015 20:57
and thnk you.. develop jsreport-electron-pdf has been really cool!
next goal: jsreport UI Designer :smiley:
Jan Blaha
@pofider
Dec 08 2015 20:59
that will be killing feature
than we get more flexibility than jasperreports and the same (or better) user friendly designer
BJR Matos
@bjrmatos
Dec 08 2015 21:02
yes! lets do it!
by the way.. it will be cool to add
gifs in all repositories of extensions
showing a demo of jsreport :D
Jan Blaha
@pofider
Dec 08 2015 21:04
yes true, I like it very much
even the jsreport.net should have some kind of a gif there
but I am waiting for the designer there :)
BJR Matos
@bjrmatos
Dec 08 2015 21:06
:thumbsup:
Jan Blaha
@pofider
Dec 08 2015 21:06
I will make a note with gifs to my next tasks
BJR Matos
@bjrmatos
Dec 08 2015 21:07
maybe in the jsreport repository you could add your screencast, to show all the power that jsreport have
Jan Blaha
@pofider
Dec 08 2015 21:07
thanks, good idea as well
BJR Matos
@bjrmatos
Dec 08 2015 21:07
in extensions a gif will be enough
:thumbsup:
Jan Blaha
@pofider
Dec 08 2015 21:08
that will be nice work over Christmas
BJR Matos
@bjrmatos
Dec 08 2015 21:09
:smile:
it is cross-platform
well, Windows and OSX
Jan Blaha
@pofider
Dec 08 2015 21:10
yes, I already have it install I see, so I guess I used it already
BJR Matos
@bjrmatos
Dec 08 2015 21:18
cool
Jan Blaha
@pofider
Dec 08 2015 21:22
I go offline now, almost night here, see you....
BJR Matos
@bjrmatos
Dec 08 2015 21:28
thnks for your time! see you