Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Export PDF is generating pdf with one column and getting cut after wards

    We're using "SmartClient Version v9.1p_2014-04-10/PowerEdition". We're facing issue when we export huge word(s) without spaces it breaking the pdf content as those words are not wrapped ( see attachment)

    When we apply “table-layout:fixed;” content is overflowing from the pdf cell and overlapping with other fields and overflowing out of the page.

    We tried with "flying-saucer-core" jar, as mentioned in below URL; it fixed the word wrap issue but it is throwing "NoSuchMethodError".
    https://github.com/flyingsaucerproje...7d86518598ac45

    Also, we find from smartclint site, core-renderer-R8-isomorphic jar is the fix for "NoSuchMethodError" issue and we're not clear what is the next step.
    http://www.smartclient.com/smartgwt-...endencies.html

    Can you please let us know below info:
    * What are the differences between "core-renderer-R8-isomorphic.jar" source code and "flying-saucer-core.jar" source code.
    * What is the different between "core-renderer-R8-isomorphic.jar" to that of core-renderer-R8.jar"
    * Will it work if we implement the same changes in "core-renderer-R8-isomorphic" jar.
    * Where I'll get "core-renderer-R8-isomorphic" source code.
    Attached Files

    #2
    core-renderer-R8-isomorphic.jar has exactly the same code as core-renderer.jar. The only difference is that core-renderer.jar is linked against iText2.0 and core-renderer-R8-isomorphic.jar is linked against iText 2.1. See this thread (which is mentioned in the lib-iTextAlternate/README.txt file) for context: https://code.google.com/p/flying-sau.../detail?id=126

    To fix, switch your project from using lib/core-render.jar and lib/iText-2.0.8.jar to using lib-iTextAlternate/core-renderer-R8-isomorphic.jar and lib-iTextAlternate/iText-2.1.7.jar like we advise in the README file.

    The source for core-renderer-R8-isomorphic.jar is the same as core-renderer.jar - we just provided a pre-compiled version for your convenience that is linked against the newer iText. We don't ship the source - but you can obtain it on the web from the same place you can get the core-renderer.jar source.

    As far as I can tell, core-renderer-R8.jar (which we don't ship) is somebody else's attempt to work around the same issue. But note that the first hit on Google for that file returns a JAR that contains somewhat different classes that what we ship. We recommend you use what we shipped - which we tested - rather than a third party attempt at solving this problem, which we definitely won't support.

    Comment


      #3
      [FONT=Arial, Verdana, sans-serif]We are already using lib-iTextAlternate/core-renderer-R8-isomorphic.jar and lib-iTextAlternate/iText-2.1.7.jar. But when we have huge words in the grid, the word wrap is not happening in exported pdf and it is getting cut. According the following url, iText 2.1.7 does not support word-wrap and break-word[/FONT]

      http://stackoverflow.com/questions/1...th-itext-2-1-7

      We need to fix this issue in our application. Do you have any solution which you are planning in next version of your smar client or any work around

      Comment

      Working...
      X