Skip to content

Releases: typst/pdf-writer

Version 0.12.0

30 Sep 13:37
Compare
Choose a tag to compare
  • Added Content::state_nesting_depth, which can be used to get the q/Q nesting depth for PDF implementation limit compliance
  • Added association_kind method to FileSpec
  • Added AssociationKind enum
  • Added associated_files to Annotation, Catalog, Page, ImageXObject, and FormXObject
  • Added embedded_file_with_unicode to FileSpec
  • Added additional PageModes (Breaking change)
  • Fixed return type of Chunk::refs (from impl IntoIterator to impl ExactSizeIterator, so maybe not actually breaking?)

Version 0.11.0

04 Sep 14:59
Compare
Choose a tag to compare
  • Added Pdf::set_binary_marker (thanks to @LaurenzV)
  • Added Chunk::refs (thanks to @LaurenzV)
  • Added Catalog::associated_files (thanks to @NiklasEi)
  • Added FontDescriptor::{style, descriptor_override, cid_set}
  • Added FontDescriptorOverride type and methods
  • Added CjkClass and WMode enums
  • Added Cmap::{writing_mode, use_cmap_stream, use_cmap_predefined}
  • Added UnicodeCmap::with_writing_mode
  • Added lots of documentation about PDF/A compliance
  • Fixed return type of Catalog::output_intents (Breaking change)

Version 0.10.0

01 Jun 12:08
Compare
Choose a tag to compare
  • Added support for interactive forms (thanks to @tingerrr), specifically
    • Widget annotations
    • Trigger events
    • Field dictionaries
    • Form field types
    • Interactive form dictionaries
  • Added support for videos and multimedia (thanks to @awehrfritz)
  • Added Chunk::destination (thanks to @Heinenen)
  • Added support for decode parameters
  • Fixed Page::annotations, which shall contain indirect references (Breaking change, thanks to @tingerrr)

Version 0.9.3

17 Apr 15:01
Compare
Choose a tag to compare
Version 0.9.3 Pre-release
Pre-release

This release makes UnicodeCmap generic with a default to u16 to fix writing of CMaps for Type 3 and other simple fonts, which support just 256 glyphs.

Version 0.9.2

01 Nov 20:59
Compare
Choose a tag to compare
Version 0.9.2 Pre-release
Pre-release

This release adds an as_bytes function the Chunk type (thanks to @cmoog).

Version 0.9.1

24 Oct 13:21
Compare
Choose a tag to compare
Version 0.9.1 Pre-release
Pre-release

This release fixes a bug with string writing introduced in the previous version. The bug affected the writing of invisible ASCII characters that have one of the two high bits set (only DEL).

Version 0.9.0

04 Oct 11:05
Compare
Choose a tag to compare
Version 0.9.0 Pre-release
Pre-release
  • Renamed PdfWriter type to Pdf(Breaking change)
  • Added Chunk type for writing two things at once
  • Moved top-level writers from PdfWriter to Chunk, Pdf now derefs to Chunk (Breaking change)
  • Added Chunk::renumber and Chunk::renumber_into for changing indirect reference IDs after writing
  • Added Pdf::set_file_id function for setting the file ID
  • Added Ref::{next, bump} for simple ID allocation
  • Marked Ref::{new, get} as const
  • Improved writing of PDF strings
  • Removed Type trait (it wasn't exported before, but used in bounds)

Version 0.8.1

01 Sep 11:45
Compare
Choose a tag to compare
Version 0.8.1 Pre-release
Pre-release

This release makes name encoding more efficient (less escape sequences).

Version 0.8.0

07 Aug 14:30
Compare
Choose a tag to compare
Version 0.8.0 Pre-release
Pre-release
  • Adds support for writing a StreamShading with PdfWriter::stream_shading
  • Renames Shading to FunctionShading, ShadingType to FunctionShadingType, PdfWriter::shading to PdfWriter::function_shading and ShadingPattern::shading to ShadingPattern::function_shading
  • Adds a missing import of the BlendMode type (thanks to @LaurenzV)
  • Adds is_empty methods on Array, TypedArray, Dict, and TypedDict

0.7.1

03 May 08:31
Compare
Choose a tag to compare
0.7.1 Pre-release
Pre-release

This release adds UnicodeCmap::pair_with_multiple for mappings from one glyph to multiple codepoints (e.g., for ligatures).