You are not logged in.

#451 2011-02-25 15:41:51

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: zathura - a PDF viewer

Can I somehow get rid of this flickering every time I change the page?
Zathura is really nice. smile

edit: nvm, it's because the page needs some time to load, and the defaultbg_color is 'black' so it looks like it's flickering. Cheers!

Last edited by archman-cro (2011-02-25 16:18:09)

Offline

#452 2011-02-27 10:26:18

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: zathura - a PDF viewer

Is it possible to place a statusbar on top of the screen or is it hardcoded?

Would be awesome to have an image viewer like that, with the same look. smile

Last edited by archman-cro (2011-02-28 13:03:33)

Offline

#453 2011-03-01 03:14:51

vincekd
Member
From: USA
Registered: 2011-02-27
Posts: 15

Re: zathura - a PDF viewer

Nicely done.

Offline

#454 2011-03-01 03:21:50

jwhendy
Member
Registered: 2010-04-01
Posts: 621

Re: zathura - a PDF viewer

I'm going to bump my question, asked two weeks ago HERE. Could anyone share where the custom printing commands are listed? My previous post contains a link to another post where instructions are given for a complex printing task (printing odd pages only or something). In my searching, I can't find any reference to the acceptable options to pass with the :print command.

Are they the same as pdftk options? Something else I just don't know? Thanks for any suggestions. If the options are from some other library, perhaps the man page could say something like, "For print options, see x."

Thanks

Offline

#455 2011-03-01 03:28:43

neldoreth
Member
From: AT
Registered: 2009-02-01
Posts: 212

Re: zathura - a PDF viewer

Hello,

jwhendy wrote:

Are they the same as pdftk options? Something else I just don't know? Thanks for any suggestions. If the options are from some other library, perhaps the man page could say something like, "For print options, see x."

zathura uses the lp command for printing the files. You should find the information needed with "man lp". I know that zathura as well as jumanji lacks a bit of documentation which I want to change with the new release in the future.

Best regards


pwmt.org : programs with movie titles

Offline

#456 2011-03-01 03:48:46

jwhendy
Member
Registered: 2010-04-01
Posts: 621

Re: zathura - a PDF viewer

@neldoreth: perfect. I wondered if there was some other command being used, but couldn't find it in the zathura man pages. Thanks for the response -- great work on all your programs!

Offline

#457 2011-03-05 12:51:02

wirr
Member
Registered: 2009-10-25
Posts: 70

Re: zathura - a PDF viewer

Hi neldoreth

I have two small patches, they worke for me, but I am not an expert wink
The first is useful, for scripting. You can get open pdfs with something like xprop | grep _URI. The second is just for people with small screens.

I don't know where to put the atom_uri variable. You may have to clean this.

Maybe it would be cool to have an option for a tiny status bar, but I'm fine with patching.

regards

atom uri:

--- src/zathura/zathura.c    2011-02-28 23:30:15.566667385 +0100
+++ src/zathuraatomuri/zathura.c    2011-03-04 22:47:19.550000406 +0100
@@ -16,6 +16,8 @@
 
 #include <glib/gstdio.h>
 #include <gtk/gtk.h>
+#include <gdk/gdkx.h>
+#include <X11/Xatom.h>
 #include <gdk/gdkkeysyms.h>
 
 /* macros */
@@ -49,6 +51,8 @@
 #define INDEX      (1 << 2)
 #define NORMAL     (1 << 3)
 
+static Atom atom_uri = NULL;
+
 /* typedefs */
 struct CElement
 {
@@ -696,6 +700,9 @@
 
   Zathura.StdinSupport.file   = NULL;
 
+  atom_uri = XInternAtom(GDK_DISPLAY(),"_URI",False);
+
+
   /* window */
   if(Zathura.UI.embed)
     Zathura.UI.window = gtk_plug_new(Zathura.UI.embed);
@@ -1420,6 +1427,7 @@
   /* set window title */
   gtk_window_set_title(GTK_WINDOW(Zathura.UI.window), basename(file));
 
+
   /* show document */
   set_page(start_page);
   update_status();
@@ -1491,6 +1499,9 @@
   g_free(Zathura.StdinSupport.file);
   Zathura.StdinSupport.file = file;
 
+  XSync(GDK_DISPLAY(), False);
+  XChangeProperty(GDK_DISPLAY(), GDK_WINDOW_XID(Zathura.UI.window->window), atom_uri, XA_STRING, 8, PropModeReplace, (unsigned char *)file,strlen(file) + 1);
+
   return open_file(Zathura.StdinSupport.file, password);
 }

tiny status bar:

--- zathura/zathura.c    2011-02-09 18:26:34.996666668 +0100
+++ zathuracust/zathura.c    2011-02-10 18:30:56.750002083 +0100
@@ -676,7 +676,7 @@
   Zathura.Global.recolor        = 0;
   Zathura.Global.goto_mode      = GOTO_MODE;
   Zathura.Global.show_index     = FALSE;
-  Zathura.Global.show_inputbar  = TRUE;
+  Zathura.Global.show_inputbar  = FALSE;
   Zathura.Global.show_statusbar = TRUE;
 
   Zathura.State.pages             = g_strdup("");
@@ -756,9 +756,9 @@
   gtk_misc_set_alignment(GTK_MISC(Zathura.Global.status_state), 1.0, 0.0);
   gtk_misc_set_alignment(GTK_MISC(Zathura.Global.status_buffer), 1.0, 0.0);
 
-  gtk_misc_set_padding(GTK_MISC(Zathura.Global.status_text),  2.0, 4.0);
-  gtk_misc_set_padding(GTK_MISC(Zathura.Global.status_state), 2.0, 4.0);
-  gtk_misc_set_padding(GTK_MISC(Zathura.Global.status_buffer), 2.0, 4.0);
+  gtk_misc_set_padding(GTK_MISC(Zathura.Global.status_text),  0.0, 0.0);
+  gtk_misc_set_padding(GTK_MISC(Zathura.Global.status_state), 0.0, 0.0);
+  gtk_misc_set_padding(GTK_MISC(Zathura.Global.status_buffer), 0.0, 0.0);
 
   gtk_label_set_use_markup(Zathura.Global.status_text,  TRUE);
   gtk_label_set_use_markup(Zathura.Global.status_state, TRUE);
@@ -771,7 +771,7 @@
   gtk_container_add(GTK_CONTAINER(Zathura.UI.statusbar), GTK_WIDGET(Zathura.UI.statusbar_entries));
 
   /* inputbar */
-  gtk_entry_set_inner_border(Zathura.UI.inputbar, NULL);
+  gtk_entry_set_inner_border(Zathura.UI.inputbar, gtk_border_new());
   gtk_entry_set_has_frame(   Zathura.UI.inputbar, FALSE);
   gtk_editable_set_editable( GTK_EDITABLE(Zathura.UI.inputbar), TRUE);
 
@@ -1990,7 +1990,10 @@
   }
 
   if(!Zathura.Global.show_inputbar)
+  {
     gtk_widget_hide(GTK_WIDGET(Zathura.UI.inputbar));
+    gtk_widget_show(GTK_WIDGET(Zathura.UI.statusbar));
+  }
 
   /* Set back to normal mode */
   change_mode(NORMAL);
@@ -2077,6 +2080,7 @@
 {
   if(!(GTK_WIDGET_VISIBLE(GTK_WIDGET(Zathura.UI.inputbar))))
     gtk_widget_show(GTK_WIDGET(Zathura.UI.inputbar));
+  gtk_widget_hide(GTK_WIDGET(Zathura.UI.statusbar));
 
   if(argument->data)
   {

Last edited by wirr (2011-03-05 12:52:24)

Offline

#458 2011-03-07 08:20:57

1uid65534
Member
Registered: 2011-03-07
Posts: 1

Re: zathura - a PDF viewer

Would it be hard to implement showing two A4 (LTR, whatever) pages side-by-side? Switching to one page mode if A3 (or double-width LTR) would be a bonus. Basically, the idea is to fill 16:10 screen.
While the concept behind zathura is nice, it is quite useless right now for reading datasheets, manuals, books, and >50% of other documents.

Last edited by 1uid65534 (2011-03-08 08:18:46)

Offline

#459 2011-03-10 21:15:18

neldoreth
Member
From: AT
Registered: 2009-02-01
Posts: 212

Re: zathura - a PDF viewer

Hello,

The website has been updated: http://pwmt.org

wirr wrote:

I have two small patches

Thank you, I will check them out.

1uid65534 wrote:

Would it be hard to implement showing two A4 (LTR, whatever) pages side-by-side? Switching to one page mode if A3 (or double-width LTR) would be a bonus. Basically, the idea is to fill 16:10 screen.
While the concept behind zathura is nice, it is quite useless right now for reading datasheets, manuals, books, and >50% of other documents.

Can you please fill in a feature request.

Best regards

Last edited by neldoreth (2011-03-10 21:16:15)


pwmt.org : programs with movie titles

Offline

#460 2011-03-11 01:36:41

Liuuutas
Member
From: Cambridge
Registered: 2009-05-02
Posts: 71

Re: zathura - a PDF viewer

Hello,

neldoreth wrote:

The website has been updated: http://pwmt.org

The new website looks very nice. smile

neldoreth wrote:

Can you please fill in a feature request.

I have just filled a feature request for that. For me it is the only feature which I miss in zathura.
Everything else is just perfect. Especially, the speed and and robustness.
Thanks for such a great app.

Regards,
Ignas

Offline

#461 2011-03-11 09:22:58

aiBo
Member
Registered: 2010-11-10
Posts: 50

Re: zathura - a PDF viewer

Hello,

this is a really nice application. Great work!
The only thing which annoyed me a little bit is this: When opening an encrypted pdf I have to put the cursor into the password input line. It would be very handy if it would be there automatically and I could immediatly start typing in the password. It's just a minor issue but maybe easy to implement!?
Anyways, keep it up!

Regards

Offline

#462 2011-03-11 20:52:14

jwhendy
Member
Registered: 2010-04-01
Posts: 621

Re: zathura - a PDF viewer

I just added a feature request for a :help command in the program itself. I have to open 'man zathura' in a terminal to look for particular commands. A 1/4 screen (or more) popup with the commands might be nice. Or whatever -- I'm sure there are several ways to implement it -- perhaps a full shift to the man page from within zathura just like the flash to file properties screen. Then press Esc. when done to return to the document?

Just some ideas.

Offline

#463 2011-03-15 13:34:40

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: zathura - a PDF viewer

Closed. Follow discussion here :

https://bbs.archlinux.org/viewtopic.php?id=115118


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB