Skip to content

tayganr/pdf-functions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pdf-functions

Serverless function that can consume a PDF document residing on Azure Blob Storage, and split each page into an individual PDF.

Prerequisites

  1. Create a Function App (OS = Linux; Runtime stack = Python)
  2. Install Visual Studio Code
  3. Install the Azure Functions extension for Visual Studio Code

If you are new to deploying Python to Azure Functions, check out this document.

Instructions

Once the Azure Function is deployed, the function can be tested via Postman with the following HTTP headers:

  • account_name (Storage account name)
  • account_key (Available via the Azure Portal > Storage Account > Access Keys)
  • input_container (The container within Azure Blob Storage where the input file resides)
  • output_container (The container within Azure Blob Storage where the split pages will be exported to)
  • blob_name (The name of the original PDF document)

Example Postman Call

Input

Output

About

Azure Function examples leveraging the pure-python PDF toolkit PyPDF2, in conjunction with Azure Blob Storage.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages