Skip to content

Version 0.14.0

Latest

Choose a tag to compare

@reknih reknih released this 02 Oct 09:51
· 2 commits to main since this release
  • Added PDF 2.0 Tagged PDF and document structure features
    • Added capability to use structure namespaces
    • Added PDF 2.0 structure roles with their relations to PDF 1.7 structure roles
    • Added capability to specify the pronunciation for structure tree elements
    • Added StructElement::refs to write the /Ref key, specifying structure elements this element refers to
    • Added PDF 2.0 attribute owners Artifact, HTML-5.00, CSS-3, RDFa-1.10, ARIA-1.1, NSO
    • Allowed writing PDF 2.0 form of the CSS 1 and 2 attribute owners by adding a parameter to Attributes::owner (Breaking change)
    • Added ArtifactAttributes writer
    • Added LayoutAttributes::text_position to write the /TextPosition attribute
    • Added ListAttributes::continued_list and ListAttributes::continued_from to write the /ContinuedList and /ContinuedFrom attributes
    • Added TableAttributes::short to write the /Short attribute
    • Added PDF 2.0 variants to ListNumbering enum (Breaking change)
    • Added boolean parameter to FieldAttributes::checked to use the PDF 2.0 serialization
    • Added variant ListBox to FieldRole enum (Breaking change)
    • Added capability to associate a file with the structure tree root
  • Added the PDF/UA-2 attribute owner FENote and the FENoteAttributes writer
  • Added the missing H structure role from PDF 1.7 (Breaking change)
  • Added default values based on the spec to applicable enums
  • Added the capability to write Auto as a value of LayoutAttributes::glyph_orientation_vertical. The signature of the function changed to accommodate the new data type (Breaking change)
  • Added the capability to write text strings with language escape sequences using TextStrWithLang. For this purpose, many writer methods that previously accepted TextStr as an argument now accept an implementor of the TextStrLike trait (TextStr and TextStrWithLang, Breaking change)
  • Added a mechanism to retrieve the category of a structure role
  • Added PDF 2.0 variants to AssociationKind enum (Breaking change)
  • Fixed a bug where the BlockAlign enum contained the variant Begin instead of Before (Breaking change)
  • Fixed a bug where AttributeOwner::User was serialized to UserDefined instead of the correct UserProperties
  • Fixed an inconsistency where attributes allowing either one or multiple values for each side of a rectangle only exposed one of the APIs. Affected attributes are BorderColor and TPadding (allowed only one side) as well as BorderStyle, BorderThickness, Padding, and TBorderStyle (forced writing all four sides) (Breaking change)
  • Fixed a typo in the API: AppearanceCharacteristics::alterante_caption has been renamed to alternate_caption (Breaking change)
  • Fixed an inconsistency where attributes allowing either one or multiple values for each track in a column container only exposed the latter API. Affected attributes are ColumnWidths and ColumnGap (Breaking change)
  • Fixed a bug where LayoutAttributes::line_height could not be used because the LineHeight struct was not exported