feat: integrate fix page size functionality into the workflow by extracting core logic to a utility and adding a new workflow node.

This commit is contained in:
alam00000 committed 2026-03-07 14:33:33 +05:30
1 parent c2147a2f20
commit d32251014e
5 files changed
+390 -188

No files matched your search

+8
View File
@@ -13,6 +13,7 @@ import { ReversePagesNode } from './reverse-pages-node';
import { AddBlankPageNode } from './add-blank-page-node';
import { DividePagesNode } from './divide-pages-node';
import { NUpNode } from './n-up-node';
import { FixPageSizeNode } from './fix-page-size-node';
import { CombineSinglePageNode } from './combine-single-page-node';
import { CropNode } from './crop-node';
import { GreyscaleNode } from './greyscale-node';
@@ -298,6 +299,13 @@ export const nodeRegistry: Record<string, NodeRegistryEntry> = {
description: 'Arrange multiple pages per sheet',
factory: () => new NUpNode(),
},
FixPageSizeNode: {
label: 'Fix Page Size',
category: 'Organize & Manage',
icon: 'ph-frame-corners',
description: 'Standardize all pages to a target size',
factory: () => new FixPageSizeNode(),
},
CombineSinglePageNode: {
label: 'Combine to Single Page',
category: 'Organize & Manage',