mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-28 03:58:45 -06:00
Pictures in templates and data that are BMP or TIFF were left out with a warning. They are now recognised by their signature, sized from their headers, and decoded through the same bounded reader as GIF (first page of a TIFF). A BMP needs a valid info-header size after "BM", so text starting with those two letters is still not taken for one. A BMP or TIFF chosen for an XFA image field is kept in the data as image/bmp or image/tiff, since the layout can now show it.
22 lines
587 B
TOML
22 lines
587 B
TOML
[package]
|
|
name = "pdfcraft-xfa"
|
|
description = "XFA forms: reads a dynamic form's XDP packets and lays its template out as PDF pages and AcroForm fields"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
rust-version.workspace = true
|
|
repository.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
pdfcraft-cos = { workspace = true }
|
|
pdfcraft-fonts = { workspace = true }
|
|
roxmltree = "0.20"
|
|
base64 = "0.22"
|
|
png = "0.18"
|
|
sha2 = "0.11"
|
|
image = { version = "0.25", default-features = false, features = ["bmp", "gif", "tiff"] }
|
|
thiserror = { workspace = true }
|