PDF two page with zoom and render

315 views
Skip to first unread message

Luis Enrique Ortiz

unread,
Mar 28, 2011, 10:11:45 PM3/28/11
to Leaves Developers
hi i want to implement two page pdf viewer with leaves, but the last
version doesnt work the two page

also i want to implement zooming, i download another version of leaves
but when i zoom it doenst render back the pdf and the quality is poor

can anyone help me

thanks

Ryan Duckworth

unread,
Mar 28, 2011, 11:17:57 PM3/28/11
to leaves-d...@googlegroups.com, leor...@gmail.com

Both two pages and zooming have been implemented.

Click on the Network tab: https://github.com/brow/leaves/network

Click on any dot for that version, then click the [Downloads] button.

This will allow you to download the full source code.

The zooming feature uses CATiledLayer and takes up lots of memory.
To avoid problems, optimize your PDF so it is as small as possible.

Good luck!
Ryan

gu xiaojie

unread,
Mar 29, 2011, 11:11:54 PM3/29/11
to leaves-d...@googlegroups.com
i have done this,

with the page turn/curl animation of the leaves project
and zooming the page and back the pdf

i can send you a sample code, but i am buzy lately.maybe i can write a sample code for you tommorow

forget my poor English .

all the best from China.

AlexWu

unread,
Mar 30, 2011, 12:24:40 AM3/30/11
to leaves-d...@googlegroups.com
see this: https://github.com/shuhongwu/leaves-zoom-enhanced

For pdf zooming clearly.....

2011/3/30 gu xiaojie <guji...@gmail.com>



--
Best Regards
AlexWu
Note    : Carpe Diem
Youth is not a time of life,it is a state of mind...

rdeman

unread,
Apr 26, 2011, 9:46:33 PM4/26/11
to Leaves Developers
this fork does not re-render the PDF after zooming. It just makes the
pixels bigger, giving blurry text etc?

On Mar 30, 5:24 am, AlexWu <ws169...@gmail.com> wrote:
> see this:https://github.com/shuhongwu/leaves-zoom-enhanced
>
> For pdf zooming clearly.....
>
> 2011/3/30 gu xiaojie <gujiev...@gmail.com>
>
>
>
>
>
>
>
>
>
> > i have done this,
>
> > with the page turn/curl animation of the leaves project
> > and zooming the page and back the pdf
>
> > i can send you a sample code, but i am buzy lately.maybe i can write a
> > sample code for you tommorow
>
> > forget my poor English .
>
> > all the best from China.
>
> > 在 2011-3-29,上午10:11, Luis Enrique Ortiz 写道:
>
> > > hi i want to implement two page pdf viewer with leaves, but the last
> > > version doesnt work the two page
>
> > > also i want to implement zooming, i download another version of leaves
> > > but when i zoom it doenst render back the pdf and the quality is poor
>
> > > can anyone help me
>
> > > thanks
>
> --
> Best Regards
> AlexWu
> Blog :https://mocling-official.appspot.com<http://mocling-official.appspot.com/>
> Twitter:https://twitter.com/redbookwu<http://twitter.com/redbookwu>
> Mail : ws169...@gmail.com|mocling.a...@gmail.com <ws169...@gmail.com>
> Photo :https://picasaweb.google.com/106021084318592999602/Me<http://picasaweb.google.com/106021084318592999602/Me>

Keith Hanson

unread,
May 7, 2011, 4:02:51 PM5/7/11
to Leaves Developers
Actually, if you click the button labeled: 返回

The document will enter "zoom mode", which uses a CATiledLayer to
render the PDF page... What happens though is that you need to exit
"zoom mode" to turn the page. As well, AlexWu's "zoomIn" and "zoomOut"
methods seem to be mislabeled at first glance.

I'm facing this exact problem right now (being able to zoom the
document) and will report back whether or not this fork works as much
as I hope it does...

But here is why I think this is the right solution (after hours of
researching):
http://screencast.com/t/hgI7fjxAQSQ

Keith Hanson

unread,
May 7, 2011, 4:05:10 PM5/7/11
to Leaves Developers
Sorry, because of the confusing method names, that would actually be
the button labeled: "放大", which uses the selector zoomOut

Ryan Duckworth

unread,
May 7, 2011, 8:23:50 PM5/7/11
to leaves-d...@googlegroups.com
Page Curl including Zoom has already been done using CATiledLayer.

http://github.com/brow/leaves

Network Tab
Click on the last yellow dot ( ansani fork )
Click Downloads
Good luck!

Sent from my iPhone

kate

unread,
May 30, 2012, 5:05:51 AM5/30/12
to leaves-d...@googlegroups.com
I recommend pdf to digital magazine tool to achieve your goal. Ever I tried to convert PDF to page turning ebooks, it can be easily zoom in or zoom out.
Reply all
Reply to author
Forward
0 new messages