ICEpdf
  1. ICEpdf
  2. PDF-1185

Make ICEpdf document object serializable

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 6.2.5
    • Fix Version/s: None
    • Component/s: API
    • Labels:
      None
    • Environment:
      icepdf

      Description

      Question from client as to whether It is possible to make the icdpdf document object serializable?
      The purpose is to make one of two:
      1. Distributed web session
      2. Distributed Cache

        Activity

        Hide
        Judy Guglielmin added a comment -

        The Document object is the root object of a massive object tree.  It would be difficult to make the object serializable especially given how closely bound the object is to a large byte stream representing a PDF document.   The serialized object sized would likely be extremely large and wouldn’t be a good candidate for session replication.

        From a viewer point of view there is a small amount of data that needs to be capture to show a page in a new session: file or byte stream location, page number and any view specific info like zoom or rotation.  It is recommended that the user build a very small state object that would be serializable.  The document class is very cheap to recreate and the random access nature of the byte stream can make grabbing page data very efficient even if done from scratch on  different server node.

        Show
        Judy Guglielmin added a comment - The Document object is the root object of a massive object tree.  It would be difficult to make the object serializable especially given how closely bound the object is to a large byte stream representing a PDF document.   The serialized object sized would likely be extremely large and wouldn’t be a good candidate for session replication. From a viewer point of view there is a small amount of data that needs to be capture to show a page in a new session: file or byte stream location, page number and any view specific info like zoom or rotation.  It is recommended that the user build a very small state object that would be serializable.  The document class is very cheap to recreate and the random access nature of the byte stream can make grabbing page data very efficient even if done from scratch on  different server node.

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Judy Guglielmin
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: