09-07-2010 02:10 PM
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.
09-07-2010 02:46 PM
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.
09-07-2010 03:15 PM
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?
09-07-2010 04:26 PM
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.