The problem is the same for firefox as well. Here is the code that saves the PDF with axios in chrome. The original pdf content is completely gone. However, when I use axios in chrome, the pdf downloads automatically, but the pdf is blank except for the new text i have overlaid in the form fields. When I tested this endpoint in postman with the save and download option, it worked correctly and saved the file with all the text overlaid on top of the original pdf after prompting me to download the file. Return send_file(pdf_buffer, as_attachment=True, attachment_filename='file.pdf', mimetype='application/pdf') # pdf buffer is a BytesIO object that contains the pdf I'm trying to download a PDF in my browser that i have inserted text into (through pdf form fields) using axios from a flask server I am running.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |