Hi,

   Thanks a lot! I think it would be a great help to me. I'm only using 
poppler-qt4 binding for my application now. So, I guess, I would have to use 
both Qt4 and cpp/glib bindings in my application, right?

         Cobra
-----Original message-----
From:[email protected]
To:[email protected]
Cc:[email protected]
Date:Mon, 26 Jul 2010 16:24:40 +0900
Subject:Re: [poppler] Vertical or horizontal writing?

Hi,

Yet I'm not sure how you use poppler in your application,
but GfxFont class has a method to obtain "writing mode"
in PDF terminology. Please see GfxFont.h, you can find:

   /* this is default */

   106  class GfxFont {
   107  public:
   108  
...
   206    // Return the writing mode (0=horizontal, 1=vertical).
   207    virtual int getWMode() { return 0; }

   /* this is for CID-keyed font */
   321  class GfxCIDFont: public GfxFont {
   322  public:
...
   333    // Return the writing mode (0=horizontal, 1=vertical).
   334    virtual int getWMode();

And, you can find how poppler identify the writing mode
in GfxFont.cc:

  1763  int GfxCIDFont::getWMode() {
  1764    return cMap ? cMap->getWMode() : 0;
  1765  }

Is this what you want?

Regards,
mpsuzuki

On Mon, 26 Jul 2010 14:49:38 +0800 (CST)
"cobra.yu" <[email protected]> wrote:

>Hi,
>
>     Is there any way by poppler to acquire the correct writing mode for any 
> Document/Page/Paragraph? I'm writing some code for the vertical Chinese 
> writing mode text search, but finding that it seems no way to know the exact 
> mode by poppler.
>     Any suggestions are welcome! Thx.
>
>         Cobra
>_______________________________________________
>poppler mailing list
>[email protected]
>http://lists.freedesktop.org/mailman/listinfo/poppler
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to