Skip to content

nicholasdavidbrown/azure-print2pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

print2pdf

This repository contains the source code to deploy a Microsoft Azure Function App with the purpose of converting a styled webpage into to an optimised PDF document.

The function application utilises Puppeteer to run a Chromium browser instance which has the in-built Print tool. Following the PDF creation, there is a layer of compression applied to ensure the produced PDFs are as web optimised as possible. 

Getting Started

Local Development

To run this code locally, you will need to have the following:

Deployment

To deploy this code, you will need to have the following:

  • A Microsoft Azure subscription
  • Created a Microsoft Azure Function App with the following settings:
Function App name: ANY
Deploy code or container image?: Code
Runtime stack: Node.js
Version: 18+
Region: ANY
Operating System: Linux
Plan type: Consumption (recommended)
  • Linked the repository to the Function App using the Azure Functions extension for VSCode.

About

A simple node-js library used Puppeteer to print styled web pages to optimised PDF documents.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors