Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-2375

Problem while generating ps output in arabic

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.1
    • 1.1
    • renderer/ps
    • None
    • Windows 7, 2 GBram

    Description

      We are generating a ps and pdf Arabic output using Apache FOP 1.1. We are using .ttf fonts for the same. PDF output seems to be fine but we are getting some garbage text while generation ps output. As per Apache documentation, ps output format only supports type 1 fonts so we have tried using .pfb fonts but problem has not resolved. When we tried generating output, text on first page of output is fine but from page 2 onward we are getting garbage text. Observation was that if some text is outputted on first page and again on next pages it displays fine but when we try to output something directly on second page or on wards we are facing this issue. Below is the entry that we are using in our .xconf file.
      <renderer mime="application/postscript">
      <!-- This option forces the PS renderer to rotate landscape pages -->
      <!-auto-rotate-landscape>true</auto-rotate-landscape->

      <!-- This option lets you specify additional options on an XML handler -->
      <!--xml-handler namespace="http://www.w3.org/2000/svg">
      <stroke-text>false</stroke-text>
      </xml-handler-->
      <filterList>
      <value>null</value>
      </filterList>
      <filterList type="image">
      <value>flate</value>
      <value>ascii-85</value>
      </filterList>
      <fonts>&tripleFilepfb;</fonts>
      <disable-srgb-colorspace>true</disable-srgb-colorspace>
      </renderer>

      where tripleFilepfb points refers to .XML file containing .ttf fonts.
      Could you please help here? Please let me know if you need any more information.
      Thanks and regards,
      Swapnil

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            swapnil.khante Swapnil Khante
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment