Skip to content

Upgrading weasyprint 56 to 57

Review needed56.1 → 57.2New3Changed5Fixed30Other2

Review neededUpgrade verdict

5 changed defaults.

  • Nothing in this range needs changes to your code. It adds features and fixes.
Nothing to change

No breaking, platform, security or deprecated items in this range.

Nothing in this upgrade needs a code or configuration change.

Generated by DepDelta from published Python source. Not mixed with prose notes.

  • added: function image_orientation(style, name, values)
  • added: function font_variation_settings(tokens)
  • added: function image_orientation(tokens)
  • changed: constructor DocumentMetadata(title=…, authors=…, description=…, keywords=…, generator=…, created=…, modified=…, attachments=…, custom=…) → constructor DocumentMetadata(title=…, authors=…, description=…, keywords=…, generator=…, created=…, modified=…, attachments=…, lang=…, custom=…)
  • added: method Document.build_element_structure(structure, etree_element=…)
  • removed: field Box.download_name
  • added: field InlineBox.link_annotation
  • added: function capitalize(text)
  • added: function read_text(package, resource)
  • changed: function get_image_from_uri(cache, url_fetcher, optimize_size, url, forced_mime_type=…, context=…) → function get_image_from_uri(cache, url_fetcher, optimize_size, url, forced_mime_type=…, context=…, orientation=…)
  • changed: function block_level_layout(context, box, bottom_space, skip_stack, containing_block, page_is_empty, absolute_boxes, fixed_boxes, adjoining_margins, discard, max_lines) → function block_level_layout(context, box, bottom_space, skip_stack, containing_block, page_is_empty=…, absolute_boxes=…, fixed_boxes=…, adjoining_margins=…, discard=…, max_lines=…)
  • changed: function generate_pdf(pages, url_fetcher, metadata, fonts, target, zoom, attachments, finisher, optimize_size, identifier, variant, version, custom_metadata) → function generate_pdf(document, target, zoom, attachments, optimize_size, identifier, variant, version, custom_metadata)
  • added: export pdfua
  • added: function add_metadata(pdf, metadata, variant, version, conformance)
  • added: variable NS
  • removed: variable NS
  • changed: function pdfa(pdf, metadata, version) → function pdfa(pdf, metadata, document, page_streams, version)
  • added: function read_binary(package, resource)
  • added: function pdfua(pdf, metadata, document, page_streams)
  • added: variable VARIANTS
  • changed: constructor Font(pango_font, hb_face) → constructor Font(pango_font)
  • changed: constructor Stream(fonts, page_rectangle, states, x_objects, patterns, shadings, images, *args, **kwargs) → constructor Stream(fonts, page_rectangle, states, x_objects, patterns, shadings, images, mark, *args, **kwargs)
  • added: method Stream.begin_marked_content(box, mcid=…, tag=…)
  • added: method Stream.end_marked_content()
  • added: method Stream.get_marked_content_tag(element_tag)