Pdfmake/0.2.20 Customized PdfMake FlowAccount Branch #2892
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces several enhancements and fixes across the PDF generation pipeline, focusing on improved table and layer handling, more robust document preprocessing and measurement, better browser compatibility, and support for advanced footer rendering options.
Major improvements and fixes:
1. Enhanced Table and Layer Handling
layersproperty in document nodes, including preprocessing and measurement logic to handle layered content. (src/docPreprocessor.js,src/docMeasure.js) [1] [2] [3] [4]src/docMeasure.js,src/docPreprocessor.js) [1] [2]2. Document Preprocessing and Measurement Robustness
tocsandnodeReferencesfrom arrays to objects for more efficient lookups and manipulation. (src/docPreprocessor.js)src/docPreprocessor.js) [1] [2]svgMeasureandtableLayoutsto prevent undefined errors. (src/docMeasure.js)3. Improved Browser Compatibility
@flowaccount/node-icu-tokenizerto ensure the library works in browser environments without Node.js native bindings, providing a fallback tokenization strategy. (src/browser-extensions/tokenizer-shim.js)4. Footer Rendering and Context Enhancements
src/documentContext.js,src/elementWriter.js) [1] [2] [3] [4]src/documentContext.js,src/elementWriter.js) [1] [2]5. Miscellaneous Fixes and Improvements
src/browser-extensions/pdfMake.js)src/documentContext.js) [1] [2]These changes collectively improve the flexibility, reliability, and browser compatibility of the PDF generation process.