Published 2026-02-02
This is a port of the java libHHUTIL.com.hh.util.stacker classes to dart.

This package constains generic stacker classes ("inslag schema's") to generate PDF-stacks.
Each stacker algorithm:
StackDescriptor and a PageDescriptor for maximum flexibility.IMediaSource).GenericMediaTarget that can be extended for your application (use pdflib to generate pdf files).PdflibWrapper instance by registering it with GetIt.work_java for examples of GenericMediaTarget, a dart example is to be done yet.IStackDescriptor mandatory for IMediaTarget.doAdvanceDocument and doAdvancePage calls from inside IMediaTarget. You must call these explicitly from your algorithm implementation.doUndoDocument and doUndoPage if you want to cancel empty documents or pages.flutter_test and changed to test (this is not a flutter package).IMediaTarget instance to the FilenameCallback function.typedef FilenameCallback = String Function(int value); to typedef FilenameCallback = String Function(IMediaTarget target);.get_it dependency.IMediaTargetBuilder::setUseCache.IMediaTargetBuilder::getUseCache.SnakeStacker could not handle double-sided pages.setCount to PdfMediaSourceBuilder to provide a page count if it was already available somewhere.OneOnOne to OneUp.generate_stacks_test that demonstrates a Cut-and-stack stacker of intermediate stacks.