We are using the custom shared components called PDF Tools custom nodes. One of

We are using the custom shared components called PDF Tools custom nodes. One of them is the Extract PDF pages. We currently have a user form that displays a pdf document. The user will have the ability to rotate the pdf document. The problem is we do not know how to save the pdf document after rotation. Does anyone know how to save a pdf document after it has been rotated in a form? Thanks!...

OriginalPostID-128701

OriginalPostID-128701

  Discussion posts and replies are publicly visible

Parents
  • Assuming you want to use the rotation offered by the browser plug-in then they will have to rotate and save to their local computer and you will have to offer the possibility of uploading a new version of the document either in the same form or in the next form via File Upload Component; the node will bot pull it from her computer, the user will need to select Upload and provide the rotated file.

    In the approach of building your own plug-in I was thinking more about:

    1. Show the original PDF
    2. Show a dropdown with standard rotation options (e.g. 90`, 180`, etc)
    3. The user selects one option from the dropdown and submits the form
    4. Between the form 1 and the form 2 (which will display the final result) you place your custom plug-in which does the rotation

    For images there's already a plug-in that does image manipulation such as crop, trim, square and resize meaning you could use the approach #2 I describe in 4 steps above to test this and then enahnce the plug-in to do rotation.

    The plug-in is called Image Utilities (doesn't offer rotation but is a good example) forum.appian.com/.../summary
Reply
  • Assuming you want to use the rotation offered by the browser plug-in then they will have to rotate and save to their local computer and you will have to offer the possibility of uploading a new version of the document either in the same form or in the next form via File Upload Component; the node will bot pull it from her computer, the user will need to select Upload and provide the rotated file.

    In the approach of building your own plug-in I was thinking more about:

    1. Show the original PDF
    2. Show a dropdown with standard rotation options (e.g. 90`, 180`, etc)
    3. The user selects one option from the dropdown and submits the form
    4. Between the form 1 and the form 2 (which will display the final result) you place your custom plug-in which does the rotation

    For images there's already a plug-in that does image manipulation such as crop, trim, square and resize meaning you could use the approach #2 I describe in 4 steps above to test this and then enahnce the plug-in to do rotation.

    The plug-in is called Image Utilities (doesn't offer rotation but is a good example) forum.appian.com/.../summary
Children
No Data