feat: add pdftopdf and wordtopdf functionality

This commit is contained in:
prafull-opensignlabs
2024-05-03 13:20:31 +05:30
parent 0f2862c52e
commit 41e8aa18a7
7 changed files with 349 additions and 205 deletions
@@ -0,0 +1,14 @@
import { PostHog } from 'posthog-node';
const ph_project_api_key = process.env.PH_PROJECT_API_KEY;
const client = new PostHog(ph_project_api_key);
export default async function encryptedpdf(request) {
const email = request.params.email;
if (client) {
client?.capture({
distinctId: email,
event: 'encrypted_pdf_error',
properties: { response_code: 200 },
});
}
return { message: 'success' };
}
+1 -1
View File
@@ -319,7 +319,7 @@ async function PDF(o) {
}
}
} catch (e) {
throw (console.log('Err ', e), e);
throw (console.log('Err in signpdf', e), e);
}
}
export default PDF;