Author Topic: PDF files  (Read 2198 times)

JackTheRipper

  • Newbie
  • *
  • Posts: 2
PDF files
« on: February 01, 2009, 09:18:19 pm »
Hey there,

I just downloaded your software and really like it.
But how can I eg. zoom into pdf files. I created several swfs from the pdf and included them with the xml file.
Also I don't get yet how I can implement an interactive navigation....?!

Any tipps you can give me.

Thanks
Jack

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1989
  • MegaZine3 Developer
    • MegaZine3
Re: PDF files
« Reply #1 on: February 01, 2009, 11:52:15 pm »
Hi Jack,

by zoom in, do you mean entering zoom mode, or enlarging the image/swf
when you're already in zoom mode?

If it's the first: add a hires attribute to the images loading the swfs to the
pages, as described in this tutorial.

If it's the second: it is currently not possible to zoom in to more than 100%,
so the maximum size you will get is the one the swf has set as default size.
This is because the zoom mode was primarily meant for images, and in that
case it doesn't really make any sense to enlarge them to more than 100%
as quality loss ensues.
If that's what you need, however, I will consider adding a new attribute
for the img element in the next release that will allow setting a maximum
scale factor, so that it will be possible to actually enlarge the loaded images
or swfs when necessary.

Regards,
Florian
For the Snark was a Boojum, you see.

Before you ask a question
          After you get an answer
  • please document your problem with the answer in the Project Wiki. (e.g. in the FAQs)
  • help others out if you can, by answering their questions on the forum.

JackTheRipper

  • Newbie
  • *
  • Posts: 2
Re: PDF files
« Reply #2 on: February 03, 2009, 08:32:01 am »
Hi,
I got it working :) Thanks.

Another thing is the navigation. I have a catalogue with 92 pages. The bottom navigation shrinks down to an unreable size, also the "help" window is so tiny that no one can read its content.
How can I control it?

Is there a way to increase the performance of the pageflick. Seems to be very slow with 92 pages.

Also, when I get into the zoom mode the content gets pushed to the very top of the screen...how can I control the position of this?

Thanks in advance for your great support
Jack
« Last Edit: February 03, 2009, 02:13:41 pm by JackTheRipper »

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1989
  • MegaZine3 Developer
    • MegaZine3
Re: PDF files
« Reply #3 on: February 03, 2009, 08:29:39 pm »
That's most likely because of the (at the moment pretty rudimentary) liquid scaling. I'm planning to "unlock" the gui from the pages in a future release so the shrinking of the menu won't be a problem anymore.
What you can do for now:
Either give the Flash element in the HTML a fixed size instead of a relative (percentual) one. That means
a) changing the width and height in the swfobject.embedSWF(...) call and
b) changing the width and height in the css (in the #megazine class)
to a fixed value that leaves enough room for your book.

I probably shouldn't have made it that way around the default yet... ;)

The performance degeneration stems from the fact that if the book grows this big, per default not all pages are kept in memory at a time (else the requirements for ram could be quite high). You could try increasing the number kept in memory, so that all pages are kept in memory, using the maxloaded attribute of the book tag. After that open the book, press # to open the console, then enter info to see how much ram is used (note that that will be the ram used by all flash objects opened in the browser, though, so e.g. if you have youtube opened in another tab that will count into that value as well).
I'll at least add a parameter for the next version, to set that pages may only be loaded when no pages are turned. That will obviously increase the chance that an blank (unloaded) page is shown while flipping many pages at once, but it will certainly increase performance quite a bit during that time.

The last part with the zoom getting off-screen I can't explain. Do you have a link to demonstrate the effect?
For the Snark was a Boojum, you see.

Before you ask a question
          After you get an answer
  • please document your problem with the answer in the Project Wiki. (e.g. in the FAQs)
  • help others out if you can, by answering their questions on the forum.