Relative Content

Tag Archive for typescriptpdfnext.jspuppeteersupabase

PDF File cannot be opened when uploaded to Supabase, I am using Puppeteer to convert HTML to a PDF

I am making an app that allows users to tailor their resumes to a job description, when they upload their job description and resume, an AI will tailor the resume and send back to html form, which then i use to create a PDF document using Puppeteer, after the AI sends back the response i direct the users to a scan page where they can download the new resume. It works by uploading the resume to Supabase storage first and then downloading it and serving it to the user, my issue is that when the file is downloaded, the PDF does not seem to work and it has no preview, why is that? Even when i go on Supabase dashboard and check the resume myself, it is uploded but the PDF is buggy and does not open.