Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-15567

Text formatting like bold text is not preserved when importing odf documents

    Details

      Description

      Text formatting like bold text is not preserved when importing odf documents

      Steps to reproduce

      Create .odf document

      1. Open Open Office
      2. Create a new text document
      3. Enter text:
      This is a odf import test
      This text is partially in bold <---- [written in bold]
      Here we have a image
      [image]
      some more text
      4. In the text above, replace "[image]" with an actuall image:
      Click "Insert" in top menu
      Select "Picture" --> "From File..."
      Select an .gif or .png image you have on the hard drive
      5. Save the document as "ootestimport.odf"

      Import the document in eZ Publish

      1. Log in to ezwebin as admin
      2. Click on "Gettings started" in top menu
      3. Click on OpenOffice "Import" icon in webin toolbar
      4. Click "Browse" button and select the .odf file you stored earlier
      5. Click "Upload file"
      6. Verify that you get message "Document is now imported"
      7. Click on "ootestimport" link ( in "Document imported as ootestimport" )
      8. Verify that the article is displayed correctly:
      This is a odf import test
      This text is partially in bold
      Here we have a image
      [image]
      some more text

      1. odfimport.odt
        63 kB
        Vidar Langseid
      2. ootestexport2.odt
        63 kB
        Vidar Langseid

        Issue Links

          Activity

          Hide
          Vidar Langseid added a comment -

          odfimport.odt document that works

          Show
          Vidar Langseid added a comment - odfimport.odt document that works
          Hide
          Vidar Langseid added a comment -

          ootestexport2.odt document that does not work

          Show
          Vidar Langseid added a comment - ootestexport2.odt document that does not work
          Hide
          Vidar Langseid added a comment -

          Attached is not two documents, one that works and one which does not
          It could be that the document which is not working is generated with a different version of openoffice, and that this is the cause of the problem

          ootestexport2. is made with openoffice 3.0.1

          Show
          Vidar Langseid added a comment - Attached is not two documents, one that works and one which does not It could be that the document which is not working is generated with a different version of openoffice, and that this is the cause of the problem ootestexport2. is made with openoffice 3.0.1
          Hide
          Ricardo Goulart added a comment - - edited

          Hi,

          Just tested the import .odt and made a conclusion.

          If we create a Article in eZp and then export it to .odt, the Article's tag's, such as "bold" "italic" "strong" are displayed correclty.
          

          If we IMPORT the same .odt we had just exported before, the formatting tag's will be displayed correctly again.
          

          BUT:

          If we create a .odt file in Open office writer, save it and later IMPORT it to eZp, the Tag's will be lost.
          
          

          Show
          Ricardo Goulart added a comment - - edited Hi, Just tested the import .odt and made a conclusion. If we create a Article in eZp and then export it to .odt, the Article's tag's, such as "bold" "italic" "strong" are displayed correclty. If we IMPORT the same .odt we had just exported before, the formatting tag's will be displayed correctly again. BUT: If we create a .odt file in Open office writer, save it and later IMPORT it to eZp, the Tag's will be lost.
          Hide
          ezrobot added a comment -

          This issue has been automatically closed due to the lack of activity over a long period of time. It is very likely that it is obsolete, but if you think it is still valid, do not hesitate to reopen it and mention why.

          Show
          ezrobot added a comment - This issue has been automatically closed due to the lack of activity over a long period of time. It is very likely that it is obsolete, but if you think it is still valid, do not hesitate to reopen it and mention why.

            People

            • Assignee:
              unknown
              Reporter:
              Vidar Langseid
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: