MCPcopy Index your code
hub / github.com/OpenSignLabs/OpenSign / convertPdfArrayBuffer

Function convertPdfArrayBuffer

apps/OpenSign/src/constant/Utils.js:2919–2933  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

2917};
2918
2919export const convertPdfArrayBuffer = async (url) => {
2920 try {
2921 const response = await fetch(url);
2922 // Check if the response was successful (status 200)
2923 if (!response.ok) {
2924 return "Error";
2925 }
2926 // Convert the response to ArrayBuffer
2927 const arrayBuffer = await response.arrayBuffer();
2928 return arrayBuffer;
2929 } catch (error) {
2930 console.error("Error fetching data:", error);
2931 return "Error";
2932 }
2933};
2934//`handleSendOTP` function is used to send otp on user's email using `SendOTPMailV1` cloud function
2935export const handleSendOTP = async (email) => {
2936 try {

Callers 5

getDocumentDetailsFunction · 0.90
getDocumentDetailsFunction · 0.90
TemplatePlaceholderFunction · 0.90
embedWidgetsDataFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected