Re: PDF Viewer

1,470 views
Skip to first unread message

Vox Teneo

unread,
Jun 13, 2012, 3:52:45 PM6/13/12
to phon...@googlegroups.com

Patrick Logé

unread,
Jun 14, 2012, 7:56:26 AM6/14/12
to phon...@googlegroups.com
Oops indeed

At first, the developer used pathForResource.
With this it seems I had to include the PDF as a resource in the project.

The app we make downloads PDF online and store them in Documents

So I putted a doc in Documents manually and test the past hardcoded

Now I'm including the plugin in our other project with this behavior




On 14 Jun 2012, at 12:20, Yih Puoh Chua wrote:

hi. i download your zip
i have hard time to make it work on iOS simulator.
where should the PDF be stored? tried for whole day still no luck.
And i read for device and simulator path are different.
simulator have to add %20% white space? is it true?

--
You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com

Alexandru Corotchi

unread,
Jan 21, 2013, 3:43:33 PM1/21/13
to phon...@googlegroups.com
Hi guys, 

Has someone got it working with newer version of PhoneGap, for ex: 2.3.0   

I really appreciate if someone can show me and example, or the .zip of the project.

Thanks !!!!!



On Monday, 11 June 2012 04:12:56 UTC-4, Patrick Logé wrote:
Hi,

Does anyone already worked on a phonegap plugin using http://www.vfr.org PDF viewer ?
I've it working as a plugin but I need the "Done" button to close the modal and send a local PDF as a parameter.

My plugin is in attach, if someone could take a look... 
I think it would be an awesome plugin to add to https://github.com/phonegap/phonegap-plugins/tree/master/iOS

Thanks in advance !

Have a nice day.

Alexandru Corotchi

unread,
Jan 23, 2013, 10:29:49 AM1/23/13
to phon...@googlegroups.com
Hi guys, I am getting and error when I try to integrate this plugin, related to document path.

2013-01-23 10:27:26.270 PDF[77210:c07] Multi-tasking -> Device: YES, App: YES

2013-01-23 10:27:26.384 PDF[77210:c07] [LOG] Received Event: deviceready

2013-01-23 10:27:27.988 PDF[77210:c07] View did load

2013-01-23 10:27:27.990 PDF[77210:c07] Opening Url : readme.pdf

2013-01-23 10:27:37.952 PDF[77210:c07] FILE : /Users/corotchi/Library/Application Support/iPhone Simulator/5.1/Applications/5AB99132-916A-4B92-8C96-0CF18043BADB/Documents/FileType.pdf

2013-01-23 10:27:37.952 PDF[77210:c07] FILE : /Users/corotchi/Library/Application Support/iPhone Simulator/5.1/Applications/5AB99132-916A-4B92-8C96-0CF18043BADB/Documents/FileType.pdf

Assertion failed: (range.location != NSNotFound), function +[ReaderDocument relativeFilePath:], file /Users/corotchi/Documents/XcodeProjects/PDFView/PDF/Plugins/PDFViewer/Sources/ReaderDocument.m, line 113.


Can someone help me to fix this issue, or maybe you had this issue before as well ?


Thanks in advice !!


Fabian Boulegue

unread,
Jan 23, 2013, 11:59:50 AM1/23/13
to phon...@googlegroups.com
Would you upload you project once so i could check it?
You want to use the pdf as full screen

Alec Taylor

unread,
Jan 23, 2013, 1:27:56 PM1/23/13
to phon...@googlegroups.com
Mozilla has a standards compliant PDF viewer which they open-sourced.

Might prove useful! - https://github.com/mozilla/pdf.js

On Thu, Jan 24, 2013 at 3:59 AM, Fabian Boulegue <fbou...@googlemail.com> wrote:
Would you upload you project once so i could check it?
You want to use the pdf as full screen

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
 
To compile in the cloud, check out build.phonegap.com
 
 

Reply all
Reply to author
Forward
0 new messages