Skip to content

Commit 7284167

Browse files
authored
Add mergePDFs support (anvilco#34)
* Add support for mergePDFs option on createEtchPacket * Update some packages to fix pre-commit and lint things * Update examples * Fix lint issues * Note doesn't apply anymore * New base * Bump versions, update changelog
1 parent 0472b8b commit 7284167

11 files changed

Lines changed: 361 additions & 308 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ repos:
66
- id: end-of-file-fixer
77
- id: trailing-whitespace
88
- repo: https://github.com/psf/black
9-
rev: 21.9b0
9+
rev: 22.3.0
1010
hooks:
1111
- id: black

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# 1.4.0 (2022-05-10)
2+
3+
- Updated a number of packages to fix linter and pre-commit issues
4+
- Added support for `CreateEtchPacket.merge_pdfs`.
5+
16
# 1.3.1 (2022-03-18)
27

38
- Updated `click` package dependency to `^8.0`

docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
mkdocs==1.2.3; python_version >= "3.6"
2-
pygments==2.10.0; python_version >= "3.5"
2+
pygments==2.12.0; python_version >= "3.6"

examples/create_etch_existing_cast.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
# pylint: disable=duplicate-code
2-
# NOTE: The pylint disable above doesn't actually work (yet?)
3-
# SEE: https://github.com/PyCQA/pylint/issues/214
42

53
from python_anvil.api import Anvil
64
from python_anvil.api_resources.mutations.create_etch_packet import CreateEtchPacket
@@ -34,6 +32,11 @@ def main():
3432
# By default, this will point to your organization support email.
3533
# reply_to_email="[email protected]",
3634
# reply_to_name="My Name",
35+
#
36+
# Merge all PDFs into one. Use this if you have many PDF templates
37+
# and/or files, but want the final downloaded package to be only
38+
# 1 PDF file.
39+
# merge_pdfs=True,
3740
)
3841

3942
# You can reference an existing PDF Template from your Anvil account

examples/create_etch_upload_file.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
# pylint: disable=duplicate-code
2-
# NOTE: The pylint disable above doesn't actually work (yet?)
3-
# SEE: https://github.com/PyCQA/pylint/issues/214
42

53
import base64
64

@@ -42,6 +40,11 @@ def main():
4240
# By default, this will point to your organization support email.
4341
# reply_to_email="[email protected]",
4442
# reply_to_name="My Name",
43+
#
44+
# Merge all PDFs into one. Use this if you have many PDF templates
45+
# and/or files, but want the final downloaded package to be only
46+
# 1 PDF file.
47+
# merge_pdfs=True,
4548
)
4649

4750
# Get your file(s) ready to sign.

0 commit comments

Comments
 (0)