Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • NPO
      #26608

      Hi
      I have a cache problem when I create pdf.
      I have a page with a logo in the upper part. I use pd4ml in different sites but when i create pdf i see always the same logo even if i am in another site.
      This is my code:

      <%@ taglib uri="http://pd4ml.com/tlds/pd4ml/2.6" prefix="pd4ml" %>

      MY HTML…

      I also used:
      System.setProperty(“pd4ml.cache.enable”,”false”);
      But with no luck
      What can I do to disable image cache?
      I also tried to append a suffix to the image, but it doesn’t work because it doesn’t find the image.

      Thanks

      NPO
        #28667

        up

        thanks

        #28668

        4-5 years ago one of our customers faced with the issue like yours. I’ll try to find our discussion thread and to learn how we resolved the problem. I’ll let you know asap.

        It had something to do with a reusing of class instances (implement custom JSP tags) by the JSP framework.

        Please let us know your PD4ML version and the appserver version/type you run PD4ML under.

        NPO
          #28669

          thanks for reply
          We have PD4ML Java Library (don’t remember the version. where can i find it?)

          We have Glassfish App Server as application server

          thanks

          #28670

          You may find the version number in document properties of any generated PDF.

          NPO
            #28671

            The only information I see is:
            PD4ML. HTML to PDF Converter for Java (371b4)

            NPO
              #28672

              any news?

              thanks

              NPO
                #28673

                I’m the only one that have problem with image cache?

                #28674

                Sorry for the delay with the reply. It seems my first suggestion regarding reusing of class instances was wrong.

                In theory the following tags
                [language=xml:2y93anlw] [/language:2y93anlw]

                nested to should help. (Identical System.setProperty(“pd4ml.cache.enable”,”false”) may fail due to server’s security restriction)

                I would also recommend to add debug=”true” attribute to

                In the case if the caching is successfully disabled it should print to server’s log

                cache disabled. (re-)reading

                Please check if it works for you and outputs the debug message.

                NPO
                  #28675

                  Thanks for your reply.
                  I add the tag to my page and I can see the log message:
                  cache disabled. (re-)reading file:/util/images/logo.png|#]

                  But inside pdf I see alway the wrong image.
                  Every night I restart glassfish and the first time i create a pdf the logo is ok. But from that moment I see always that image even if i’m on another site

                  #28676

                  It looks like there is an implicit caching on JDK level. We’ll investigate if it is possible at all.

                  #28677

                  ok
                  any news?

                  thanks

                Viewing 12 posts - 1 through 12 (of 12 total)

                The forum ‘HTML/CSS rendering issues’ is closed to new topics and replies.