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
Developer
trainee
Posts: 237
Registered: ‎05-07-2010
My Device: 8520

can anyone suggest me how to read pdf file?

hi

 

I just want to read pdf file in blackberry,can anyone suggest me how can i do it.

I want to do it at very basic level.I need some idea how can i achieve this.

As there are libraries but nothing works on blackberry.

___________________________________________________
please press kudos(star button on left) if this post is helpful to you
"Accept as solution" if your query has been resolved.@hitendra
_________________________________________________
Developer
rcmaniac25
Posts: 1,805
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.3253, Z10 (STL100-3)-10.3.1.997 Dev OS, Z30 (STA100-5)-10.3.1.997 Dev OS, Passport (SQW100-1)-10.3.0.1418, PlayBook (16GB)-2.1.0.1917

Re: can anyone suggest me how to read pdf file?

You mean like parse it? There are a veriety of libraries that exist to read/write/display PDFs, just not all of them are for BlackBerry so you might have some work.

 

If you want to start from scratch the general format is avalible online.

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Developer
trainee
Posts: 237
Registered: ‎05-07-2010
My Device: 8520

Re: can anyone suggest me how to read pdf file?

can u provide some link for libraries or general format.

i know the jpedal and sun's pdf renderer but both uses swing component so how can i use that with blackberry?

 

thankx

___________________________________________________
please press kudos(star button on left) if this post is helpful to you
"Accept as solution" if your query has been resolved.@hitendra
_________________________________________________
Developer
rcmaniac25
Posts: 1,805
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.3253, Z10 (STL100-3)-10.3.1.997 Dev OS, Z30 (STA100-5)-10.3.1.997 Dev OS, Passport (SQW100-1)-10.3.0.1418, PlayBook (16GB)-2.1.0.1917

Re: can anyone suggest me how to read pdf file?

It's funny you mention Sun's PDF Renderer because I started a port of it to BlackBerry (http://pdfrend4bb.codeplex.com/). The actual rendering system is not done yet and the color conversion is still being worked on (http://lcms4bb.codeplex.com/).

 

I do updates every Friday so as time goes on it will get done.

 

If you aren't trying to display a PDF (in other words you just want to get the text out of the PDF) you can modify the library so it skips any drawing operations and just get the text drawing ops (minus the draw part). The text operation is called PDFTextFormat and if you override doText you can get the text that it is supposed to display.

 

It would take some work and for all I know you want the actual renderer, not just the text.

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.