All notable changes to this project will be documented in this file. The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- The alignments of a single TextField inside a Paragraph now work.
- Multiple styles can now have the name 'Default' if they have different style types.
- Added new style attributes to override a certain side (these should mirror the normal ones that encapsulates all sides). This can be used if a an override of a single side is desired, leaving the rest to the inherited style.
- borderTop
- borderBottom
- borderLeft
- borderRight
- borderColorTop
- borderColorBottom
- borderColorLeft
- borderColorRight
- marginTop
- marginBottom
- marginLeft
- marginRight
- paddingTop
- paddingBottom
- paddingLeft
- paddingRight
- Disabled the default text style for paragraps because it was overriding the default text style.
- Fixed overrides for the borders, borderColors, padding attributes in table cell styles.
- AbstractDocument Fixed super/subscripts being flipped.
- AbstractDocument Added support for page column layout.
- AbstractDocument Bugfix non-string text in TextRun, memoize widthOfString() and heightOfString()
- AbstractDocument Pdf handle texts with newlines
- AbstractDocument XML import fix
- Make esm module for better tree shaking. Split AbstractDocExporters into AbstractDocPdf and AbstractDocDocx to make it possible to tree shake heave deps.
- TextStyle does not have alignment anymore
- The Paragraph can now correctly align multiple atom texts that span across the available width
- Added just in time record imageDataByUrl for exporters. Removed base64 encoding in favour of Buffer when mapping image data into pdfkit.
- Added helper functions for Handlebars
- Added characterSpacing
- Handlebars fixes
- Handlebars helpers
- Replaced Mustache with Handlebars
- Changed Markdown.create so it always returns a Group since downstream functions assume no arrays.
- Added default format for unordered lists
Switch to ES Modules from CommonJSLibraries should be in commonjs, for now...
- Switch from yarn to pnpm.
- AD xml fixes.
- Support abstract images with dashed lines in the PDF exporter
- pdfkit 0.12.x -> 0.15.0
- React 16 -> 18
- Rambda
- Added added
fontWeightto TextStyle as an alternative to specify font weight. This will override the flagslight,normal,bold,mediumBoldandextraBold. - Added the additional font weights
lightandextraBoldto TextSyle
- Fixed bug where descendant text styles didn't override font weight correctly
6.15.0 - 2024-02-09
- Added support for explicit line breaks inside paragraphs
- Custom XML elements
- Exported ImageResources type
- Added an XML validator using Mustache
- Added export options for creating PDFs, allows setting a compression flag for smaller file size
6.10.4 - 2023-04-25
- Abstract doc xml
v.6.9.6 - 2023-04-13
- Improve table layout measurement for long cells combined with row spans
v.6.9.5 - 2023-04-13
- Improve table layout measurement for long cells combined with row spans
v.6.9.4 - 2022-10-03
- Word text uses the font from style.fontFamily
v.6.9.3 - 2022-06-09
- Placeholder for TocSeparator in word
- Grouping implemented with keepNext for word
- Fix for page orientation in word
v.6.9.0 - 2022-06-03
- Support for PNG and URL images with upgrade of abstract-image to 3.3.0
- Fix for docx, now parsing page dimensions.
v6.8.1 - 2022-04-07
- Fixed crash when an SVG has 0 in a dasharray
v6.8.0 - 2022-03-04
- Added width field for TocSeparator
v6.7.2 - 2022-02-16
- Fixed footers height being too large when using absolute positioned elements
- Fixed text style property 'underline' now affecting if hyperlinks get underlined or not. By default hyperlinks are underlined.
v6.7.0 - 2022-02-15
- Added baseline text style field
v6.6.0 - 2022-02-09
- Added absolute positioning for section elements when rendering PDFs in abstract document
- Fixed margin left and right not affecting paragraphs
v6.5.1 - 2022-01-05
- Added italic and mediumBold as options for texts in abstract image
- Fixed bold text rendering for abstract image texts
v6.4.0 - 2021-11-24
- Add feature to allow setting border colors of cells separately
- Add table cell parameter "rowSpan" to allow setting the number of rows a cell should span
- Allow tables to be split and continue on the next page if they overflow a page
- Add support for repeatable headers for tables
- Catch-up of the changelog.
- Parsing svg colors to lower case to work with Svg-To-PdfKit.
- Splitting tables if they are directly after each other.
- Fix crash when tables has no rows
- Fix table layout when using Infinity on column widths
- Fix cell border widths not setting properly
v6.0.1 - 2021-09-02
- Reminder to update changelog.
v6.0.0 - 2021-09-02
- Positioning for sub/super script has been changed.
- New logic for concatinating textatoms within the same paragraph.
- Fixed alignment offset for underscore.
- Fixed so vertical alignment in cells consider cell padding.
- Update react from 15.0.34 to 16.9.0.
- Fixes a crash when creating pdfs with markdown/svgs. Importing with * no longer works after the build/ts change.
v5.1.2 - 2021-05-25
- Added hyperlinks for Docx exporter.
- Added page orientation for Docx exporter.
- Added option to render abstract document to the Docx format.
v5.0.3 - 2021-03-29
- Added test for fonts.
- Added a compensation for text width in measure to avoid unintentional line break in pdfKit.
- Added a flag called 'lineBreak' to textStyle that if set to false will truncate text rather than making a line breaking if the available space is too short to fit the text. By default the flag is true.
-
Fixed for multiple elements in same cell to align.
-
Fixed vertical alignment of atom in a tableCell.
- Start of changelog.