[poppler] [PATCH] Viewer Preferences and Direction R2L

SAKURAI Masashi m.sakurai at kiwanami.net
Mon Mar 28 01:12:33 PDT 2011


I implemented the viewer preferences and the flag Direction: R2L.

Direction R2L from Adobe PDF spec:
  This entry has no direct effect on the document's contents or page
  numbering but may be used to determine the relative positioning
  of pages when displayed side by side or printed n-up. Default
  value: L2R.

This implementation of the viewer preferences and flags supports only
the Direction R2L. However, this R2L direction is very important for
East Asians to read books. In addition to the Poppler, I locally
added the Direction R2L support to the Evince, and I confirmed that my
Japanese books are displayed as Acrobat does.

I attached two sample pdf files, 
   normal.pdf  : no viewer preferences
   r2l.pdf     : viewer preferences with Direction R2L
One can check the Direction R2L by the demo program for the glib interface,
$ ./glib/demo/poppler-glib-demo (pdf file)

SAKURAI Masashi (1):
  Implements the viewer preferences dict and the entry of Direction

 glib/demo/info.cc        |   35 +++++++++++++++++++++++++++++++++--
 glib/poppler-document.cc |   40 ++++++++++++++++++++++++++++++++++++++--
 poppler/Catalog.cc       |   21 +++++++++++++++++++++
 poppler/Catalog.h        |    2 ++
 4 files changed, 94 insertions(+), 4 deletions(-)

More information about the poppler mailing list