Here are some information about the versions of IDML-Creator, when they were released and what changes there were.
InDesignVersionEnum supports now version 2021.
embedImage()method. It is available in the classes
MetaDataprovides some methods for adding authors and contact information.
bitandblack/composer-helperhas been updated, and it's usage too. This fixes some incompatibilities with different environments.
TransformAttributeOptionto improve the work with ObjectStyles.
IDML\Content\CalculatorTraithas been replaced with the
Spread::insertPage()has been replaced with
Content::addDesignMap()has been replaced with
Page::addTextFrame()has been replaced with
Page::addRectangle()has been replaced with
Page::addGraphicLine()has been replaced with
TextWrapPreference::setTextWrapOffset()has been replaced with
QRCodeclass has some setters and getters now.
TableStylehave a second parameter in their method
setBasedOn(). If set to true, the inheritance will actively change to children's classes values. The inheritance can by manually triggered by calling the method
updateInheritance(). Also, there's a new method
addChild()what is the opposite of
bitandblack/idml-writercaused error messages. This has been fixed now.
GREP expressions can be added to Paragraph Styles now.
Added possibility to set a characters as subscript or superscript in two ways:
Instead of adding
new Text() into a CharacterStyleRange
new Subscript() or
new Superscript() can be used.
setPosition() now. Its values come from the
A lot of Enums have been added.
Variable fonts can be used now. See
example/variable-fonts.php for a use case.
SVG images can be added now.
The color of borders above and below a paragraph can be set.
Paragraphs can have borders and shadings now.
Paragraphs can have column rules now.
When a property has been set with the help of an Enum, its getter method will also return the Enum.
Content some setters have been renamed to make their behaviour clearer:
composer.lock has been removed. Also some dependencies have been updated.
strikeThruis now from type
intvalues when they should be
float. This has been fixed now.
Fixed handling of spanned or splitted columns and added
SpanColumnType to define the column type in paragraph styles.
Fixed the handling of special characters.
Added a lot of classes for a better handling of special characters. They are all under the namespace
All of them can be used inside a
CharacterStyleRange, for example:
<?php use IDML\Content\Story\Story; use IDML\Content\Story\ParagraphStyleRange; use IDML\Content\Story\CharacterStyleRange; use IDML\Content\SpecialChars\AutoPageNumber; $story = new Story(); $story->setContent( new ParagraphStyleRange( null, new CharacterStyleRange( null, new AutoPageNumber() ) ) );
Tabulators have been refactored and can be used with the new class
To make it clearer that multiple tabulators can be added to a paragraph style, the method
setTabulator has been renamed to