Releases: typst/pdf-writer
Releases · typst/pdf-writer
Version 0.12.0
- 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 toFileSpec
- Added
AssociationKind
enum - Added
associated_files
toAnnotation
,Catalog
,Page
,ImageXObject
, andFormXObject
- Added
embedded_file_with_unicode
toFileSpec
- Added additional
PageMode
s (Breaking change) - Fixed return type of
Chunk::refs
(fromimpl IntoIterator
toimpl ExactSizeIterator
, so maybe not actually breaking?)
Version 0.11.0
- 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
andWMode
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
- 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
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).