I want to compress pdf and wants cloud api and docker image for the same

I want to compress pdf and wants cloud api and docker image for the same
Please share document links for cloud api as well as docker image and how to use them in Nodejs

Hi, @deepalig11 !

I’m sorry but we don’t have an article precisely about your question.
Here are some useful links:

You should use postOptimizeDocument function to compress PDFs.

Please go to aspose-pdf-cloud-node.js/Examples/PostOptimizeDocument.js at master · aspose-pdf-cloud/aspose-pdf-cloud-node.js · GitHub

optimize document is working for cloud api but when I am trying in self hosting environment
there I am getting error.
Please suggest how to pass the path and name of file for this.
my file is stored in /data/merge/testpdf.pdf
{
Code: ‘internalError’,
Message: “Exception of type ‘System.OutOfMemoryException’ was thrown.”,
Description: ‘Operation Failed. Internal error.’,
DateTime: ‘2024-05-04T19:50:20.9720249Z’,
InnerError: null
}