burkkyy / topdf

1 stars 0 forks source link

API for single file and bunch file conversions #5

Open burkkyy opened 3 months ago

burkkyy commented 3 months ago

Context

Create a backend api for the converter. The api should be able to handle single files or an archive of files to convert.

Example Usage

// fileToConvert -> some file buffer that we want coverted to pdf
const res = await fetch("http://ip:5000", {
    method: "POST",
    body: fileToConvert
});
let pdfBuffer = await res.buffer();
burkkyy commented 3 months ago

Implemented single file conversions in #7