Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

New Forums: Nexus Player | Nexus 9
test: Reply
 
LinkBack Thread Tools
Old December 1st, 2010, 10:13 AM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Dec 2010
Location: Perth. Australia
Posts: 1
 
Device(s): Milestone
Carrier: Not Provided

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

Advertisements
SkyFox is offline  
Reply With Quote
sponsored links
Reply
Tags
converting, dev, java, pdf


Go Back   Android Forums > Android Development > Application Development
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



All times are GMT -5. The time now is 06:25 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.