Giter Club home page Giter Club logo

Comments (10)

Bank-Afolabi avatar Bank-Afolabi commented on July 18, 2024

Any help ?

from alfodoo.

lmignon avatar lmignon commented on July 18, 2024

@Bank-Afolabi The url to the alfresco api seems to be wrong. It should look like
http://x.y.z/alfresco/s/api
image

from alfodoo.

Bank-Afolabi avatar Bank-Afolabi commented on July 18, 2024

@lmignon
Thanks for responding
http://x.y.z /alfresco/s/api for Alfresco Community v5.2.0 gives 404 not found http response.
only http://x.y.z /alfresco/api is valid and thats what am using , my only issue is on docx it calls a different api anytime i upload the file from alfodoo directly.

from alfodoo.

lmignon avatar lmignon commented on July 18, 2024

@Bank-Afolabi For the preview, alfodoo check in the available renditions returned for a document by cmis if one exists for 'pdf'. If a rendition exists for pdf alfodoo calls the CMIS content service ("/alfresco/api/-default-/public/cmis/versions/1.1/browser/root?succinct=true&cmisselector=content&objectId")
If no rendition is found, alfodoo try to call the alfresco api to force the transformation of your docx into pdf... (**/alfresco/api/node/workspace/SpacesStore/**4d6c1e11-6e1c-489e-99ee-0206161f8da7/content/thumbnails/pdf/Training%20.docx?c=force&lastModified=pdf%936)

This url is maybe not valid with alfresco community V5.2.0. It works with alfresco-201701, alfresco-201605, ....

from alfodoo.

Bank-Afolabi avatar Bank-Afolabi commented on July 18, 2024

@lmignon Ok Please , how do i resolve this , from my alfresco share? or how can I make alfodoo find docx rendition instead of converting to pdf.

Putting in mind that when I upload directly the docx file from alfresco share , alfodoo does not have issue rendering it.
Thanks

from alfodoo.

lmignon avatar lmignon commented on July 18, 2024

@Bank-Afolabi

Putting in mind that when I upload directly the docx file from alfresco share , alfodoo does not have issue rendering it.

It's because once the document has been rendered into pdf by alfresco, it's available into the renditions information received from the CMIS service.

To solve this issue we must know which alfresco service can be called to transform a document from docx to pdf using the alfresco api and modify the code here https://github.com/acsone/alfodoo/blob/10.0/cmis_web_alf/static/src/js/form_widgets.js#L33 to build the right url

from alfodoo.

Bank-Afolabi avatar Bank-Afolabi commented on July 18, 2024

@lmignon Thanks for the details.
I hope you and your team will find the time to do this.

Nice work.

from alfodoo.

lmignon avatar lmignon commented on July 18, 2024

@Bank-Afolabi you're welcome to sponsor this work... 😏

from alfodoo.

Bank-Afolabi avatar Bank-Afolabi commented on July 18, 2024

Ok ..will check your store at the conference in Belgium.

from alfodoo.

github-actions avatar github-actions commented on July 18, 2024

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.

from alfodoo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.