Page 1 of 1

Is it possible to use another stack library in a web revlet?

Posted: Sun Oct 18, 2009 11:27 pm
by wdurden
I am specifically interested in using the QuartamPDF stack as follows... A main stack which is built to a web revlet needs to start using the qrtpdflib stack. What the revlet would attempt to do is read a text file from the users computer using answer file (which works fine from buttons that don't start using the lib after the security settings warning) and with data from that text file, create a pdf document that is written to the users computer from the revlet having used pdfcommands in the qrtpdflib.

I have been unsuccessful so far and am not sure whether it is actually possible to build the webapp so it can use the qrtpdflib. I have added it to the stackfiles at one point and tried adding it as an external file as well as a stab in the dark but I am obviously a bit at a loss about what should be done if anything can... Trying to build with either of those choices fails with error messages. Perhaps I need the qrtpdflib stack available on the web such as at an on-rev site and start using it with a full url to the stack on line?

Thanks for any guidance down the correct path... Just knowing it is possible to do so would help. My next step if no one here knows is to contact Jan directly... but I felt it may be a limitation of a revlet issue so wanted to check here first...

Wdurden

Posted: Tue Oct 20, 2009 9:26 pm
by malte
Hi,

just a shot in the dark, as I did not use the PDF lib yet.

Did you try granting all permissions to the revLet (as in grant them manually)?

libs in general do work in a revLet. I am successfully using animationEngine 3 here: http://derbrill.on-rev.com/ae3/ae3field.html

I do not think Jan is using an external with this lib, so I suspect it should be working.

All the best,

Malte

Posted: Tue Oct 20, 2009 9:46 pm
by wdurden
Thank you Malte for your reply. I sort of have got things working as follows. Uploaded the pdflib to server space on my on-rev site. Following the clues from a thread where I saw a comment by Jacque , I managed to start using the library from the server in the revlet. I think you may have posted in that thread that there were perhaps two separate issues interplaying... I did go the route of manually checking the security options while trying to build it into revlet but without complete success somewhere.

In any case, I can output the pdf final files generated with the revlet at least now with one annoyance, and that is the library splash screen that appears going this route... I just don't get to use this environment frequently enough to keep all of the limitations between two stacks each with substacks and how it all can be built to a single web application firmly in grasp.

I am now a day removed from the problem and won't get to revisit it for another two or so. Ideally I would like the library embedded in the revlet, but I am also not sure if it is a mainstack substack issue as the library has substacks ... Will look at your link shortly and will revisit and try and get fully satisfactory in a couple of days. If not, will email Jan directly..

Thank you very much for the response, it is encouraging that I will ultimately be able to accomplish what I want...

wdurden

Posted: Wed Oct 21, 2009 6:29 am
by Janschenkel
Hmm, I did a quick test an it looks like the revlet file format has no room for packaging additional stacks; so it looks like making the qrtpdflib library stack a substack of your project. The catch is that I put in an anti-tampering check so it may refuse to work at all if you make it a substack of another stack.
I'll do some more tests and see what can be done.

Jan Schenkel.