Pdf viewer in qt?

Discussion in 'Asus (Android)' started by etienne, Mar 25, 2012.

Thread Status:
Not open for further replies.
  1. d.goryachev

    d.goryachev Scribbler - Standard Member

    Messages:
    275
    Likes Received:
    0
    Trophy Points:
    31
    In my case pdf2djvu converter works not so good - sometimes, some pages in resulted djvu file can't be decoded by djvu reader. This forces me to use native reader, but .. it's too ugly to use :) Slow moving between pages, very slow zoom, ugly raster elements rendering, strange drag of zoomed page by hand tool (i can't go to page bottom, it's allow only drag to left and right), annoying blinking gray background on some pages - looks like this list can be continued to infinity.

    So I'll try to write very basic, but not so souring viewer :)
     
  2. d.goryachev

    d.goryachev Scribbler - Standard Member

    Messages:
    275
    Likes Received:
    0
    Trophy Points:
    31
    Well, i've did it (for lulz)

    [​IMG]

    Please, take in account - this is early alpha version, use it on your own risk (as usual) :)

    This program is called "muViewer" and can be installed via QtPacker (don't forget to press Update button to see changes in feed).

    2do:
    1) try to fetch table of contents (if any)
    2) try to build thumbnails list in djView4 manner
    3) add zoom combo with options "fit to width", "fit page" and so on
    4) save file state on exit
     
  3. BlacKnight

    BlacKnight Scribbler - Standard Member

    Messages:
    184
    Likes Received:
    0
    Trophy Points:
    31
    Hi d-goryachev

    Thanks for making and sharing muViewer. It looks very promising. :D

    If you want some early feedback, then the "goto page" drop-down doesn't work if you select the first page :( Less importantly, the file open dialogue edit box is obscured by the on-screen keyboard.

    I'm looking forward to the zoom pull-down. What would be most useful for me would be a "zoom (and pan) to content width" option, but I realise this may be complex to implement.
     
  4. d.goryachev

    d.goryachev Scribbler - Standard Member

    Messages:
    275
    Likes Received:
    0
    Trophy Points:
    31
    New version of muviewer added to feed.

    Changes:
    1) Added zoom combo with fixed zoom levels, no "fit to width" mode yet, but handy to set desired scale.
    2) Initial session support, now it saves current page and zoom level for each opened file
    3) Added toolbar button with "Open Recent" menu.

    Fixes:
    1) Fixed "first page" page combo issue :)

    2do:
    1) try to fetch table of contents
    2) try to build thumbnails list
    3) complicated zoom levels for zoom combo box

    BTW, it can be used with QtFm custom actions, to open pdfs by double-click on it.
     
  5. T_B

    T_B Scribbler - Standard Member

    Messages:
    147
    Likes Received:
    0
    Trophy Points:
    30
    very nice d.goryachev! Great to see you back in action :)

    Tried it yesterday and noticed the program seems to be a bit slower than the stock reader. The font rendering is a lot nicer though and certainly important at a lower font size.

    I like your new additions especially the fixed zoom level and saving of these settings. Will try it out later.

    BTW is there any chance to add landscape support?
    BTW2 I like the option of the stock pdf reader to drag the pages. Would that be hard to implement?

    Edit...

    Never mind. Just tried again and both requests are (or were) already implemented. Nice.
     
    Last edited: Jun 19, 2012
  6. d.goryachev

    d.goryachev Scribbler - Standard Member

    Messages:
    275
    Likes Received:
    0
    Trophy Points:
    31
    Document rotation already done, forgot to write here. There are two new buttons in toolbar, to rotate clockwise and counterclockwise.

    Panning by stylus is introduced too, not too good but working solution (too slow in large zooms, will try to fix it)

    Can you share document, which displays by mupdf slower than in native reader? I'll try to find reasons, why this fastest lib become so slow, may be i had broke something :)

    P.S. updated to v 0.0.5, fixed panning with stylus. Not ideal, but mush better solution.
     
    Last edited: Jun 19, 2012
  7. T_B

    T_B Scribbler - Standard Member

    Messages:
    147
    Likes Received:
    0
    Trophy Points:
    30
    I will send a PM after work today with a link to the file. The document is a high res magazine.
     
  8. resuS

    resuS Pen Pal - Newbie

    Messages:
    94
    Likes Received:
    0
    Trophy Points:
    15
    Hi, D. Goryachev! With you our dreams come true again!

    I have found a file which are displaying as slow as in native reader and even slower in dragging (freezing appears every second). I will send you this by PM now.
     
  9. T_B

    T_B Scribbler - Standard Member

    Messages:
    147
    Likes Received:
    0
    Trophy Points:
    30
    He will have two files then :)
     
  10. Ronin

    Ronin Pen Pal - Newbie

    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    5
    I have another suggestion to potentially add some time:
    - Add a search function

    The native reader lacks this and I am missing that feature a lot.

    Ty for considering.
     
Thread Status:
Not open for further replies.

Share This Page