Your Ad Here

Wednesday, January 28, 2009

ZViewer updated

New features - 01.28.2009

Keyboard shortcuts:
  • Ins - Copy to clipboard
  • Home - First Page
  • End - Last Page
  • PageUp - Previous Page
  • PageDown - Next Page
  • Arrow Keys - Scroll
  • Keypad / - Zoom Show All
  • Keypad * - Zoom Best Fit
  • Keypad - - Zoom Out
  • Keypad + - Zoom In
  • Keypad 5 - Full Screen

Mouse Wheel:
  • Alone - Vertical scroll
  • Shift pressed - Horisontal Scroll
  • CTRL pressed - Zoom IN/OUT

38 comments:

Omar Abdelhaq said...

Hi Cristian, you have done a great job, really, but I wish there were the feature when you search for text the page automatically changes to the first found match page, and a find next match button would be nice, also if these 2 things were possible/implemented, the highlighting could be applied only to the current match!

Unknown said...

Love the improvements you have made to rfxview! Is there any plan for the ability to select a block of text using the mouse and then click copy?

Unknown said...

How can I avoid running the wrapped swf when the swfviewer is first loaded?

Unknown said...

Hi, nice Job!

Is a two page view in your plans?

It would make Zviewer really great!

Thanks

Unknown said...

Hi Christian, excellent viewer. Is there a way to set the parameter to show all by default? I have tried scale: 'showall' in the parameters, but it does not work.

Thanks,
Dave

Crirus said...

There is no such parameter now, I'm not even very sure what's the default, I will check on that thing and maybe add such param to define the initial view mode.

CalebP said...

I love the Zviewer. I was wondering if there was a way to make documents load with "Zoom Best Fit" as the default. Please let me know if there is. Email me at caleb.piercy@gmail.com. Thanks. Great work.

Crirus said...

Not directly but I guess you can alter the code to execute a bestFit function when document loads.

Fergus Gallagher said...

I just tried to use zviewer with the latest swftools:

$ pdf2swf -B zviewer.swf in.pdf -o out.swf

which works for "rfxview", but I get the error:

WARNING Didn't find anything named viewport in file. No substitutions will occur.

Any suggestions? Thanks.

Crirus said...

This is not a viewer to be combined with the actual document but a reader for the document, separate embedded to a html page like a player.

See my html example for integration details

Fergus Gallagher said...

Get it now. Thanks

Unknown said...

On Ubuntu with Firefox-3.5 PgDn/PgUp do not move between pages but only to top/bottom of current page. Lft/Rt arrow keys behave the same as PgUp/PgDn.
It would be useful to have a way to not show the search function if it isn't wanted (it does nothing with the PDF I'm testing, I think because pdf2swf turned it into images).

Decalferro said...

Hi,

I've got some problem trying to put height at 100%, width runs perfectly but height now show anything.

I've tryed changing swfobject 2.0 version to 2.2 but seems problem is in other place.

That's the code I've tested
swfobject.embedSWF('zviewer.swf', 'website', '100%', '100%', '9.0.45',

'swfobject/expressinstall.swf', flashvars, params, attributes);

Any idea how to solve it, if it's possible ?

Monkiki said...

Josep, see http://blog.deconcept.com/swfobject/fullpage.html to solve the 100% height problem.

Decalferro said...

Hi monkiki, Thanks but it not runs for me, on http://blog.deconcept.com uses SWFObject v1.5.1 but zviewer need SWFObject 2.X that's not compatible with 1.5.

I'm not sure if problem is on SWFObject 2.X or into zviewer.swf ( I think it's on second ).

MilsonCardona said...

hi
i want zviewer for my page, BUT i need charge my SWF from a database

any idea or suggestion???

thanks in advance

and excuse my english.

Anonymous said...

Dear Mr. Cristian, This is fantastic work and thank you for sharing the source code too. I am trying to build a viewer for viewing pdf files converted to swf using pdf2swf converter from swftools.org. Your viewer has far more capabilities.

My doubt - Is it possible to build the viewer using mxml and action script? In the source code that you have shared there is a .fla file. How do i access this file ?

Crirus said...

The fla is for Adobe Flash, you are looking for flex code, I don't know that.

Techie said...

I'm using it to view pdfs in my site. But, for large files, it waits for large amount of time.

Is there any functionality in which it will not load the whole swf, but do buffering.

Any help would be highly appreciated.

Thanks
Gorav

Crirus said...

You can't just buffer and display parts of the swf, afaik. However, I plan a strategy where you can generate your swf page by page then the viewers suppose to handle that as a whole, but this time being able to read and display individual pages instead waiting for the whole thing first.

However, right now I am quite busy on some paid projects so this is postponed for a later time

Unknown said...

Hello,
I have a 99 page pdf document which I have converted to swf (from pdf through a pdf2swf tools). When I upload the same on our server without a viewer, the document opens the first page and continues downloading the remaining pages in the cache. This is exactly what I want to do using the Zviewer, but it does not happen. When we open with Zviewer it completely downloads the SWF in cache and then displays. Since the property of the SWF makes it possible without the viewer I was hoping to find a solution with the Zviewer.Would appreciate any inputs.

Thanks
Abhishek Ranjan

Unknown said...

Hello,
I have a 99 page pdf document which I have converted to swf (from pdf through a pdf2swf tools). When I upload the same on our server without a viewer, the document opens the first page and continues downloading the remaining pages in the cache. This is exactly what I want to do using the Zviewer, but it does not happen. When we open with Zviewer it completely downloads the SWF in cache and then displays. Since the property of the SWF makes it possible without the viewer I was hoping to find a solution with the Zviewer.Would appreciate any inputs.

Thanks
Abhishek Ranjan

Crirus said...

This is the issue with large PDFs. The viewer needs to find how many pages/frames document have before displaying anything.

Cygnet ECM said...

Hi Cristian,

You have created a very nice viewer that I would like to use to view documents from document management systems.

However after implementing your latest source code there have been a few bugs popping up here and there. Is it possible to correspond via email. There will be a donation in return.

Kind regards, Glen Schley

Crirus said...

Can you tell me what was the the issue?

Cygnet ECM said...

It would be better if i could send you a document to your email as it has become quite a list.

The three main issues however are:

1 The scroll bars resize and become unusable.

2 The buttons do not always work accordingly.

3 The search does not highlight the search terms as in your demo.

Please send your email and we can discuss this further.

Kind regards,
Glen Schley

Crirus said...

you can just write me to crirus gmail

angusivam said...

Thanks for your great effort.

Could we use any parameter or attribute to disable print/copy to clipboard button on viewer?

Crirus said...

not currently, but since it's open you can adjust that I suppose

Unknown said...

Hi Cristian, excellent work! One hint and one question:
i) The symbols for Print and Full screen are the same. I guess you would rather use the old Full screen symbol?!
ii) Is it possible to increase the step width of the zoom function? Eight or ten steps (linearly) would be better than the current four or five! Can I adjust that by flash pars in the index file?
However, great job!!!

Unknown said...

Sorry, I mean decreasing of step width and increasing of number of zoom steps!

sumodhkrishna said...

Thanks Bro

Keep improving

Unknown said...

Why the search does not work for me? I used the swftools to create the documents from PDFs and I cannot do the search. I even use the -F options. Could Cricus or anyone help?

Unknown said...

Oh when use pdf2swf one should add "-f" option to enable the search to work.

Kumar said...

Hi Christian, I am using the viewer, it is working fine except search highlighting, can you advice me.

edwsin said...

Hi Christian, when will you plan to release the new version..?
i am hoping the next version will have the rotation feature on it and the print feature can be 100% clean print.

Thanks in advanced
Edward

sangita said...

how to convert doc files to swf...do i need to convert them to pdf first..then how to do that...m really confused...any help would be appreciated !!

Unknown said...

Is there a way so that the flash file automatically gets displayed instead of first downloading the whole document, it can show me the first few initial pages. And tell me how to put some actions in this Viewer.