Skip to content

Commit

Permalink
Fixed CreationDate of PDFs generated, that was broken - close #451 (#452
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Lucas-C authored Jun 8, 2022
1 parent d2fa052 commit b5df110
Show file tree
Hide file tree
Showing 311 changed files with 30 additions and 28 deletions.
7 changes: 4 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@ This can also be enabled programmatically with `warnings.simplefilter('default',
and [`AnnotationFlags`](https://pyfpdf.github.io/fpdf2/fpdf/enums.html#fpdf.enums.AnnotationFlag)
onto [text_annotation()](https://pyfpdf.github.io/fpdf2/fpdf/fpdf.html#fpdf.fpdf.FPDF.text_annotation)
- allowing correctly parsing of SVG files with CSS styling (`style="..."` attribute), thanks to @RedShy
- [`FPDF.star`](https://pyfpdf.github.io/fpdf2/Shapes.html#regular-star): new method added to draw regular stars, thanks to @digidigital and @RedShy
- [`FPDF.ink_annotation`](https://pyfpdf.github.io/fpdf2/Annotations.html#ink-annotations): new method added to add path annotations
- [`FPDF.star()`](https://pyfpdf.github.io/fpdf2/Shapes.html#regular-star): new method added to draw regular stars, thanks to @digidigital and @RedShy
- [`FPDF.ink_annotation()`](https://pyfpdf.github.io/fpdf2/Annotations.html#ink-annotations): new method added to add path annotations
- allowing embedding of indexed PNG images without converting them to RGB colorspace, thanks to @RedShy
- allowing to change appearance of [highlight annotations](https://pyfpdf.github.io/fpdf2/fpdf/fpdf.html#fpdf.fpdf.FPDF.highlight) by specifying a [`TextMarkupType`](https://pyfpdf.github.io/fpdf2/fpdf/enums.html#fpdf.enums.TextMarkupType)
- documentation on how to control objects transparency: [link to docs](https://pyfpdf.github.io/fpdf2/Transparency.html)
- documentation on how to create tables and charts using [pandas](https://pandas.pydata.org/) DataFrames: [link to docs](https://pyfpdf.github.io/fpdf2/Maths.html), thanks to @iwayankurniawan
### Fixed
- support for `"x"` & `"y"` attributes in SVG `<use>` tags
- support for `"x"` & `"y"` attributes in SVG `<use>` tags - _cf._ [#446](https://github.com/PyFPDF/fpdf2/issues/446)
- `CreationDate` of PDFs generated, that was broken - _cf._ [#451](https://github.com/PyFPDF/fpdf2/issues/451)

## [2.5.4] - 2022-05-05
### Added
Expand Down
4 changes: 2 additions & 2 deletions fpdf/drawing.py
Original file line number Diff line number Diff line change
Expand Up @@ -2940,7 +2940,7 @@ def render(self, gsd_registry, style, last_item, initial_point):
a tuple of `(str, new_last_item)`, where `new_last_item` is whatever the old
last_item was.
"""
# pylint: disable=unused-argument,no-self-use
# pylint: disable=unused-argument
if style.auto_close:
return "h", last_item, initial_point

Expand Down Expand Up @@ -3004,7 +3004,7 @@ def render(self, gsd_registry, style, last_item, initial_point):
a tuple of `(str, new_last_item)`, where `new_last_item` is whatever the old
last_item was.
"""
# pylint: disable=unused-argument,no-self-use
# pylint: disable=unused-argument
return "h", Move(initial_point), initial_point

@force_nodocument
Expand Down
27 changes: 14 additions & 13 deletions fpdf/fpdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
from collections import OrderedDict, defaultdict
from collections.abc import Sequence
from contextlib import contextmanager
from datetime import datetime
from datetime import datetime, timezone
from functools import wraps
from math import isclose
from os.path import splitext
Expand Down Expand Up @@ -434,15 +434,15 @@ def __init__(
self.viewer_preferences = None
self.compress = True # Enable compression by default
self.pdf_version = "1.3" # Set default PDF version No.
self.creation_date = True

self._current_draw_context = None
self._drawing_graphics_state_registry = drawing.GraphicsStateDictRegistry()
self._graphics_state_obj_refs = OrderedDict()

self.record_text_quad_points = False
self.text_quad_points = defaultdict(
list
) # page number -> array of 8 × n numbers
# page number -> array of 8 × n numbers:
self.text_quad_points = defaultdict(list)

def _set_min_pdf_version(self, version):
self.pdf_version = max(self.pdf_version, version)
Expand Down Expand Up @@ -681,7 +681,7 @@ def set_producer(self, producer):

def set_creation_date(self, date=None):
"""Sets Creation of Date time, or current time if None given."""
self.creation_date = datetime.now() if date is None else date
self.creation_date = date

def set_xmp_metadata(self, xmp_metadata):
if "<?xpacket" in xmp_metadata[:50]:
Expand Down Expand Up @@ -3219,7 +3219,7 @@ def image(
# disabling bandit rule as we just build a cache key, this is secure
name, img = hashlib.md5(bytes).hexdigest(), name # nosec B303 B324
elif isinstance(name, io.BytesIO):
bytes = name.getvalue()
bytes = name.getvalue().strip()
if _is_svg(bytes):
return self._vector_image(name, x, y, w, h, link, title, alt_text)
# disabling bandit rule as we just build a cache key, this is secure
Expand Down Expand Up @@ -4151,17 +4151,18 @@ def _putinfo(self):
"/Producer": enclose_in_parens(getattr(self, "producer", None)),
}

if hasattr(self, "creation_date"):
if self.creation_date is True:
# => no date has been specified, we use the current time by default:
self.creation_date = datetime.now(timezone.utc)
if self.creation_date:
try:
creation_date = self.creation_date
date_string = f"{creation_date:%Y%m%d%H%M%S}"
info_d["/CreationDate"] = enclose_in_parens(
f"D:{self.creation_date:%Y%m%d%H%M%SZ%H'%M'}"
)
except Exception as error:
raise FPDFException(
f"Could not format date: {creation_date}"
f"Could not format date: {self.creation_date}"
) from error
else:
date_string = f"{datetime.now():%Y%m%d%H%M%S}"
info_d["/CreationDate"] = enclose_in_parens(f"D:{date_string}")

self._out(pdf_dict(info_d, open_dict="", close_dict="", has_empty_fields=True))

Expand Down
1 change: 0 additions & 1 deletion fpdf/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,6 @@ def put_link(self, txt):
self.set_style("u", False)
self.set_text_color(*self.font_color)

# pylint: disable=no-self-use
def render_toc(self, pdf, outline):
"This method can be overriden by subclasses to customize the Table of Contents style."
pdf.ln()
Expand Down
Binary file modified test/add_page_duration.pdf
Binary file not shown.
Binary file modified test/add_page_format.pdf
Binary file not shown.
Binary file modified test/alias_nb_pages.pdf
Binary file not shown.
Binary file modified test/barcodes/barcodes_code39.pdf
Binary file not shown.
Binary file modified test/barcodes/barcodes_interleaved2of5.pdf
Binary file not shown.
Binary file modified test/break_or_add_page.pdf
Binary file not shown.
Binary file modified test/break_or_add_page_draw_fill.pdf
Binary file not shown.
5 changes: 4 additions & 1 deletion test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ def assert_pdf_equal(actual, expected, tmp_path, generate=False):
actual_pdf = actual.pdf
else:
actual_pdf = actual
actual_pdf.set_creation_date(EPOCH)
if (
actual_pdf.creation_date is True
): # default value, meaning we are not testing .creation_date behaviour:
actual_pdf.set_creation_date(EPOCH)
if generate:
assert isinstance(expected, pathlib.Path), (
"When passing `True` to `generate`"
Expand Down
Binary file modified test/drawing/generated_pdf/blending_images.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified test/drawing/generated_pdf/test_blend_modes_blend_mode_hue_.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified test/drawing/generated_pdf/test_stroke_dash_phase.pdf
Binary file not shown.
Binary file modified test/drawing/generated_pdf/test_stroke_miter_limit.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion test/drawing/parameters.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pylint: disable=redefined-outer-name, no-self-use, protected-access
# pylint: disable=redefined-outer-name, protected-access
import pytest

from decimal import Decimal
Expand Down
2 changes: 1 addition & 1 deletion test/drawing/test_drawing.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pylint: disable=redefined-outer-name, no-self-use, protected-access, unused-argument
# pylint: disable=redefined-outer-name, protected-access, unused-argument

import copy
import io
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified test/errors/repeated_calls_to_output.pdf
Binary file not shown.
Binary file modified test/fonts/add_font_unicode.pdf
Binary file not shown.
Binary file modified test/fonts/fonts_emoji_glyph.pdf
Binary file not shown.
Binary file modified test/fonts/fonts_issue_66.pdf
Binary file not shown.
Binary file modified test/fonts/fonts_remap_nb.pdf
Binary file not shown.
Binary file modified test/fonts/fonts_set_builtin_font.pdf
Binary file not shown.
Binary file modified test/fonts/fonts_two_mappings.pdf
Binary file not shown.
Binary file modified test/fonts/render_en_dash.pdf
Binary file not shown.
Binary file modified test/fonts/thai_text.pdf
Binary file not shown.
Binary file modified test/goto_action.pdf
Binary file not shown.
Binary file modified test/goto_next_page_chained.pdf
Binary file not shown.
Binary file modified test/goto_remote_action.pdf
Binary file not shown.
Binary file modified test/graphics_context.pdf
Binary file not shown.
Binary file modified test/highlighted.pdf
Binary file not shown.
Binary file modified test/highlighted_over_page_break.pdf
Binary file not shown.
Binary file modified test/html/html_bold_italic_underline.pdf
Binary file not shown.
Binary file modified test/html/html_custom_heading_sizes.pdf
Binary file not shown.
Binary file modified test/html/html_features.pdf
Binary file not shown.
Binary file modified test/html/html_font_color_name.pdf
Binary file not shown.
Binary file modified test/html/html_heading_hebrew.pdf
Binary file not shown.
Binary file modified test/html/html_headings_line_height.pdf
Binary file not shown.
Binary file modified test/html/html_images.pdf
Binary file not shown.
Binary file modified test/html/html_justify_paragraph.pdf
Binary file not shown.
Binary file modified test/html/html_simple_table.pdf
Binary file not shown.
Binary file modified test/html/html_table_line_separators.pdf
Binary file not shown.
Binary file modified test/html/html_table_line_separators_issue_137.pdf
Binary file not shown.
Binary file modified test/html/html_table_with_border.pdf
Binary file not shown.
Binary file modified test/html/html_table_with_empty_cell_contents.pdf
Binary file not shown.
Binary file modified test/html/issue_156.pdf
Binary file not shown.
Binary file modified test/html/test_customize_ul.pdf
Binary file not shown.
Binary file modified test/html/test_img_inside_html_table.pdf
Binary file not shown.
Binary file modified test/html/test_img_inside_html_table_centered.pdf
Binary file not shown.
Binary file modified test/html/test_img_inside_html_table_centered_with_align.pdf
Binary file not shown.
Binary file modified test/html/test_img_inside_html_table_centered_with_caption.pdf
Binary file not shown.
Binary file not shown.
Binary file modified test/image/alt_text/alt_text_and_title.pdf
Binary file not shown.
Binary file modified test/image/alt_text/test_alt_text_on_two_pages.pdf
Binary file not shown.
Binary file modified test/image/elliptic_clip.pdf
Binary file not shown.
Binary file modified test/image/full_height_image.pdf
Binary file not shown.
Binary file modified test/image/full_width_image.pdf
Binary file not shown.
Binary file modified test/image/image_png_url.pdf
Binary file not shown.
Binary file modified test/image/image_types/image_types_insert_bmp.pdf
Binary file not shown.
Binary file modified test/image/image_types/image_types_insert_gif.pdf
Binary file not shown.
Binary file modified test/image/image_types/image_types_insert_jpg.pdf
Binary file not shown.
Binary file modified test/image/image_types/image_types_insert_jpg_flatedecode.pdf
Binary file not shown.
Binary file not shown.
Binary file modified test/image/image_types/image_types_insert_jpg_jpxdecode.pdf
Binary file not shown.
Binary file modified test/image/image_types/image_types_insert_jpg_windows.pdf
Binary file not shown.
Binary file modified test/image/image_types/image_types_insert_png.pdf
Binary file not shown.
Binary file modified test/image/image_types/image_types_insert_png_alpha.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified test/image/image_types/insert_pillow_issue_139.pdf
Binary file not shown.
Binary file modified test/image/load_base64_data.pdf
Binary file not shown.
Binary file modified test/image/oversized_images_downscale_biggest_1st.pdf
Binary file not shown.
Binary file modified test/image/oversized_images_downscale_biggest_2nd.pdf
Binary file not shown.
Binary file modified test/image/oversized_images_downscale_simple.pdf
Binary file not shown.
Binary file modified test/image/oversized_images_downscale_twice.pdf
Binary file not shown.
Binary file modified test/image/png_images/image_png_insert_png_files.pdf
Binary file not shown.
Binary file modified test/image/png_indexed/image_png_indexed_no_transparency.pdf
Binary file not shown.
Binary file modified test/image/png_indexed/image_png_indexed_transparency.pdf
Binary file not shown.
Binary file modified test/image/rect_clip.pdf
Binary file not shown.
Binary file modified test/image/round_clip.pdf
Binary file not shown.
Binary file modified test/image/svg_image.pdf
Binary file not shown.
Binary file modified test/image/svg_image_fixed_dimensions.pdf
Binary file not shown.
Binary file modified test/image/svg_image_from_bytesio.pdf
Binary file not shown.
Binary file modified test/image/svg_image_style_inherited_from_fpdf.pdf
Binary file not shown.
Binary file modified test/image/svg_image_with_custom_size.pdf
Binary file not shown.
Binary file modified test/image/svg_image_with_custom_width.pdf
Binary file not shown.
1 change: 0 additions & 1 deletion test/image/test_url_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
)
def test_png_url(tmp_path):
pdf = fpdf.FPDF()
pdf.compress = False
pdf.add_page()
png = "https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png"
pdf.image(png, x=15, y=15, w=30, h=25)
Expand Down
Binary file modified test/infinite_loop_with_goto_action.pdf
Binary file not shown.
Binary file modified test/ink_annotation.pdf
Binary file not shown.
Binary file modified test/launch_action.pdf
Binary file not shown.
Binary file modified test/layout/set_no_margin.pdf
Binary file not shown.
Binary file modified test/layout/unit_cm.pdf
Binary file not shown.
Binary file modified test/layout/unit_default.pdf
Binary file not shown.
Binary file modified test/layout/unit_float.pdf
Binary file not shown.
Binary file modified test/layout/unit_in.pdf
Binary file not shown.
Binary file modified test/layout/unit_int.pdf
Binary file not shown.
Binary file modified test/layout/unit_mm.pdf
Binary file not shown.
Binary file modified test/layout/unit_pt.pdf
Binary file not shown.
Binary file modified test/link_alt_text.pdf
Binary file not shown.
Binary file modified test/link_border.pdf
Binary file not shown.
Binary file modified test/link_with_zoom_and_shift.pdf
Binary file not shown.
Binary file modified test/links.pdf
Binary file not shown.
Binary file modified test/local_context_inherited_shared_props.pdf
Binary file not shown.
Binary file modified test/local_context_init.pdf
Binary file not shown.
Binary file modified test/local_context_shared_props.pdf
Binary file not shown.
Binary file modified test/metadata/custom_viewer_preferences.pdf
Binary file not shown.
Binary file modified test/metadata/default_viewer_preferences.pdf
Binary file not shown.
Binary file modified test/metadata/layout-alias-continuous.pdf
Binary file not shown.
Binary file modified test/metadata/layout-alias-default.pdf
Binary file not shown.
Binary file modified test/metadata/layout-alias-single.pdf
Binary file not shown.
Binary file modified test/metadata/layout-alias-two.pdf
Binary file not shown.
Binary file modified test/metadata/page-layout-ONE_COLUMN.pdf
Binary file not shown.
Binary file modified test/metadata/page-layout-SINGLE_PAGE.pdf
Binary file not shown.
Binary file modified test/metadata/page-layout-TWO_COLUMN_LEFT.pdf
Binary file not shown.
Binary file modified test/metadata/page-layout-TWO_COLUMN_RIGHT.pdf
Binary file not shown.
Binary file modified test/metadata/page-layout-TWO_PAGE_LEFT.pdf
Binary file not shown.
Binary file modified test/metadata/page-layout-TWO_PAGE_RIGHT.pdf
Binary file not shown.
Binary file modified test/metadata/page-mode-FULL_SCREEN.pdf
Binary file not shown.
Binary file modified test/metadata/page-mode-USE_ATTACHMENTS.pdf
Binary file not shown.
Binary file modified test/metadata/page-mode-USE_NONE.pdf
Binary file not shown.
Binary file modified test/metadata/page-mode-USE_OC.pdf
Binary file not shown.
Binary file modified test/metadata/page-mode-USE_OUTLINES.pdf
Binary file not shown.
Binary file modified test/metadata/page-mode-USE_THUMBS.pdf
Binary file not shown.
Binary file modified test/metadata/put_info_all.pdf
Binary file not shown.
Binary file modified test/metadata/put_info_some.pdf
Binary file not shown.
Binary file modified test/metadata/setting_old_date.pdf
Binary file not shown.
Binary file modified test/metadata/xmp_metadata.pdf
Binary file not shown.
Binary file modified test/metadata/zoom-default.pdf
Binary file not shown.
Binary file modified test/metadata/zoom-fullpage.pdf
Binary file not shown.
Binary file modified test/metadata/zoom-fullwidth.pdf
Binary file not shown.
Binary file modified test/metadata/zoom-real.pdf
Binary file not shown.
Binary file modified test/named_actions.pdf
Binary file not shown.
Binary file modified test/outline/2_pages_outline.pdf
Binary file not shown.
Binary file modified test/outline/custom_HTML2FPDF.pdf
Binary file not shown.
Binary file modified test/outline/html_toc.pdf
Binary file not shown.
Binary file modified test/outline/html_toc_2_pages.pdf
Binary file not shown.
Binary file modified test/outline/html_toc_with_h1_as_2nd_heading.pdf
Binary file not shown.
Binary file modified test/outline/russian_heading.pdf
Binary file not shown.
Binary file modified test/outline/self_refering_outline.pdf
Binary file not shown.
Binary file modified test/outline/simple_outline.pdf
Binary file not shown.
Binary file modified test/rotation.pdf
Binary file not shown.
Binary file modified test/shapes/class_arc_clockwise.pdf
Binary file not shown.
Binary file modified test/shapes/class_arc_draw_color.pdf
Binary file not shown.
Binary file modified test/shapes/class_arc_end_at_center.pdf
Binary file not shown.
Binary file modified test/shapes/class_arc_fill_color.pdf
Binary file not shown.
Binary file modified test/shapes/class_arc_inclination.pdf
Binary file not shown.
Binary file modified test/shapes/class_arc_line_width.pdf
Binary file not shown.
Binary file modified test/shapes/class_arc_not_circle.pdf
Binary file not shown.
Binary file modified test/shapes/class_arc_start_from_center.pdf
Binary file not shown.
Binary file modified test/shapes/class_arc_style.pdf
Binary file not shown.
Binary file modified test/shapes/class_circle_draw_color.pdf
Binary file not shown.
Binary file modified test/shapes/class_circle_fill_color.pdf
Binary file not shown.
Binary file modified test/shapes/class_circle_line_width.pdf
Binary file not shown.
Binary file modified test/shapes/class_circle_style.pdf
Binary file not shown.
Binary file modified test/shapes/class_dash.pdf
Binary file not shown.
Binary file modified test/shapes/class_ellipse_draw_color.pdf
Binary file not shown.
Binary file modified test/shapes/class_ellipse_fill_color.pdf
Binary file not shown.
Binary file modified test/shapes/class_ellipse_line_width.pdf
Binary file not shown.
Binary file modified test/shapes/class_ellipse_not_circle.pdf
Binary file not shown.
Binary file modified test/shapes/class_ellipse_style.pdf
Binary file not shown.
Binary file modified test/shapes/class_line.pdf
Binary file not shown.
Binary file modified test/shapes/class_rect_draw_color.pdf
Binary file not shown.
Binary file modified test/shapes/class_rect_fill_color.pdf
Binary file not shown.
Binary file modified test/shapes/class_rect_line_width.pdf
Binary file not shown.
Binary file modified test/shapes/class_rect_not_square.pdf
Binary file not shown.
Binary file modified test/shapes/class_rect_style.pdf
Binary file not shown.
Binary file modified test/shapes/class_solid_arc_clockwise.pdf
Binary file not shown.
Binary file modified test/shapes/class_solid_arc_draw_color.pdf
Binary file not shown.
Binary file modified test/shapes/class_solid_arc_fill_color.pdf
Binary file not shown.
Binary file modified test/shapes/class_solid_arc_inclination.pdf
Binary file not shown.
Binary file modified test/shapes/class_solid_arc_line_width.pdf
Binary file not shown.
Binary file modified test/shapes/class_solid_arc_not_circle.pdf
Binary file not shown.
Binary file modified test/shapes/class_solid_arc_style.pdf
Binary file not shown.
Binary file modified test/shapes/dash_pattern.pdf
Binary file not shown.
Binary file modified test/shapes/filled_polygon.pdf
Binary file not shown.
Binary file modified test/shapes/regular_polygon.pdf
Binary file not shown.
Binary file modified test/shapes/regular_star.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/Ghostscript_colorcircle.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/Ghostscript_escher.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/SVG_logo.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/SVG_logo_notransparency.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/arcs01-offset.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/arcs01.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/arcs02.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/circle01.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/cubic01.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/cubic02.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/ellipse01.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/issue_358.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/issue_358b.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/line01.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/polygon01.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/polyline01.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/quad01.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/rect01.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/rect02.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/search.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/simple_rect.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/transforms/matrix.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/transforms/multi.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/transforms/rotate.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/transforms/scale.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/transforms/skew.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/transforms/translate.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/triangle01.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/use-xlink-href.pdf
Binary file not shown.
Binary file modified test/svg/generated_pdf/viewbox.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion test/svg/parameters.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pylint: disable=redefined-outer-name, no-self-use, protected-access
# pylint: disable=redefined-outer-name, protected-access, unnecessary-lambda-assignment
import pytest

from contextlib import contextmanager
Expand Down
5 changes: 2 additions & 3 deletions test/svg/svg_sources/use-xlink-href.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion test/svg/test_svg.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pylint: disable=redefined-outer-name, no-self-use, protected-access
# pylint: disable=redefined-outer-name, protected-access
import io
from pathlib import Path

Expand Down
Binary file modified test/template/flextemplate_elements.pdf
Binary file not shown.
Binary file modified test/template/flextemplate_multipage.pdf
Binary file not shown.
Binary file modified test/template/flextemplate_offset.pdf
Binary file not shown.
Binary file modified test/template/flextemplate_rotation.pdf
Binary file not shown.
Binary file modified test/template/template_code39.pdf
Binary file not shown.
Binary file modified test/template/template_code39_defaultheight.pdf
Binary file not shown.
Binary file modified test/template/template_justify.pdf
Binary file not shown.
Binary file modified test/template/template_multipage.pdf
Binary file not shown.
Binary file modified test/template/template_nominal_csv.pdf
Binary file not shown.
Binary file modified test/template/template_nominal_hardcoded.pdf
Binary file not shown.
Binary file modified test/template/template_qrcode.pdf
Binary file not shown.
Binary file modified test/template/template_rect_background.pdf
Binary file not shown.
Binary file modified test/template/template_textstyles.pdf
Binary file not shown.
Binary file modified test/text/cell_centering.pdf
Binary file not shown.
Binary file modified test/text/cell_ln_newpos.pdf
Binary file not shown.
Binary file modified test/text/cell_markdown.pdf
Binary file not shown.
Binary file modified test/text/cell_markdown_bleeding.pdf
Binary file not shown.
Binary file modified test/text/cell_markdown_right_aligned.pdf
Binary file not shown.
Binary file modified test/text/cell_markdown_with_ttf_fonts.pdf
Binary file not shown.
Binary file modified test/text/cell_newpos.pdf
Binary file not shown.
Binary file modified test/text/cell_table_unbreakable.pdf
Binary file not shown.
Binary file modified test/text/cell_table_with_pagebreak.pdf
Binary file not shown.
Binary file modified test/text/cell_without_w_nor_h.pdf
Binary file not shown.
Binary file modified test/text/clip_text_modes.pdf
Binary file not shown.
Binary file modified test/text/ln_0.pdf
Binary file not shown.
Binary file modified test/text/ln_1.pdf
Binary file not shown.
Binary file modified test/text/ln_positioning_and_page_breaking_for_cell.pdf
Binary file not shown.
Binary file modified test/text/ln_positioning_and_page_breaking_for_multicell.pdf
Binary file not shown.
Binary file modified test/text/multi_cell_border_thickness.pdf
Binary file not shown.
Binary file modified test/text/multi_cell_font_leakage.pdf
Binary file not shown.
Binary file modified test/text/multi_cell_j_paragraphs.pdf
Binary file not shown.
Binary file modified test/text/multi_cell_ln_1.pdf
Binary file not shown.
Binary file modified test/text/multi_cell_ln_3.pdf
Binary file not shown.
Binary file modified test/text/multi_cell_ln_3_table.pdf
Binary file not shown.
Binary file modified test/text/multi_cell_ln_newpos.pdf
Binary file not shown.
Binary file modified test/text/multi_cell_markdown.pdf
Binary file not shown.
Binary file modified test/text/multi_cell_markdown_justified.pdf
Binary file not shown.
Binary file modified test/text/multi_cell_markdown_with_fill_color.pdf
Binary file not shown.
Binary file modified test/text/multi_cell_markdown_with_ttf_fonts.pdf
Binary file not shown.
Binary file modified test/text/multi_cell_newpos.pdf
Binary file not shown.
Binary file modified test/text/multi_cell_table_unbreakable.pdf
Binary file not shown.
Binary file modified test/text/multi_cell_table_unbreakable2.pdf
Binary file not shown.
Binary file modified test/text/multi_cell_table_unbreakable_with_split_only.pdf
Binary file not shown.
Loading

0 comments on commit b5df110

Please sign in to comment.