https://bugs.documentfoundation.org/show_bug.cgi?id=148980

            Bug ID: 148980
           Summary: sdext xpdfimport (poppler): Garbage characters shown
                    when open certain PDF in Draw
           Product: LibreOffice
           Version: 7.3.2.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Draw
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 179989
  --> https://bugs.documentfoundation.org/attachment.cgi?id=179989&action=edit
1.pdf

When open the attached pdf document in Draw, some characters within the formula
is shown as garbage characters.

Steps to Reproduce:
1. Open the attached 1.pdf with Draw.

Current Result:
There are garbage characters shown. For instance, it shows "将方程^2 − 6�-1 = 0
配方后,原方程变形为( )", rather than 将方程x2 − 6x-1 = 0 配方后,原方程变形为( )" in the 2nd list
paragraph.

Expected result:
No garbage characters in the imported PDF. For instance, the above paragraph
should show as "将方程x^2 − 6x-1 = 0 配方后,原方程变形为( )".

Additional Info:

If I do:
$ /opt/libreofficedev7.4/program/xpdfimport  ./1.pdf

Then I already get the garbage characters:
updateFont 8 0 4 0 0 1045.000000 0 SimSun
drawChar 111.000000 259.009000 121.450000 259.009000 0.050000 0.000000 0.000000
-0.050000 209.000000 将
drawChar 121.439850 259.009000 131.889850 259.009000 0.050000 0.000000 0.000000
-0.050000 209.000000 方
drawChar 131.999250 259.009000 142.449250 259.009000 0.050000 0.000000 0.000000
-0.050000 209.000000 程
endTextObject
restoreState
saveState
updateFillColor 0.000000 0.000000 0.000000 1.000000
updateFillColor 0.000000 0.000000 0.000000 1.000000
updateStrokeColor 0.000000 0.000000 0.000000 1.000000
updateFont 24 0 4 0 0 1045.000000 0 CambriaMath
drawChar 142.440000 259.730000 147.999400 259.730000 0.050000 0.000000 0.000000
-0.050000 209.000000 �
endTextObject
restoreState
saveState

As a result, the garbage characters started early in the
https://cgit.freedesktop.org/libreoffice/core/tree/sdext/source/pdfimport/xpdfwrapper.

If you open the pdf with Evince (i.e. the PDF Viewer in linux Fedora / Gnome),
when you copy paste the paragraph the pasted content is also garbage character.
Since Evince also uses poppler lib, I guess this is a bug in the poppler side.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to