<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: PDF Viewer</title>
	<link>http://ericasadun.com/2007/10/pdf-viewer/</link>
	<description>Erica Sadun</description>
	<pubDate>Thu, 17 May 2012 04:44:13 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.2</generator>

	<item>
		<title>By: peeInMyPantz</title>
		<link>http://ericasadun.com/2007/10/pdf-viewer/#comment-1181</link>
		<author>peeInMyPantz</author>
		<pubDate>Thu, 10 Jan 2008 05:00:32 +0000</pubDate>
		<guid>http://ericasadun.com/2007/10/pdf-viewer/#comment-1181</guid>
		<description>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&#38;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 </description>
		<content:encoded><![CDATA[<p>Hi,<br />
I took a look at the pdfviewer source, and there&#8217;s this function that rescale the document</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
- (void)gestureEnded:(struct __GSEvent *)event {<br />
    if (m_webView)<br />
        [ m_webView redrawScaledDocument ];<br />
}<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
if there an equivalent version for images?</p>
<p>I found some code given by you to kdbdallas to zoom images , which is below. however, on zooming, the content holder doesn&#8217;t scale, so some part of the images cannot be viewed anymore even when i try to scroll it. </p>
<p>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&#8217;s a discussion going on about this at<br />
<a href="http://iphonedevdocs.com/forum/showthread.php?p=878&amp;posted=1#post878" rel="nofollow">http://iphonedevdocs.com/forum/showthread.php?p=878&amp;posted=1#post878</a></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
id scroller = [[UIScroller alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 320.0f, 480.0f)];<br />
[scroller setAllowsFourWayRubberBanding:YES];<br />
[scroller setAdjustForContentSizeChange:YES];<br />
[scroller setThumbDetectionEnabled:YES];</p>
<p>struct CGRect zrect;<br />
float zres = 3.0f;<br />
zrect = CGRectMake(0.0f, 0.0f, 320.0f * zres, 480.0f * zres);</p>
<p>[scroller setContentSize:zrect.size];</p>
<p>img = [[UIImage imageAtPath:path] retain];<br />
[imgView initWithImage:img];<br />
[imgView setEnabledGestures:YES];<br />
[imgView setGestureDelegate: self];</p>
<p>int i;</p>
<p>for (i = 0; i</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sappleq</title>
		<link>http://ericasadun.com/2007/10/pdf-viewer/#comment-6</link>
		<author>sappleq</author>
		<pubDate>Mon, 15 Oct 2007 08:24:38 +0000</pubDate>
		<guid>http://ericasadun.com/2007/10/pdf-viewer/#comment-6</guid>
		<description>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</description>
		<content:encoded><![CDATA[<p>Hi !!</p>
<p>I am very interested in a PDF viewer for the iPhone<br />
and encouraged that you are both putting effort into<br />
this app.  Thank you.</p>
<p>I&#8217;m a research scientist and download and read<br />
color and b/w PDF documents daily from a variety<br />
of publishers/journals.   The ability to scroll and<br />
zoom-in/out on figures and columns of text would be<br />
quite usefull.   Additionally, a PDF reader able to<br />
easily open files dropped in a accessable data folder would<br />
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<br />
teaching.</p>
<p>I would use this reader daily on my long commutes<br />
and hope that it may have the capability of retaining<br />
small attached comments/notes/highlights that could<br />
be attached/linked to the document somehow.<br />
This would be an improvement on Adobe Reader or &#8220;Preview&#8221;.  This of course would run into problems of &#8220;protected&#8221; PDF files however, in my naive<br />
view, I hope that this improvement might be addressed.</p>
<p>Best of luck with your new site and the projects<br />
you undertake.</p>
<p>Sincerely,</p>
<p>sappleq   //    <a href="mailto:steve@applequist.se">steve@applequist.se</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

