Client components for communications with pyunoservers.
This way we can better make sure to have a solid interface for third-party software.
A basic client to communicate with a running pyunoserver.
Send a request to a running pyuno server to convert to HTML.
The path of the document to be converted is given in path.
The resulting document and all accompanied files (like images, etc.) will reside in a new temporary directory. It is the callers responsibility to remove that directory.
Send a request to a running pyuno server to convert to PDF.
The path of the document to be converted is given in path.
The resulting PDF document will reside in a new temporary directory. It is the callers responsibility to remove that directory.
Send a request to a running pyuno server to convert to HTML.
The document contents is delivered by data, the filename by filename.
The resulting document and all accompanied files (like images, etc.) will reside in a new temporary directory. It is the callers responsibility to remove that directory.
Send a request to a running pyuno server to convert to PDF.
The document contents is delivered by data, the filename by filename.
The resulting PDF document will reside in a new temporary directory. It is the callers responsibility to remove that directory.
Copy the results to a fresh directory.
The source directory will be removed.
This way we make sure that for instance cache directories are not passed to the outside world.
Send a request to a running pyuno server to find a regex.
The document contents is delivered by data, the filename by filename.
Send a request to a running pyuno server to find a regex in a file.
The path of the document to be searched is given in path.
The resulting matches are returned.
Copy file path to temporary dir.
Returns the absolute path to the copied file.
Write data as file named filename in temporary dir.