Skip to content

Releases: typst/pdf-writer

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).

0.7

27 Apr 11:07
Compare
Choose a tag to compare
0.7 Pre-release
Pre-release

Breaking changes:

  • Rename destination_direct to destination in Action
  • Rename properties_direct to properties in MarkContent
  • device_n in ColorSpace now returns a DeviceN struct

Further changes:

  • Full support for ICC-based and DeviceN color spaces
  • Add OutputIntents
  • Add metadata streams. Check out xmp-writer to obtain the metadata payload

0.6

10 Jun 09:14
Compare
Choose a tag to compare
0.6 Pre-release
Pre-release

Notable changes:

  • Writers for Tagged PDF and Structured Content
  • Writers for Name and Number trees
  • Support for TypedArray and TypedDict of writers (this is a small breaking change because a few manual arrays of writers have been removed)
  • Text strings are now written in PDFDocEncoding instead of UTF-16 if possible

0.5

18 Mar 11:11
Compare
Choose a tag to compare
0.5 Pre-release
Pre-release

This release is mostly a maintainance release, but with a few breaking changes:

  • writer.finish() will panic instead of hanging when an indirect reference id was used twice
  • The gray color space setters were renamed

Further changes:

  • More color space setters, including ProPhoto
  • New example on how to embed an image into a PDF
  • Bumped dependencies and edition