Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Posts: 132
Registered: ‎11-06-2012
My Device: BlackBerry Passport

How to convert txt file to doc or PDF in cascade

Hi everyone,


Like the subject describe, I have a txt file how I can convert it to DOC and PDF file. Can I do it with invoke?


Thanks for your help.

Posts: 313
Registered: ‎05-31-2010
My Device: Alpha 10, Bold 9900, Storm 9530, Tour 9630, Curve 9320, Curve 8900
My Carrier: All

Re: How to convert txt file to doc or PDF in cascade

I don't think that it is possible to be implemented by Cascade or Native right now. Can you program a web service to do it and transfer back?

Good good study, day day up
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: How to convert txt file to doc or PDF in cascade

You can do this in AIR. Create a simple AIR app that is an invoke target for the text to have it save it to a PDF. BBW is suppose to support invoke targets at some point, so if the user does not have it installed, BBW will prompt them. Until BBW has it, you can query the targets and if it is not installed, re-direct the user to BBW to download the app.

May as well make the invocation public so other apps might be able to use it.
Posts: 648
Registered: ‎09-26-2012
My Device: Limited Edition Z10, Playbook 16GB/32GB, Dev Alpha A/B/C
My Carrier: Mobile Vikings

Re: How to convert txt file to doc or PDF in cascade

I would personally try to use an webservice, as mentioned by javayoung.

But if you really want to do it on the device (because of large files, no internet access..) then I would also use the solution from jtegen.
Maybe there are some apps out there which already provide this feature, so maybe have a look for them first.

If not, I've read a post about it, where it was explained how you can do this, so just do an internet search for more info.

A like is always appreciated,
but a nomination for BB Elite even more :-)
You can also contact me on Twitter: @ndsmyter