Erica Sadun


Erica Sadun. iPhone. iPod touch. Macintosh. and More.

PDF Viewer

Erica Sadun | 10:39 am | October 14, 2007 | Applications, Software, iPod touch, iPhone

I put together my PDF viewer a few weeks ago and then more or less abandoned it in the looming threat of 1.1.1. The other day, NerveGas said he was looking for a PDF viewer and I mentioned mine was available but incomplete. He has created an open source distribution over at Nate’s site and is updating and maintaining it for now.

The viewer supports landscape and portrait mode, scrolling and zooming.

Put your PDF media into /var/root/Media/PDF.

2 Comments »

Comment by sappleq | October 15, 2007 | 2:24 am

Hi !!

I am very interested in a PDF viewer for the iPhone
and encouraged that you are both putting effort into
this app. Thank you.

I’m a research scientist and download and read
color and b/w PDF documents daily from a variety
of publishers/journals. The ability to scroll and
zoom-in/out on figures and columns of text would be
quite usefull. Additionally, a PDF reader able to
easily open files dropped in a accessable data folder would
save a lot of strain on my shoulders from all the papers I print out, staple, highlight and make notes on, and lug around on my daily commutes reading them for the latest progress in my field as well as preparing information for
teaching.

I would use this reader daily on my long commutes
and hope that it may have the capability of retaining
small attached comments/notes/highlights that could
be attached/linked to the document somehow.
This would be an improvement on Adobe Reader or “Preview”. This of course would run into problems of “protected” PDF files however, in my naive
view, I hope that this improvement might be addressed.

Best of luck with your new site and the projects
you undertake.

Sincerely,

sappleq // steve@applequist.se


Comment by peeInMyPantz | January 9, 2008 | 11:00 pm

Hi,
I took a look at the pdfviewer source, and there’s this function that rescale the document

—————————
- (void)gestureEnded:(struct __GSEvent *)event {
if (m_webView)
[ m_webView redrawScaledDocument ];
}
—————————-
if there an equivalent version for images?

I found some code given by you to kdbdallas to zoom images , which is below. however, on zooming, the content holder doesn’t scale, so some part of the images cannot be viewed anymore even when i try to scroll it.

also the images are not scaled with the contact point as the centre of scaling. instead, the top left corner is the point of scaling. hope you can help out with this. there’s a discussion going on about this at
http://iphonedevdocs.com/forum/showthread.php?p=878&posted=1#post878

—————————-
id scroller = [[UIScroller alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 320.0f, 480.0f)];
[scroller setAllowsFourWayRubberBanding:YES];
[scroller setAdjustForContentSizeChange:YES];
[scroller setThumbDetectionEnabled:YES];

struct CGRect zrect;
float zres = 3.0f;
zrect = CGRectMake(0.0f, 0.0f, 320.0f * zres, 480.0f * zres);

[scroller setContentSize:zrect.size];

img = [[UIImage imageAtPath:path] retain];
[imgView initWithImage:img];
[imgView setEnabledGestures:YES];
[imgView setGestureDelegate: self];

int i;

for (i = 0; i


Comments RSS.

Leave a comment

You must be logged in to post a comment.

Previous and Next Entry

« plutil | Erica Utilities and more »

wordpress | sheepdip design by mahud © 2007