Skip to content

PDFCLOUD-5551 Add client methods to flatten layers in PDF#16

Merged
datalogics-kam merged 1 commit intopdfrest:mainfrom
datalogics-cgreen:pdfcloud-5464-flatten-layers
Feb 17, 2026
Merged

PDFCLOUD-5551 Add client methods to flatten layers in PDF#16
datalogics-kam merged 1 commit intopdfrest:mainfrom
datalogics-cgreen:pdfcloud-5464-flatten-layers

Conversation

@datalogics-cgreen
Copy link
Copy Markdown
Contributor

@datalogics-cgreen datalogics-cgreen commented Jan 20, 2026

Adds a new Flatten Layers PDF endpoint to the client surface, with matching payload validation and full sync/async test coverage (unit + live). The change wires a new flatten_layers helper to /flattened-layers-pdf, introduces the payload model enforcing single-PDF input and output prefix rules, and adds request customization + error-path tests.

  • Add PdfRestClient.flatten_layers and AsyncPdfRestClient.flatten_layers for layer flattening
  • Introduce PdfFlattenLayersPayload to validate/serialize single-PDF inputs and output prefix
  • Add unit tests covering success, customization, async flows, and validation errors
  • Add live tests for success and server-side invalid-id errors

@datalogics-gwalczak datalogics-gwalczak changed the title Pdfcloud 5464 flatten layers PDFCLOUD-5464 flatten layers Jan 21, 2026
@datalogics-cgreen datalogics-cgreen changed the title PDFCLOUD-5464 flatten layers PDFCLOUD-5551 Add client methods to flatten layers in PDF Jan 30, 2026
@datalogics-cgreen datalogics-cgreen force-pushed the pdfcloud-5464-flatten-layers branch from 6793c3c to fab2536 Compare February 11, 2026 20:45
@datalogics-cgreen datalogics-cgreen marked this pull request as ready for review February 11, 2026 23:51
Assisted-by: Codex
@datalogics-cgreen datalogics-cgreen force-pushed the pdfcloud-5464-flatten-layers branch from fab2536 to e53036a Compare February 16, 2026 16:30
Copy link
Copy Markdown
Contributor

@datalogics-kam datalogics-kam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Tests pass
  • Very simple interface
  • Codex found one red herring, which I don't think is important.

@datalogics-kam datalogics-kam merged commit b92af05 into pdfrest:main Feb 17, 2026
15 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.

2 participants