Skip to content

feat: adds combinePages option to diff per-page#98

Open
EvHaus wants to merge 1 commit intomoshensky:masterfrom
EvHaus:97-per-page-diffing
Open

feat: adds combinePages option to diff per-page#98
EvHaus wants to merge 1 commit intomoshensky:masterfrom
EvHaus:97-per-page-diffing

Conversation

@EvHaus
Copy link

@EvHaus EvHaus commented Oct 12, 2025

Exposes the combinePages option to allow diffing PDFs per page rather than combining all images into one. This is useful when diffing large (20+ page) PDFs.

Fixes #97


function mergeOptionsWithDefaults(options?: CompareOptions): Required<CompareOptions> {
return {
combinePages: options?.combinePages ?? true,
Copy link
Author

Choose a reason for hiding this comment

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

Default for this option is kept as true to ensure this is a non-breaking change.

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.

Feature request: Expose writeImages's combinePages option as a new CompareOption

1 participant