From 0b83638bddad2ebafd12530a7049d082c3454ead Mon Sep 17 00:00:00 2001 From: Andrew Dillon Date: Mon, 21 Dec 2020 11:02:43 -0600 Subject: [PATCH] Add form flattening to README --- README.md | 58 ++++++++++++++++++++++++-- assets/pdfs/examples/flatten_form.pdf | Bin 0 -> 36308 bytes scratchpad/index.ts | 45 ++++++++++++++------ src/api/form/PDFForm.ts | 15 +++++-- 4 files changed, 98 insertions(+), 20 deletions(-) create mode 100644 assets/pdfs/examples/flatten_form.pdf diff --git a/README.md b/README.md index d5cd5518c..942169b79 100644 --- a/README.md +++ b/README.md @@ -55,8 +55,9 @@ - [Usage Examples](#usage-examples) - [Create Document](#create-document) - [Modify Document](#modify-document) - - [Create Form](#create-form) - _**new!**_ - - [Fill Form](#fill-form) - _**new!**_ + - [Create Form](#create-form) + - [Fill Form](#fill-form) + - [Flatten Form](#flatten-form) - _**new!**_ - [Copy Pages](#copy-pages) - [Embed PNG and JPEG Images](#embed-png-and-jpeg-images) - [Embed PDF Pages](#embed-pdf-pages) @@ -84,8 +85,9 @@ - Create new PDFs - Modify existing PDFs -- Create forms - _**new!**_ -- Fill forms - _**new!**_ +- Create forms +- Fill forms +- Flatten forms - _**new!**_ - Add Pages - Insert Pages - Remove Pages @@ -413,6 +415,54 @@ const pdfBytes = await pdfDoc.save() // • Rendered in an