Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Development > Application Development

Application Development Dev Lounge for the Coder Folks



Reply
 
LinkBack Thread Tools
Old December 1st, 2010, 10:13 AM   #1 (permalink)
New Member
 
Join Date: Dec 2010
Location: Perth. Australia
Posts: 1
 
Device(s): Milestone
Thanks: 0
Thanked 0 Times in 0 Posts
Default Working with PDF's

Hey guy's, just wanted to know if anyone had any luck/experience with working with pdf files inside android. More specifically extracting usable data from them.

So far I've tried playing around with PDFbox java library,
get a nice set of warnings

warning: Ignoring InnerClasses attribute for an anonymous inner class that doesn't come with an associated EnclosingMethod attribute. (This class was probably produced by a broken compiler.)

even so manages to compile anyway,

however, when attempting to load the pdf file, such as

PDDocument pddDocument = PDDocument.load(url);

causes the Application to crash (Not responding, force close) , on both virtual and real devices, even when surrounded by try, catch statement.

not sure, but the code shouldn't hang the UI either, because that function is run under a new thread such as,

Thread tThread = new Thread(new Runnable()
{
public void run()

ExtractData();
}


seems to be some incompatibility between PDFbox and android, running this as just straight Java works fine.

is their any other way to working with PDF's within android?

... any light on the subject would be greatly appreciated,

Cheers

SkyFox is offline  
Reply With Quote
Sponsors
Reply

Bookmarks

Tags
converting, dev, java, pdf


Go Back   Android Forums > Android Development > Application Development User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
What can I use to view password protected PDF's? TheRH Android Applications 15 May 24th, 2012 10:22 PM
Kindle app can't read pdf's? jarablue EVO 4G - Support and Troubleshooting 2 November 20th, 2011 06:36 PM
Support E-mails and pdf's tholden712 Samsung Mesmerize 6 January 24th, 2011 10:38 AM
network data not working in application while it works great in opera, while wifi working everywhe!! harshal_1507 Epic 4G - Support and Troubleshooting 0 January 14th, 2011 01:32 PM
Support can't download pdf's from mail app CTS Samsung Moment 2 January 22nd, 2010 12:31 PM



All times are GMT -5. The time now is 11:35 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo