Skip to content

Instantly share code, notes, and snippets.

View danquack's full-sized avatar

Daniel Quackenbush danquack

View GitHub Profile
@geowa4
geowa4 / confluence-to-pdf.js
Created January 3, 2019 03:12
Puppeteer to download Confluence PDF export
// PDF download hack taken from https://github.com/GoogleChrome/puppeteer/issues/610#issuecomment-340160025
const puppeteer = require("puppeteer");
const fs = require("fs");
(async () => {
const browser = await puppeteer.launch({ headless: true });
const page = await browser.newPage();
await page.goto(
"https://synopsys.atlassian.net/wiki/spaces/INTDOCS/pages/622678/Running+Black+Duck+Detect+with+Bamboo"
);