TTMSFNCPDFLib

I forgot to add, that it should then render the characters, both unicode and non-unicode characters correctly. The HTML file "PDFExportSample.html" should look like:




<!DOCTYPE html>
<html lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta content="width=device-width, initial-scale=1" name="viewport"/>
    <meta $(ThemeColor)/>
    <noscript>Your browser does not support JavaScript!</noscript>
    <link href="data:;base64,=" rel="icon"/>
    <meta $(Manifest)/>
    <title>TMS Web Project</title>
    <script src="$(ProjectName).js" type="text/javascript"></script>
    <style>
     @font-face {
        font-family: 'Gisha';
        src: url(Gisha.ttf) format('truetype');
      }
    </style>
  <script src="http://www.tmssoftware.biz/tmsweb/zlib/dist/pako.js" type="text/javascript"></script>
</head>
  <body>
<meta $(BodyParameters)/>
  </body>
  <script type="text/javascript">rtl.run();</script>
</html>

Pieter Scheldeman2019-07-17 15:24:26

Thanks Pieter. That works great and also stopped the error popping up from Adobe.

Great!

I unfortunately I spoke a little too soon. This is working fine when run locally but when I put it on our web server, the problem stil exists with the £ symbol. Any ideas?

It might be possible that the access to our server for pako.js is the issue. Perhaps you can upload pako on your server and reference it instead. Then you can change the link from


  <script src="http://www.tmssoftware.biz/tmsweb/zlib/dist/pako.js" type="text/javascript"></script>

to

  <script src="http://www.myserver.com/myproject/zlib/dist/pako.js" type="text/javascript"></script>

The files can be download at the following link:
http://www.tmssoftware.net/public/webcore/pdf/pako.zip

If you keep experiencing issues after applying this, please send us a link to your project uploaded to your server with the debug files active (.map file) so we can debug this.

Pieter Scheldeman2019-07-17 16:03:52

Thanks. That resolved the problem.

Great!!

An additional question, for testing purposes.

If you change the link


<script src="http://www.tmssoftware.biz/tmsweb/zlib/dist/pako.js" type="text/javascript"></script>


to


<script src="https://download.tmssoftware.com/tmsweb/zlib/dist/pako.js" type="text/javascript"></script>


Does the application work when you upload that to your server?
And does your server work under HTTPS?

Pieter Scheldeman2019-07-17 17:06:18

Yes, that change works. Our server is https

Thanks!