Releases: typst/pdf-writer
Version 0.9.3
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
This release adds an as_bytes
function the Chunk
type (thanks to @cmoog).
Version 0.9.1
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
- Renamed
PdfWriter
type toPdf
(Breaking change) - Added
Chunk
type for writing two things at once - Moved top-level writers from
PdfWriter
toChunk
,Pdf
now derefs toChunk
(Breaking change) - Added
Chunk::renumber
andChunk::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
This release makes name encoding more efficient (less escape sequences).
Version 0.8.0
- Adds support for writing a
StreamShading
withPdfWriter::stream_shading
- Renames
Shading
toFunctionShading
,ShadingType
toFunctionShadingType
,PdfWriter::shading
toPdfWriter::function_shading
andShadingPattern::shading
toShadingPattern::function_shading
- Adds a missing import of the
BlendMode
type (thanks to @LaurenzV) - Adds
is_empty
methods onArray
,TypedArray
,Dict
, andTypedDict
0.7.1
This release adds UnicodeCmap::pair_with_multiple
for mappings from one glyph to multiple codepoints (e.g., for ligatures).
0.7
Breaking changes:
- Rename
destination_direct
todestination
inAction
- Rename
properties_direct
toproperties
inMarkContent
device_n
inColorSpace
now returns aDeviceN
struct
Further changes:
- Full support for ICC-based and
DeviceN
color spaces - Add
OutputIntent
s - Add metadata streams. Check out
xmp-writer
to obtain the metadata payload
0.6
Notable changes:
- Writers for Tagged PDF and Structured Content
- Writers for Name and Number trees
- Support for
TypedArray
andTypedDict
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
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