This is a Node.js tool to download and convert a Prezi presentation into a PDF.
One of my lecturers created his lecture in Prezi and I wanted to work with it on my iPad. Unfortunately, Prezi won't let you download their slide sets as PDF unless you have a Pro Account, which is expensive and restrictive.
So I created this Prezi scraper to download the slides and convert them into a single PDF file. (jonguenther's reason)
In my case (Lautiim), I reworked this because too many of my professors use Prezi, and I couldn't pass the PDF to any AI to create a summary or sum like that. De vago noma en criollo.
- You need a Chromium-based browser (e.g., Google Chrome) installed on your PC.
- Alternatively, you can switch from
puppeteer-coretopuppeteerinpreziscraper.js.
Clone this repository and run:
npm installCurrently, the tool is split into two scripts. preziscraper.js contains the scraper, while imgtopdf.js contains the pdf creation tool, to make a pdf out of the scraped Prezi slides.
If I find the time, I will merge them into one script.
To scrape a Prezi and save them as images, simply run
node preziscraper.js --url [PREZI_URL]
To download a Prezi and save it as a PDF, run:
node preziscraper.js --url [PREZI_URL] --pdfAdditional options:
--widthto set the screenshot width (default:1440)--heightto set the screenshot height (default:1252)--outto set the output folder for images (default:imgin the repo folder)--chromePathto set the path to the Chrome executable [default:C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exefor windows and/usr/bin/google-chromefor everything else]--pdfto automatically generate the PDF after downloading the images. The PDF will be created asprezi.pdfin the repo folder.--delto automatically delete all scraped images after the PDF is created (when used together with--pdf)
node preziscraper.js --url "https://prezi.com/view/your-presentation" --pdfTo transformt the scraped Prezi to PDF, run node imgtopdf.js.
Additional options are:
--into set the input folder [default is./imgin the repo folder]--outto set the output path [default is./prezi.pdfin the repo folder]--deladd this flag to delete all previously scraped images after the convertion is done
The script uses puppeteer-core to control Chrome, access the Prezi presentation, navigate through each slide, and take screenshots.
It then converts those images into a PDF using imgtopdf.js.
The script does not detect when a transition is finished. A fixed timeout of 1200 ms is used between screenshots. If a transition is slow, the screenshot might be taken before the slide is fully loaded.
When running in headless mode, the script may not enter full screen. If you want to see the browser, set headless: false in preziscraper.js.
Now you can easily download and convert your Prezi presentations to PDF!
Love from Argentina!
/\_/\
( o.o )
> ^ <
🇦🇷🇦🇷🇦🇷🇦🇷