Menu

#250 Scrambled outline in djview after conversion of pdf-file

djview
closed
nobody
None
5
2015-02-28
2015-02-28
No

Hi!

I'm using pdf2djvu to convert pdf's to djvu-files. Every once in a while, I get pdf's where the outline looks scrambled (see attached screenshots). This appears only when I use djview as a viewer. I've not yet found a connection between the affected files.
The author of pdf2djvu suggested that it is djview that has difficulties to display cr characters (discussion here: https://code.google.com/p/pdf2djvu/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Type%20Status%20Priority%20Summary&groupby=&sort=&id=102).

I've also attached the output of djvused -e print-outline example.djvu

3 Attachments

Related

Bugs: #250

Discussion

  • Leon Bottou

    Leon Bottou - 2015-02-28

    Can you share the djvu file?
    - L.

    On Saturday, February 28, 2015 03:36:02 PM Havlicek stole the ball wrote:


    [bugs:#250] Scrambled outline in djview after conversion of pdf-file

    Status: open
    Group: djview
    Created: Sat Feb 28, 2015 03:36 PM UTC by Havlicek stole the ball
    Last Updated: Sat Feb 28, 2015 03:36 PM UTC
    Owner: nobody

    Hi!

    I'm using pdf2djvu to convert pdf's to djvu-files. Every once in a while, I
    get pdf's where the outline looks scrambled (see attached screenshots).
    This appears only when I use djview as a viewer. I've not yet found a
    connection between the affected files. The author of pdf2djvu suggested
    that it is djview that has difficulties to display cr characters
    (discussion here:
    https://code.google.com/p/pdf2djvu/issues/detail?can=2&start=0&num=100&q=&c
    olspec=ID%20Type%20Status%20Priority%20Summary&groupby=&sort=&id=102).

    I've also attached the output of djvused -e print-outline example.djvu


    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/djvu/bugs/250/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/subscriptions/

     

    Related

    Bugs: #250

    • Leon Bottou

      Leon Bottou - 2015-02-28

      Is it important to display embedded newlines in outline text? I've tried and
      it looks ugly. I've pushed a fix that converts all these characters to spaces.
      - L.

      On Saturday, February 28, 2015 03:47:03 PM Leon Bottou wrote:

      Can you share the djvu file?
      - L.

      On Saturday, February 28, 2015 03:36:02 PM Havlicek stole the ball wrote:


      [bugs:#250] Scrambled outline in djview after conversion of pdf-file

      Status: open
      Group: djview
      Created: Sat Feb 28, 2015 03:36 PM UTC by Havlicek stole the ball
      Last Updated: Sat Feb 28, 2015 03:36 PM UTC
      Owner: nobody

      Hi!

      I'm using pdf2djvu to convert pdf's to djvu-files. Every once in a while,
      I
      get pdf's where the outline looks scrambled (see attached screenshots).
      This appears only when I use djview as a viewer. I've not yet found a
      connection between the affected files. The author of pdf2djvu suggested
      that it is djview that has difficulties to display cr characters
      (discussion here:
      https://code.google.com/p/pdf2djvu/issues/detail?can=2&start=0&num=100&q=&
      c
      olspec=ID%20Type%20Status%20Priority%20Summary&groupby=&sort=&id=102).

      I've also attached the output of djvused -e print-outline example.djvu


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/djvu/bugs/250/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/


      [bugs:#250] Scrambled outline in djview after conversion of pdf-file

      Status: open
      Group: djview
      Created: Sat Feb 28, 2015 03:36 PM UTC by Havlicek stole the ball
      Last Updated: Sat Feb 28, 2015 03:36 PM UTC
      Owner: nobody

      Hi!

      I'm using pdf2djvu to convert pdf's to djvu-files. Every once in a while, I
      get pdf's where the outline looks scrambled (see attached screenshots).
      This appears only when I use djview as a viewer. I've not yet found a
      connection between the affected files. The author of pdf2djvu suggested
      that it is djview that has difficulties to display cr characters
      (discussion here:
      https://code.google.com/p/pdf2djvu/issues/detail?can=2&start=0&num=100&q=&c
      olspec=ID%20Type%20Status%20Priority%20Summary&groupby=&sort=&id=102).

      I've also attached the output of djvused -e print-outline example.djvu


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/djvu/bugs/250/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #250

  • Leon Bottou

    Leon Bottou - 2015-02-28

    Fixed (by collapsing all sequence of space characters (" \n\r\t\v\f")
    into a single spaces.)

     
    • Havlicek stole the ball

      What version includes the fix?

       
      • Leon Bottou

        Leon Bottou - 2015-05-18

        On Sunday, May 17, 2015 11:51:40 PM Havlicek stole the ball wrote:

        What version includes the fix?
        Git's master branch
        - L.

         
  • Leon Bottou

    Leon Bottou - 2015-02-28
    • status: open --> closed
     
  • Havlicek stole the ball

    /edit:

    Do you want the original pdf-file (for verfication)?

     

    Last edit: Havlicek stole the ball 2015-02-28
    • Leon Bottou

      Leon Bottou - 2015-02-28

      On Saturday, February 28, 2015 10:47:15 PM Havlicek stole the ball wrote:

      Do you still want the file (for verification)?

      I got the file. Everything works fine with the new git version. :-).

      The only real question was to decide whether I want to deal with newlines in
      the outline entries. I decide that I did not want to because
      a) the resulting layout was too confusing,
      b) is there a difference between cr or lf or crlf?
      For instance under linux/qt-4.8 the cr was displayed as a small arrow.
      But your screenshot shows the cr interpreted as a newline (was this a PC?)
      Anyway, this seems way too finicky.

      Therefore I compress all spaces and everything works fine.

      • L.
       
      • Leon Bottou

        Leon Bottou - 2015-02-28

        On Saturday, February 28, 2015 05:53:59 PM Leon Bottou wrote:

        On Saturday, February 28, 2015 10:47:15 PM Havlicek stole the ball wrote:

        Do you still want the file (for verification)?

        I got the file. Everything works fine with the new git version. :-).

        The only real question was to decide whether I want to deal with newlines in
        the outline entries. I decide that I did not want to because
        a) the resulting layout was too confusing,
        b) is there a difference between cr or lf or crlf?
        For instance under linux/qt-4.8 the cr was displayed as a small arrow.
        But your screenshot shows the cr interpreted as a newline (was this a
        PC?) Anyway, this seems way too finicky.

        Therefore I compress all spaces and everything works fine.

        • L.
         

Log in to post a comment.