Welcome!

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

Java Development

Reply
Trusted Contributor
milanvishal
Posts: 201
Registered: ‎12-17-2010
My Device: Not Specified

PDF creator

Hello friends,

 

Is it possible to create PDF file?

After creating PDF file I have to mail it.

So is it possible to do the same ?

If any one has any idea let me know.

 

Regards,

Milan

 

Please use plain text.
Developer
peter_strange
Posts: 19,602
Registered: ‎07-14-2008
My Device: Not Specified

Re: PDF creator

Use the seatch facility to find out what other people have done with this sort of requirement. 

Please use plain text.
Regular Contributor
lunaplena
Posts: 205
Registered: ‎06-11-2013
My Device: Blackbery z10
My Carrier: RIM

Re: PDF creator

I suggest you to create a server side code to create and mail pdf? create a web serivce and send all the information to it. It will generate pdf file and mail to specified mail address, 

Please use plain text.
Trusted Contributor
milanvishal
Posts: 201
Registered: ‎12-17-2010
My Device: Not Specified

Re: PDF creator

Hi,

Thanks for your suggestion.

But in my application I do not have to use any webservice or any server.

Everything I have to do manage using blackberry device.

Thanks again for giving your important time.

 

Regards,

 

Please use plain text.
Regular Contributor
lunaplena
Posts: 205
Registered: ‎06-11-2013
My Device: Blackbery z10
My Carrier: RIM

Re: PDF creator

Oh In that case you have to use a PDF generator library. As Blackberry supports native c++ development you can compile any generic C++ PDF library for blackberry and you can use it on your phone.

Here are some good opensource  c++ PDF libraries you can try

http://libharu.sourceforge.net/

http://www.jagpdf.org/

Please use plain text.
Developer
peter_strange
Posts: 19,602
Registered: ‎07-14-2008
My Device: Not Specified

Re: PDF creator

lunaplena desn't seem to realise that this is the Java development forum for BB7 and earlier devices.  So C++ code is no good. 

 

Have you actually searched the forum as I suggested?  What options did you find?

Please use plain text.
Regular Contributor
lunaplena
Posts: 205
Registered: ‎06-11-2013
My Device: Blackbery z10
My Carrier: RIM

Re: PDF creator

Sorry it is my mistake.

I that case please try compiling generic java code to create pdf files for blackberry.

you can find some options here.

 

http://www.javacodegeeks.com/2013/05/java-pdf-libraries.html

Please use plain text.
Developer
peter_strange
Posts: 19,602
Registered: ‎07-14-2008
My Device: Not Specified

Re: PDF creator

[ Edited ]

I believe that code is J2SE not J2ME so will not run on the BlackBerry. 

 

This question has been asked before, rather than re-invent the wheel, I recommend searching using the Search box in the top right hand corner. 

Please use plain text.
Regular Contributor
lunaplena
Posts: 205
Registered: ‎06-11-2013
My Device: Blackbery z10
My Carrier: RIM

Re: PDF creator

Most of these are genereic code so there is not point of it being a j2se or j2me. At least give it a try and try, try to compile it for the mobile. I am sure you'll manage to compile on of them for your project. And it will be a perfact sultion if you managed to do it. 

Please use plain text.
Developer
peter_strange
Posts: 19,602
Registered: ‎07-14-2008
My Device: Not Specified

Re: PDF creator

"Most of these are genereic code so there is not point of it being a j2se or j2me"

 

Disagree.  All the ones I have checked require J2SE.  They won't work. 

Please use plain text.