Skip to content

32781 - Legal API: accept legal size court order PDFs - #4986

Merged
benjamin-bc-gov merged 1 commit into
bcgov:mainfrom
benjamin-bc-gov:32781-court-order-legal-size-pdf
Nov 27, 2026
Merged

benjamin-bc-gov merged 1 commit into
bcgov:mainfrom
benjamin-bc-gov:32781-court-order-legal-size-pdf

Conversation

@benjamin-bc-gov

@benjamin-bc-gov benjamin-bc-gov commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

Issue #: /bcgov/entity#32781

Description of changes:

  • Court order documents (courtOrder.fileKey and each new entry in courtOrder.files) are no longer required to be letter size. validate_pdf is called with verify_paper_size=False for them, so legal size court orders are accepted; the 30 MB limit, the encryption check and the readable-PDF check stay.
  • Other PDF uploads (rules, memorandum, affidavit) keep the letter-size check.
  • Test: the court order file test now expects a document with a non-letter page to pass.
  • legal-api 3.1.75

Business and policy confirmed on #23893 that the page size restriction should go for court orders. The matching UI changes are bcgov/business-ui (Nuxt court order filing) and bcgov/business-filings-ui (legacy page); this API change needs to be deployed first, otherwise a legal size file is accepted by the UI and rejected at submission.

Related PRs (same ticket): bcgov/business-ui#632 (new court order filing), bcgov/business-filings-ui#840 (legacy page for co-ops and firms). This API change deploys first.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the lear license (Apache 2.0).

@benjamin-bc-gov

Copy link
Copy Markdown
Collaborator Author

UI previews for the two matching PRs are checked with a legal size file, screenshots on bcgov/business-ui#632 and bcgov/business-filings-ui#840.

@benjamin-bc-gov
benjamin-bc-gov force-pushed the 32781-court-order-legal-size-pdf branch from 8ebc124 to 6b86038 Compare November 27, 2026 16:27
@sonarqubecloud

Copy link
Copy Markdown

@benjamin-bc-gov
benjamin-bc-gov merged commit dd33372 into bcgov:main Nov 27, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants