![]() ![]() Then on puppeteer I launched chromium with the following flags: I pasted the previously created profile folder named 'Profile 2' inside the newly created folder. I created a new folder somewhere for chromium to use as its data directory. I set the downloads directory and the default behavior for PDFs to "download PDFs". ![]() I got to a solution that does the job for now using a chrome profile. I tried launching chromium with the -print-to-pdf flag found in this list, with no luck.ĭoes anyone know, if puppeteer can launch chromium with the "download PDF" as the default behavior, without tying it to a profile?ĭoes anyone know if there is another solution for puppeteer to download embedded pdfs? Plus, I can't test this solution on headless mode. The only solution I have come up so far is manually changing the default behavior in chrome://settings/content/pdfDocuments to download the PDF, but every time I restart the browser, it resets. The link opens a new tab and its content look like this: Įmbedded is the pdf I would like to download. I am visiting a page which has a link for a pdf file. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |