Content Management and Capture

Content Management and Capture

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  Daeja Viewer - Document PDF Rendering Response Filter Support

    Posted Fri January 14, 2022 11:20 PM

    Hi,

    We have a file type which is currently not supported by Daeja Viewer. Since there are many files of such type in our repository so we have created a service to convert those file types into PDF. I am looking to integrate this Document Conversion service within ICN.

    So, when user tries to open a document of specific file type in Daeja Viewer then I need to get the document content from FileNet and pass it to the PDF conversion service (that we built) for converting to PDF and then the converted PDF should be rendered in Daeja Viewer.

    Please let me know if this can be achieved with the response/request filter or any other approach.



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 2.  RE: Daeja Viewer - Document PDF Rendering Response Filter Support

    Posted Tue January 18, 2022 05:37 PM

    What is the file type that you are trying to convert to PDF? Does Download as PDF action work on it?



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 3.  RE: Daeja Viewer - Document PDF Rendering Response Filter Support

    Posted Tue January 18, 2022 05:40 PM

    iWorks [Numbers, Pages, Keynote....]. Daeja and Download as PDF option does not support this file type. So, it gets downloaded while trying to open the document. So, we are looking for a workaround.



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 4.  RE: Daeja Viewer - Document PDF Rendering Response Filter Support

    Posted Thu January 27, 2022 05:01 PM

    hi Mohan,

    Sorry for the delay in reverting.

    You can try add a custom plugin service that converts and returns updated contents and add a response filter for the getViewoneBootstrap request to edit the docUrl to point to the custom plugin service to tell Daeja to retrieve the content from the custom plugin service instead.

    Here is a sample response filter for the getViewoneBootstrap request.

    https://github.com/ibm-ecm/ibm-content-navigator-samples/blob/master/ViewerToolbarPlugin/src/com/ibm/ecm/extension/viewerToolbar/services/ViewOneBootstrapResponseFilter.java

    In an upcoming interim fix, ICN may have the capability to support iWorks file type, depending this format will be supported by a newer version of the vendor component used for PDF conversion. You can check with me around mid-March for a status on this.



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 5.  RE: Daeja Viewer - Document PDF Rendering Response Filter Support

    Posted Thu January 27, 2022 05:15 PM

    Yes Nanda. I did implement using the same approach but I see the service is called more than once while opening the document in viewer due to which conversion happens more than once. I tried to avoid one request with alt_output request parameter as "Annotations". still conversion happens twice.



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 6.  RE: Daeja Viewer - Document PDF Rendering Response Filter Support

    Posted Thu January 27, 2022 10:09 PM

    Does Daeja cache the content in any location? I tried loading the viewer with the Custom plugin service url for a different document. I can see document conversion happens fine but Daeja always loads the first converted document in the viewer.



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration