diff --git a/README.md b/README.md index a10a8569f..e84a569a8 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) [![Corpus Coverage : 99.0%](https://img.shields.io/badge/corpus%20coverage-99.0%25-green)]() -[![Text Extraction : 88.6%](https://img.shields.io/badge/text%20extraction-88.6%25-orange)]() +[![Text Extraction : 90.1%](https://img.shields.io/badge/text%20extraction-90.1%25-green)]() [![Public Method Documentation : 100%](https://img.shields.io/badge/public%20method%20documentation-100%25-green)]() [![Downloads](https://pepy.tech/badge/borb)](https://pepy.tech/project/borb) diff --git a/borb/io/filter/run_length_decode.py b/borb/io/filter/run_length_decode.py index fe595e5b8..8d3638faa 100644 --- a/borb/io/filter/run_length_decode.py +++ b/borb/io/filter/run_length_decode.py @@ -7,6 +7,9 @@ (typically monochrome image data, or any data that contains frequent long runs of a single byte value). """ +import logging + +logger = logging.getLogger(__name__) class RunLengthDecode: @@ -28,11 +31,36 @@ def decode(bytes_in: bytes) -> bytes: if len(bytes_in) == 0: return bytes_in + # The RunLengthDecode filter decodes data that has been encoded in a simple byte-oriented format based on + # run length. The encoded data shall be a sequence of runs, where each run shall consist of a length byte + # followed by 1 to 128 bytes of data. If the length byte is in the range 0 to 127, the following length + 1 (1 to 128) + # bytes shall be copied literally during decompression. If length is in the range 129 to 255, the following single + # byte shall be copied 257 - length (2 to 128) times during decompression. A length value of 128 shall denote + # EOF. bytes_out = bytearray() - for i in range(0, len(bytes_in), 2): + i: int = 0 + while i < len(bytes_in): b = bytes_in[i] - n = bytes_in[i + 1] - for j in range(0, n): - bytes_out.append(b) + # A length value of 128 shall denote EOF. + if b == 128: + break + # If the length byte is in the range 0 to 127, the following length + 1 (1 to 128) + # bytes shall be copied literally during decompression. + if 0 <= b <= 127: + length: int = b + 1 + i += 1 + for j in range(0, length): + bytes_out.append(bytes_in[i + j]) + i += length + continue + # If length is in the range 129 to 255, the following single + # byte shall be copied 257 - length (2 to 128) times during decompression + if 129 <= b <= 255: + length: int = 257 - b + i += 1 + for _ in range(0, length): + bytes_out.append(bytes_in[i]) + i += 1 + # return return bytes(bytes_out) diff --git a/borb/io/read/image/jpeg_image_transformer.py b/borb/io/read/image/jpeg_image_transformer.py index 8533d997c..066cbd3b4 100644 --- a/borb/io/read/image/jpeg_image_transformer.py +++ b/borb/io/read/image/jpeg_image_transformer.py @@ -32,7 +32,7 @@ def can_be_transformed( return ( isinstance(object, Stream) and object.get("Type", None) in ["XObject", None] - and object.get("Subtype", None) == "Image" + and object.get("Subtype", None) in ["Image", None] and "Filter" in object and ( object["Filter"] == "DCTDecode" @@ -58,6 +58,14 @@ def transform( # fmt: off assert isinstance(object_to_transform, Stream), "object_to_transform must be of type Stream" # fmt: on + + # warnings + if object_to_transform.get("Type", None) is None: + logger.debug("Image object did not specify /Type /XObject.") + if object_to_transform.get("Subtype", None) is None: + logger.debug("Image object did not specify /Subtype /Image.") + + # read a pixel try: tmp = Image.open(io.BytesIO(object_to_transform["Bytes"])) tmp.getpixel( diff --git a/borb/io/write/ascii_art/ascii_logo.txt b/borb/io/write/ascii_art/ascii_logo.txt index 50eed1948..0aa25146a 100644 --- a/borb/io/write/ascii_art/ascii_logo.txt +++ b/borb/io/write/ascii_art/ascii_logo.txt @@ -1,2 +1,2 @@ -borb version 2.0.26 -Joris Schellekens +borb version 2.0.27 +Joris Schellekens \ No newline at end of file diff --git a/borb/pdf/trailer/document_info.py b/borb/pdf/trailer/document_info.py index 69b55f137..94b461990 100644 --- a/borb/pdf/trailer/document_info.py +++ b/borb/pdf/trailer/document_info.py @@ -123,11 +123,11 @@ def get_number_of_pages(self) -> Optional[Decimal]: """ return self._document["XRef"]["Trailer"]["Root"]["Pages"]["Count"] - def get_file_size(self) -> Optional[int]: + def get_file_size(self) -> Optional[Decimal]: """ This function returns the filesize (in bytes) of this Document """ - return int(self._document("FileSize")) + return self._document.get("FileSize", None) def get_ids(self) -> Optional[List[str]]: """ diff --git a/release_notes.md b/release_notes.md index b8f8bef61..5e37c74d9 100644 --- a/release_notes.md +++ b/release_notes.md @@ -1,4 +1,6 @@ -# :mega: borb release 2.0.26 +# :mega: borb release 2.0.27 This release is a small bugfix release. -- fixed `LZWDecode` \ No newline at end of file +- fixed `RunLengthDecode` +- fixed `ImageTransformer` to allow reading (JPEG) images, even when the `/Type` and `/Subtype` entry are not set +- fixed `DocumentInfo.get_file_size()` \ No newline at end of file diff --git a/setup.py b/setup.py index fe9c14455..7c2dea588 100644 --- a/setup.py +++ b/setup.py @@ -29,7 +29,7 @@ setuptools.setup( name="borb", - version="2.0.26", + version="2.0.27", author="Joris Schellekens", author_email="joris.schellekens.1989@gmail.com", description="borb is a library for reading, creating and manipulating PDF files in python.", diff --git a/tests/corpus/test_extract_text_expect_ground_truth.py b/tests/corpus/test_extract_text_expect_ground_truth.py index 3da804a87..bd89a0fbd 100644 --- a/tests/corpus/test_extract_text_expect_ground_truth.py +++ b/tests/corpus/test_extract_text_expect_ground_truth.py @@ -48,7 +48,7 @@ def __init__(self, methodName="runTest"): @unittest.skip def test_against_specific_file(self): - pdfs = [self.corpus_dir / "0213.pdf"] + pdfs = [self.corpus_dir / "0445_page_0.pdf"] self._test_list_of_documents(pdfs) plt.close("all") diff --git a/tests/output/test_add_all_rubber_stamp_annotations/output.pdf b/tests/output/test_add_all_rubber_stamp_annotations/output.pdf index a83b4825a..bc8bc6f73 100644 Binary files a/tests/output/test_add_all_rubber_stamp_annotations/output.pdf and b/tests/output/test_add_all_rubber_stamp_annotations/output.pdf differ diff --git a/tests/output/test_add_circle_annotation/output.pdf b/tests/output/test_add_circle_annotation/output.pdf index bea2b5f9c..124f8f792 100644 Binary files a/tests/output/test_add_circle_annotation/output.pdf and b/tests/output/test_add_circle_annotation/output.pdf differ diff --git a/tests/output/test_add_free_text_annotation/output_001.pdf b/tests/output/test_add_free_text_annotation/output_001.pdf index 076ab4192..a7b839009 100644 Binary files a/tests/output/test_add_free_text_annotation/output_001.pdf and b/tests/output/test_add_free_text_annotation/output_001.pdf differ diff --git a/tests/output/test_add_free_text_annotation/output_002.pdf b/tests/output/test_add_free_text_annotation/output_002.pdf index b9379dbcc..976152042 100644 Binary files a/tests/output/test_add_free_text_annotation/output_002.pdf and b/tests/output/test_add_free_text_annotation/output_002.pdf differ diff --git a/tests/output/test_add_highlight_annotation/output_001.pdf b/tests/output/test_add_highlight_annotation/output_001.pdf index 3f02948fd..770b7e538 100644 Binary files a/tests/output/test_add_highlight_annotation/output_001.pdf and b/tests/output/test_add_highlight_annotation/output_001.pdf differ diff --git a/tests/output/test_add_highlight_annotation/output_002.pdf b/tests/output/test_add_highlight_annotation/output_002.pdf index 28d219a59..671eb21ad 100644 Binary files a/tests/output/test_add_highlight_annotation/output_002.pdf and b/tests/output/test_add_highlight_annotation/output_002.pdf differ diff --git a/tests/output/test_add_large_amount_of_headings/output_001.pdf b/tests/output/test_add_large_amount_of_headings/output_001.pdf index 1a640033d..4a2063dac 100644 Binary files a/tests/output/test_add_large_amount_of_headings/output_001.pdf and b/tests/output/test_add_large_amount_of_headings/output_001.pdf differ diff --git a/tests/output/test_add_large_amount_of_headings/output_002.pdf b/tests/output/test_add_large_amount_of_headings/output_002.pdf index 4799e0cdd..1f4162c13 100644 Binary files a/tests/output/test_add_large_amount_of_headings/output_002.pdf and b/tests/output/test_add_large_amount_of_headings/output_002.pdf differ diff --git a/tests/output/test_add_line_annotation/output_001.pdf b/tests/output/test_add_line_annotation/output_001.pdf index ce94ccc44..f281cba97 100644 Binary files a/tests/output/test_add_line_annotation/output_001.pdf and b/tests/output/test_add_line_annotation/output_001.pdf differ diff --git a/tests/output/test_add_line_annotation/output_002.pdf b/tests/output/test_add_line_annotation/output_002.pdf index d319d9a38..731b44fdf 100644 Binary files a/tests/output/test_add_line_annotation/output_002.pdf and b/tests/output/test_add_line_annotation/output_002.pdf differ diff --git a/tests/output/test_add_outline/output_001.pdf b/tests/output/test_add_outline/output_001.pdf index f2e2ed8ec..1da356420 100644 Binary files a/tests/output/test_add_outline/output_001.pdf and b/tests/output/test_add_outline/output_001.pdf differ diff --git a/tests/output/test_add_outline/output_002.pdf b/tests/output/test_add_outline/output_002.pdf index f9beca5dd..f1fea3275 100644 Binary files a/tests/output/test_add_outline/output_002.pdf and b/tests/output/test_add_outline/output_002.pdf differ diff --git a/tests/output/test_add_polygon_annotation_using_line_art_factory/output.pdf b/tests/output/test_add_polygon_annotation_using_line_art_factory/output.pdf index 5493c857d..be68cdf11 100644 Binary files a/tests/output/test_add_polygon_annotation_using_line_art_factory/output.pdf and b/tests/output/test_add_polygon_annotation_using_line_art_factory/output.pdf differ diff --git a/tests/output/test_add_polyline_annotation_using_line_art_factory/output.pdf b/tests/output/test_add_polyline_annotation_using_line_art_factory/output.pdf index ed8849c86..55c87dd1b 100644 Binary files a/tests/output/test_add_polyline_annotation_using_line_art_factory/output.pdf and b/tests/output/test_add_polyline_annotation_using_line_art_factory/output.pdf differ diff --git a/tests/output/test_add_redact_annotation/output_001.pdf b/tests/output/test_add_redact_annotation/output_001.pdf index 8998ff5b3..855cc4242 100644 Binary files a/tests/output/test_add_redact_annotation/output_001.pdf and b/tests/output/test_add_redact_annotation/output_001.pdf differ diff --git a/tests/output/test_add_redact_annotation/output_002.pdf b/tests/output/test_add_redact_annotation/output_002.pdf index 14a90b030..315c92e7c 100644 Binary files a/tests/output/test_add_redact_annotation/output_002.pdf and b/tests/output/test_add_redact_annotation/output_002.pdf differ diff --git a/tests/output/test_add_redact_annotation/output_003.pdf b/tests/output/test_add_redact_annotation/output_003.pdf index f6dff0557..15312a153 100644 Binary files a/tests/output/test_add_redact_annotation/output_003.pdf and b/tests/output/test_add_redact_annotation/output_003.pdf differ diff --git a/tests/output/test_add_redact_annotation/output_004.pdf b/tests/output/test_add_redact_annotation/output_004.pdf index dc9880aef..189b8f465 100644 Binary files a/tests/output/test_add_redact_annotation/output_004.pdf and b/tests/output/test_add_redact_annotation/output_004.pdf differ diff --git a/tests/output/test_add_redact_annotation/output_005.pdf b/tests/output/test_add_redact_annotation/output_005.pdf index 182001751..2eb5ecd34 100644 Binary files a/tests/output/test_add_redact_annotation/output_005.pdf and b/tests/output/test_add_redact_annotation/output_005.pdf differ diff --git a/tests/output/test_add_remote_go_to_annotation/output_001.pdf b/tests/output/test_add_remote_go_to_annotation/output_001.pdf index 06b138aa0..303500fad 100644 Binary files a/tests/output/test_add_remote_go_to_annotation/output_001.pdf and b/tests/output/test_add_remote_go_to_annotation/output_001.pdf differ diff --git a/tests/output/test_add_remote_go_to_annotation/output_002.pdf b/tests/output/test_add_remote_go_to_annotation/output_002.pdf index 6270f0286..38fc0facb 100644 Binary files a/tests/output/test_add_remote_go_to_annotation/output_002.pdf and b/tests/output/test_add_remote_go_to_annotation/output_002.pdf differ diff --git a/tests/output/test_add_sound_annotation/output_001.pdf b/tests/output/test_add_sound_annotation/output_001.pdf index 078a1b442..fd439f44c 100644 Binary files a/tests/output/test_add_sound_annotation/output_001.pdf and b/tests/output/test_add_sound_annotation/output_001.pdf differ diff --git a/tests/output/test_add_sound_annotation/output_002.pdf b/tests/output/test_add_sound_annotation/output_002.pdf index 0ae9a87fb..375c82e2f 100644 Binary files a/tests/output/test_add_sound_annotation/output_002.pdf and b/tests/output/test_add_sound_annotation/output_002.pdf differ diff --git a/tests/output/test_add_square_annotation/output.pdf b/tests/output/test_add_square_annotation/output.pdf index 3c89269fd..82c0dffe3 100644 Binary files a/tests/output/test_add_square_annotation/output.pdf and b/tests/output/test_add_square_annotation/output.pdf differ diff --git a/tests/output/test_add_square_annotation_in_free_space/output_001.pdf b/tests/output/test_add_square_annotation_in_free_space/output_001.pdf index 22ae3c1b1..02713f880 100644 Binary files a/tests/output/test_add_square_annotation_in_free_space/output_001.pdf and b/tests/output/test_add_square_annotation_in_free_space/output_001.pdf differ diff --git a/tests/output/test_add_square_annotation_in_free_space/output_002.pdf b/tests/output/test_add_square_annotation_in_free_space/output_002.pdf index d18d4f940..84ec5cc7e 100644 Binary files a/tests/output/test_add_square_annotation_in_free_space/output_002.pdf and b/tests/output/test_add_square_annotation_in_free_space/output_002.pdf differ diff --git a/tests/output/test_add_squiggle_annotation/output_001.pdf b/tests/output/test_add_squiggle_annotation/output_001.pdf index 0a2425df5..9b7c67de3 100644 Binary files a/tests/output/test_add_squiggle_annotation/output_001.pdf and b/tests/output/test_add_squiggle_annotation/output_001.pdf differ diff --git a/tests/output/test_add_squiggle_annotation/output_002.pdf b/tests/output/test_add_squiggle_annotation/output_002.pdf index c46e35c9a..c644902a8 100644 Binary files a/tests/output/test_add_squiggle_annotation/output_002.pdf and b/tests/output/test_add_squiggle_annotation/output_002.pdf differ diff --git a/tests/output/test_add_strikeout_annotation/output_001.pdf b/tests/output/test_add_strikeout_annotation/output_001.pdf index b3800f848..dbf38c784 100644 Binary files a/tests/output/test_add_strikeout_annotation/output_001.pdf and b/tests/output/test_add_strikeout_annotation/output_001.pdf differ diff --git a/tests/output/test_add_strikeout_annotation/output_002.pdf b/tests/output/test_add_strikeout_annotation/output_002.pdf index 6e05b9729..8276a3e85 100644 Binary files a/tests/output/test_add_strikeout_annotation/output_002.pdf and b/tests/output/test_add_strikeout_annotation/output_002.pdf differ diff --git a/tests/output/test_add_super_mario_annotation/output.pdf b/tests/output/test_add_super_mario_annotation/output.pdf index 3615c5f22..829cbb87f 100644 Binary files a/tests/output/test_add_super_mario_annotation/output.pdf and b/tests/output/test_add_super_mario_annotation/output.pdf differ diff --git a/tests/output/test_add_text_annotation/output_001.pdf b/tests/output/test_add_text_annotation/output_001.pdf index 68b806eff..40cb81635 100644 Binary files a/tests/output/test_add_text_annotation/output_001.pdf and b/tests/output/test_add_text_annotation/output_001.pdf differ diff --git a/tests/output/test_add_text_annotation/output_002.pdf b/tests/output/test_add_text_annotation/output_002.pdf index c53343bca..0d4ec00c7 100644 Binary files a/tests/output/test_add_text_annotation/output_002.pdf and b/tests/output/test_add_text_annotation/output_002.pdf differ diff --git a/tests/output/test_add_underline_annotation/output_001.pdf b/tests/output/test_add_underline_annotation/output_001.pdf index 2c4e6244c..b52061f22 100644 Binary files a/tests/output/test_add_underline_annotation/output_001.pdf and b/tests/output/test_add_underline_annotation/output_001.pdf differ diff --git a/tests/output/test_add_underline_annotation/output_002.pdf b/tests/output/test_add_underline_annotation/output_002.pdf index d5bc36b03..809024bf8 100644 Binary files a/tests/output/test_add_underline_annotation/output_002.pdf and b/tests/output/test_add_underline_annotation/output_002.pdf differ diff --git a/tests/output/test_analogous_color_scheme/output.pdf b/tests/output/test_analogous_color_scheme/output.pdf index d14a2ba27..0a59842d0 100644 Binary files a/tests/output/test_analogous_color_scheme/output.pdf and b/tests/output/test_analogous_color_scheme/output.pdf differ diff --git a/tests/output/test_annotation_name/output.pdf b/tests/output/test_annotation_name/output.pdf index 778b2071c..ab99deeda 100644 Binary files a/tests/output/test_annotation_name/output.pdf and b/tests/output/test_annotation_name/output.pdf differ diff --git a/tests/output/test_append_embedded_file/output_001.pdf b/tests/output/test_append_embedded_file/output_001.pdf index bd9dd094f..03332f157 100644 Binary files a/tests/output/test_append_embedded_file/output_001.pdf and b/tests/output/test_append_embedded_file/output_001.pdf differ diff --git a/tests/output/test_append_embedded_file/output_002.pdf b/tests/output/test_append_embedded_file/output_002.pdf index 3ce032faa..f11786805 100644 Binary files a/tests/output/test_append_embedded_file/output_002.pdf and b/tests/output/test_append_embedded_file/output_002.pdf differ diff --git a/tests/output/test_append_embedded_javascript/output_001.pdf b/tests/output/test_append_embedded_javascript/output_001.pdf index b29f235da..a30c6fd6d 100644 Binary files a/tests/output/test_append_embedded_javascript/output_001.pdf and b/tests/output/test_append_embedded_javascript/output_001.pdf differ diff --git a/tests/output/test_apply_redaction_annotations/output_001.pdf b/tests/output/test_apply_redaction_annotations/output_001.pdf index 60b6f2bac..e3e20d459 100644 Binary files a/tests/output/test_apply_redaction_annotations/output_001.pdf and b/tests/output/test_apply_redaction_annotations/output_001.pdf differ diff --git a/tests/output/test_apply_redaction_annotations/output_002.pdf b/tests/output/test_apply_redaction_annotations/output_002.pdf index 54611138a..8114bb61d 100644 Binary files a/tests/output/test_apply_redaction_annotations/output_002.pdf and b/tests/output/test_apply_redaction_annotations/output_002.pdf differ diff --git a/tests/output/test_apply_redaction_annotations/output_003.pdf b/tests/output/test_apply_redaction_annotations/output_003.pdf index 4f9d82b43..7c2b86a17 100644 Binary files a/tests/output/test_apply_redaction_annotations/output_003.pdf and b/tests/output/test_apply_redaction_annotations/output_003.pdf differ diff --git a/tests/output/test_apply_redaction_annotations/output_004.pdf b/tests/output/test_apply_redaction_annotations/output_004.pdf index 4f4fc6ba2..3f67e0ae5 100644 Binary files a/tests/output/test_apply_redaction_annotations/output_004.pdf and b/tests/output/test_apply_redaction_annotations/output_004.pdf differ diff --git a/tests/output/test_apply_redaction_annotations/output_005.pdf b/tests/output/test_apply_redaction_annotations/output_005.pdf index 583c22233..b2fbcf5ae 100644 Binary files a/tests/output/test_apply_redaction_annotations/output_005.pdf and b/tests/output/test_apply_redaction_annotations/output_005.pdf differ diff --git a/tests/output/test_apply_redaction_annotations/output_006.pdf b/tests/output/test_apply_redaction_annotations/output_006.pdf index 23f9a0c04..d9b0b0804 100644 Binary files a/tests/output/test_apply_redaction_annotations/output_006.pdf and b/tests/output/test_apply_redaction_annotations/output_006.pdf differ diff --git a/tests/output/test_browser_layout_inline_next_line/output.pdf b/tests/output/test_browser_layout_inline_next_line/output.pdf index 381131a78..b078d9095 100644 Binary files a/tests/output/test_browser_layout_inline_next_line/output.pdf and b/tests/output/test_browser_layout_inline_next_line/output.pdf differ diff --git a/tests/output/test_build_matryoskha_pdf/output.pdf b/tests/output/test_build_matryoskha_pdf/output.pdf index 10977b8fb..38f85203f 100644 Binary files a/tests/output/test_build_matryoskha_pdf/output.pdf and b/tests/output/test_build_matryoskha_pdf/output.pdf differ diff --git a/tests/output/test_change_info_dictionary_author/output_001.pdf b/tests/output/test_change_info_dictionary_author/output_001.pdf index d3972dcb2..c0031c266 100644 Binary files a/tests/output/test_change_info_dictionary_author/output_001.pdf and b/tests/output/test_change_info_dictionary_author/output_001.pdf differ diff --git a/tests/output/test_change_info_dictionary_author/output_002.pdf b/tests/output/test_change_info_dictionary_author/output_002.pdf index 07241ca94..3a1f10686 100644 Binary files a/tests/output/test_change_info_dictionary_author/output_002.pdf and b/tests/output/test_change_info_dictionary_author/output_002.pdf differ diff --git a/tests/output/test_concat_documents/output_000.pdf b/tests/output/test_concat_documents/output_000.pdf index 6e046aadb..4d2ffc6bb 100644 Binary files a/tests/output/test_concat_documents/output_000.pdf and b/tests/output/test_concat_documents/output_000.pdf differ diff --git a/tests/output/test_concat_documents/output_001.pdf b/tests/output/test_concat_documents/output_001.pdf index 108016ef5..03d14c814 100644 Binary files a/tests/output/test_concat_documents/output_001.pdf and b/tests/output/test_concat_documents/output_001.pdf differ diff --git a/tests/output/test_concat_documents/output_002.pdf b/tests/output/test_concat_documents/output_002.pdf index 549cdf133..0d79b2590 100644 Binary files a/tests/output/test_concat_documents/output_002.pdf and b/tests/output/test_concat_documents/output_002.pdf differ diff --git a/tests/output/test_copy_circle_annotation/output_001.pdf b/tests/output/test_copy_circle_annotation/output_001.pdf index 70c12cd6a..e7f10993d 100644 Binary files a/tests/output/test_copy_circle_annotation/output_001.pdf and b/tests/output/test_copy_circle_annotation/output_001.pdf differ diff --git a/tests/output/test_copy_circle_annotation/output_002.pdf b/tests/output/test_copy_circle_annotation/output_002.pdf index 0ed7b5ad5..3b96e08af 100644 Binary files a/tests/output/test_copy_circle_annotation/output_002.pdf and b/tests/output/test_copy_circle_annotation/output_002.pdf differ diff --git a/tests/output/test_copy_circle_annotation/output_003.pdf b/tests/output/test_copy_circle_annotation/output_003.pdf index f01c261cd..accf20776 100644 Binary files a/tests/output/test_copy_circle_annotation/output_003.pdf and b/tests/output/test_copy_circle_annotation/output_003.pdf differ diff --git a/tests/output/test_count_annotations/output_001.pdf b/tests/output/test_count_annotations/output_001.pdf index 6ce38bc08..575e92f8d 100644 Binary files a/tests/output/test_count_annotations/output_001.pdf and b/tests/output/test_count_annotations/output_001.pdf differ diff --git a/tests/output/test_count_annotations/output_002.pdf b/tests/output/test_count_annotations/output_002.pdf index d2ee0788e..6dd48b0d5 100644 Binary files a/tests/output/test_count_annotations/output_002.pdf and b/tests/output/test_count_annotations/output_002.pdf differ diff --git a/tests/output/test_create_document_with_output_intent/output_001.pdf b/tests/output/test_create_document_with_output_intent/output_001.pdf index fc0e2424e..4b6ce9610 100644 Binary files a/tests/output/test_create_document_with_output_intent/output_001.pdf and b/tests/output/test_create_document_with_output_intent/output_001.pdf differ diff --git a/tests/output/test_detect_table/input_000.pdf b/tests/output/test_detect_table/input_000.pdf index a6f3e783f..12e48d03f 100644 Binary files a/tests/output/test_detect_table/input_000.pdf and b/tests/output/test_detect_table/input_000.pdf differ diff --git a/tests/output/test_detect_table/input_001.pdf b/tests/output/test_detect_table/input_001.pdf index 2e199e51d..18cdc1da3 100644 Binary files a/tests/output/test_detect_table/input_001.pdf and b/tests/output/test_detect_table/input_001.pdf differ diff --git a/tests/output/test_detect_table/input_002.pdf b/tests/output/test_detect_table/input_002.pdf index a746c612b..32ebb2b9b 100644 Binary files a/tests/output/test_detect_table/input_002.pdf and b/tests/output/test_detect_table/input_002.pdf differ diff --git a/tests/output/test_detect_table/input_003.pdf b/tests/output/test_detect_table/input_003.pdf index de927ca49..7875dde3f 100644 Binary files a/tests/output/test_detect_table/input_003.pdf and b/tests/output/test_detect_table/input_003.pdf differ diff --git a/tests/output/test_detect_table/input_004.pdf b/tests/output/test_detect_table/input_004.pdf index e327cf18d..ee5497572 100644 Binary files a/tests/output/test_detect_table/input_004.pdf and b/tests/output/test_detect_table/input_004.pdf differ diff --git a/tests/output/test_detect_table/input_005.pdf b/tests/output/test_detect_table/input_005.pdf index 1fbae92f2..3f04e493d 100644 Binary files a/tests/output/test_detect_table/input_005.pdf and b/tests/output/test_detect_table/input_005.pdf differ diff --git a/tests/output/test_detect_table/input_006.pdf b/tests/output/test_detect_table/input_006.pdf index 110f705d0..9d8577de6 100644 Binary files a/tests/output/test_detect_table/input_006.pdf and b/tests/output/test_detect_table/input_006.pdf differ diff --git a/tests/output/test_detect_table/output_000.pdf b/tests/output/test_detect_table/output_000.pdf index 2b57bfa00..29ab38356 100644 Binary files a/tests/output/test_detect_table/output_000.pdf and b/tests/output/test_detect_table/output_000.pdf differ diff --git a/tests/output/test_detect_table/output_001.pdf b/tests/output/test_detect_table/output_001.pdf index 60053db07..10f3d992e 100644 Binary files a/tests/output/test_detect_table/output_001.pdf and b/tests/output/test_detect_table/output_001.pdf differ diff --git a/tests/output/test_detect_table/output_002.pdf b/tests/output/test_detect_table/output_002.pdf index c8cb53519..49e291493 100644 Binary files a/tests/output/test_detect_table/output_002.pdf and b/tests/output/test_detect_table/output_002.pdf differ diff --git a/tests/output/test_detect_table/output_003.pdf b/tests/output/test_detect_table/output_003.pdf index 28738c2d6..2b9e51cf6 100644 Binary files a/tests/output/test_detect_table/output_003.pdf and b/tests/output/test_detect_table/output_003.pdf differ diff --git a/tests/output/test_detect_table/output_004.pdf b/tests/output/test_detect_table/output_004.pdf index b3945402b..556edb1ef 100644 Binary files a/tests/output/test_detect_table/output_004.pdf and b/tests/output/test_detect_table/output_004.pdf differ diff --git a/tests/output/test_detect_table/output_005.pdf b/tests/output/test_detect_table/output_005.pdf index ad30153c1..737e0859b 100644 Binary files a/tests/output/test_detect_table/output_005.pdf and b/tests/output/test_detect_table/output_005.pdf differ diff --git a/tests/output/test_detect_table/output_006.pdf b/tests/output/test_detect_table/output_006.pdf index 48df179e3..0b1d4a0c1 100644 Binary files a/tests/output/test_detect_table/output_006.pdf and b/tests/output/test_detect_table/output_006.pdf differ diff --git a/tests/output/test_digit_placement_ubuntu_font/output_001.pdf b/tests/output/test_digit_placement_ubuntu_font/output_001.pdf index c733071e4..6d912a6ca 100644 Binary files a/tests/output/test_digit_placement_ubuntu_font/output_001.pdf and b/tests/output/test_digit_placement_ubuntu_font/output_001.pdf differ diff --git a/tests/output/test_document_file_size/output.pdf b/tests/output/test_document_file_size/output.pdf new file mode 100644 index 000000000..c395560c7 Binary files /dev/null and b/tests/output/test_document_file_size/output.pdf differ diff --git a/tests/output/test_duplicate_pages/output_000.pdf b/tests/output/test_duplicate_pages/output_000.pdf index f0b3533cf..f8674c1ad 100644 Binary files a/tests/output/test_duplicate_pages/output_000.pdf and b/tests/output/test_duplicate_pages/output_000.pdf differ diff --git a/tests/output/test_duplicate_pages/output_001.pdf b/tests/output/test_duplicate_pages/output_001.pdf index ddcd147e1..1abf908c9 100644 Binary files a/tests/output/test_duplicate_pages/output_001.pdf and b/tests/output/test_duplicate_pages/output_001.pdf differ diff --git a/tests/output/test_duplicate_pages/output_002.pdf b/tests/output/test_duplicate_pages/output_002.pdf index 3fd484f49..64f9364e1 100644 Binary files a/tests/output/test_duplicate_pages/output_002.pdf and b/tests/output/test_duplicate_pages/output_002.pdf differ diff --git a/tests/output/test_duplicate_pages/output_003.pdf b/tests/output/test_duplicate_pages/output_003.pdf index 229b87815..5822c3f04 100644 Binary files a/tests/output/test_duplicate_pages/output_003.pdf and b/tests/output/test_duplicate_pages/output_003.pdf differ diff --git a/tests/output/test_easier_imports/output.pdf b/tests/output/test_easier_imports/output.pdf index 8ba75858e..1cbc6c377 100644 Binary files a/tests/output/test_easier_imports/output.pdf and b/tests/output/test_easier_imports/output.pdf differ diff --git a/tests/output/test_export_html_to_pdf/example_html_input_000.pdf b/tests/output/test_export_html_to_pdf/example_html_input_000.pdf index d50b341ee..520fe1b3d 100644 Binary files a/tests/output/test_export_html_to_pdf/example_html_input_000.pdf and b/tests/output/test_export_html_to_pdf/example_html_input_000.pdf differ diff --git a/tests/output/test_export_html_to_pdf/example_html_input_001.pdf b/tests/output/test_export_html_to_pdf/example_html_input_001.pdf index 2d8234f0f..ae0aac812 100644 Binary files a/tests/output/test_export_html_to_pdf/example_html_input_001.pdf and b/tests/output/test_export_html_to_pdf/example_html_input_001.pdf differ diff --git a/tests/output/test_export_html_to_pdf/example_html_input_002.pdf b/tests/output/test_export_html_to_pdf/example_html_input_002.pdf index 215f60a4e..35d67d59f 100644 Binary files a/tests/output/test_export_html_to_pdf/example_html_input_002.pdf and b/tests/output/test_export_html_to_pdf/example_html_input_002.pdf differ diff --git a/tests/output/test_export_html_to_pdf/example_html_input_003.pdf b/tests/output/test_export_html_to_pdf/example_html_input_003.pdf index 3dafbe4f9..2f79b04d5 100644 Binary files a/tests/output/test_export_html_to_pdf/example_html_input_003.pdf and b/tests/output/test_export_html_to_pdf/example_html_input_003.pdf differ diff --git a/tests/output/test_export_html_to_pdf/example_html_input_004.pdf b/tests/output/test_export_html_to_pdf/example_html_input_004.pdf index 54d2e8a5f..645a29451 100644 Binary files a/tests/output/test_export_html_to_pdf/example_html_input_004.pdf and b/tests/output/test_export_html_to_pdf/example_html_input_004.pdf differ diff --git a/tests/output/test_export_html_to_pdf/example_html_input_005.pdf b/tests/output/test_export_html_to_pdf/example_html_input_005.pdf index 08f67ec46..dd1133f51 100644 Binary files a/tests/output/test_export_html_to_pdf/example_html_input_005.pdf and b/tests/output/test_export_html_to_pdf/example_html_input_005.pdf differ diff --git a/tests/output/test_export_html_to_pdf/example_html_input_006.pdf b/tests/output/test_export_html_to_pdf/example_html_input_006.pdf index cb49f7b08..dec79982a 100644 Binary files a/tests/output/test_export_html_to_pdf/example_html_input_006.pdf and b/tests/output/test_export_html_to_pdf/example_html_input_006.pdf differ diff --git a/tests/output/test_export_html_to_pdf/example_html_input_007.pdf b/tests/output/test_export_html_to_pdf/example_html_input_007.pdf index 8ed059361..dce3e2176 100644 Binary files a/tests/output/test_export_html_to_pdf/example_html_input_007.pdf and b/tests/output/test_export_html_to_pdf/example_html_input_007.pdf differ diff --git a/tests/output/test_export_html_to_pdf/example_html_input_008.pdf b/tests/output/test_export_html_to_pdf/example_html_input_008.pdf index dbb4ad8a6..3a17a00d7 100644 Binary files a/tests/output/test_export_html_to_pdf/example_html_input_008.pdf and b/tests/output/test_export_html_to_pdf/example_html_input_008.pdf differ diff --git a/tests/output/test_export_html_to_pdf/example_html_input_009.pdf b/tests/output/test_export_html_to_pdf/example_html_input_009.pdf index cc49b75ad..4b90fca80 100644 Binary files a/tests/output/test_export_html_to_pdf/example_html_input_009.pdf and b/tests/output/test_export_html_to_pdf/example_html_input_009.pdf differ diff --git a/tests/output/test_export_html_to_pdf/example_html_input_010.pdf b/tests/output/test_export_html_to_pdf/example_html_input_010.pdf index 9a15a56db..4a5e6c958 100644 Binary files a/tests/output/test_export_html_to_pdf/example_html_input_010.pdf and b/tests/output/test_export_html_to_pdf/example_html_input_010.pdf differ diff --git a/tests/output/test_export_html_to_pdf/example_html_input_011.pdf b/tests/output/test_export_html_to_pdf/example_html_input_011.pdf index c2dedf54e..80e1ba304 100644 Binary files a/tests/output/test_export_html_to_pdf/example_html_input_011.pdf and b/tests/output/test_export_html_to_pdf/example_html_input_011.pdf differ diff --git a/tests/output/test_export_html_to_pdf/example_html_input_012.pdf b/tests/output/test_export_html_to_pdf/example_html_input_012.pdf index 6831473dc..4a64ef742 100644 Binary files a/tests/output/test_export_html_to_pdf/example_html_input_012.pdf and b/tests/output/test_export_html_to_pdf/example_html_input_012.pdf differ diff --git a/tests/output/test_export_html_to_pdf/example_html_input_013.pdf b/tests/output/test_export_html_to_pdf/example_html_input_013.pdf index 8a5ddad08..3890b922e 100644 Binary files a/tests/output/test_export_html_to_pdf/example_html_input_013.pdf and b/tests/output/test_export_html_to_pdf/example_html_input_013.pdf differ diff --git a/tests/output/test_export_html_to_pdf/example_html_input_014.pdf b/tests/output/test_export_html_to_pdf/example_html_input_014.pdf index 28880f63e..d6120c7c9 100644 Binary files a/tests/output/test_export_html_to_pdf/example_html_input_014.pdf and b/tests/output/test_export_html_to_pdf/example_html_input_014.pdf differ diff --git a/tests/output/test_export_markdown_to_pdf/example-markdown-input-001.md.pdf b/tests/output/test_export_markdown_to_pdf/example-markdown-input-001.md.pdf index c7830b3d7..0c10cf911 100644 Binary files a/tests/output/test_export_markdown_to_pdf/example-markdown-input-001.md.pdf and b/tests/output/test_export_markdown_to_pdf/example-markdown-input-001.md.pdf differ diff --git a/tests/output/test_export_markdown_to_pdf/example-markdown-input-002.md.pdf b/tests/output/test_export_markdown_to_pdf/example-markdown-input-002.md.pdf index 380e45814..42b8d623a 100644 Binary files a/tests/output/test_export_markdown_to_pdf/example-markdown-input-002.md.pdf and b/tests/output/test_export_markdown_to_pdf/example-markdown-input-002.md.pdf differ diff --git a/tests/output/test_export_markdown_to_pdf/example-markdown-input-003.md.pdf b/tests/output/test_export_markdown_to_pdf/example-markdown-input-003.md.pdf index e8bed5fff..5b4c468f1 100644 Binary files a/tests/output/test_export_markdown_to_pdf/example-markdown-input-003.md.pdf and b/tests/output/test_export_markdown_to_pdf/example-markdown-input-003.md.pdf differ diff --git a/tests/output/test_export_markdown_to_pdf/example-markdown-input-004.md.pdf b/tests/output/test_export_markdown_to_pdf/example-markdown-input-004.md.pdf index 90715d730..bdb14faa8 100644 Binary files a/tests/output/test_export_markdown_to_pdf/example-markdown-input-004.md.pdf and b/tests/output/test_export_markdown_to_pdf/example-markdown-input-004.md.pdf differ diff --git a/tests/output/test_export_markdown_to_pdf/example-markdown-input-005.md.pdf b/tests/output/test_export_markdown_to_pdf/example-markdown-input-005.md.pdf index 1b745ef1b..2553eb4a0 100644 Binary files a/tests/output/test_export_markdown_to_pdf/example-markdown-input-005.md.pdf and b/tests/output/test_export_markdown_to_pdf/example-markdown-input-005.md.pdf differ diff --git a/tests/output/test_export_markdown_to_pdf/example-markdown-input-006.md.pdf b/tests/output/test_export_markdown_to_pdf/example-markdown-input-006.md.pdf index 0887d2319..ec1740c05 100644 Binary files a/tests/output/test_export_markdown_to_pdf/example-markdown-input-006.md.pdf and b/tests/output/test_export_markdown_to_pdf/example-markdown-input-006.md.pdf differ diff --git a/tests/output/test_export_markdown_to_pdf/example-markdown-input-007.md.pdf b/tests/output/test_export_markdown_to_pdf/example-markdown-input-007.md.pdf index 3d93b5ece..782686cef 100644 Binary files a/tests/output/test_export_markdown_to_pdf/example-markdown-input-007.md.pdf and b/tests/output/test_export_markdown_to_pdf/example-markdown-input-007.md.pdf differ diff --git a/tests/output/test_export_markdown_to_pdf/example-markdown-input-008.md.pdf b/tests/output/test_export_markdown_to_pdf/example-markdown-input-008.md.pdf index 7045bb5f1..2b688052f 100644 Binary files a/tests/output/test_export_markdown_to_pdf/example-markdown-input-008.md.pdf and b/tests/output/test_export_markdown_to_pdf/example-markdown-input-008.md.pdf differ diff --git a/tests/output/test_export_markdown_to_pdf/example-markdown-input-009.md.pdf b/tests/output/test_export_markdown_to_pdf/example-markdown-input-009.md.pdf index f0c3136f5..0a0c50acc 100644 Binary files a/tests/output/test_export_markdown_to_pdf/example-markdown-input-009.md.pdf and b/tests/output/test_export_markdown_to_pdf/example-markdown-input-009.md.pdf differ diff --git a/tests/output/test_export_markdown_to_pdf/example-markdown-input-010.md.pdf b/tests/output/test_export_markdown_to_pdf/example-markdown-input-010.md.pdf index dccd271b0..1630aef60 100644 Binary files a/tests/output/test_export_markdown_to_pdf/example-markdown-input-010.md.pdf and b/tests/output/test_export_markdown_to_pdf/example-markdown-input-010.md.pdf differ diff --git a/tests/output/test_extract_colors/output_001.pdf b/tests/output/test_extract_colors/output_001.pdf index ac026c920..f63d20b35 100644 Binary files a/tests/output/test_extract_colors/output_001.pdf and b/tests/output/test_extract_colors/output_001.pdf differ diff --git a/tests/output/test_extract_colors/output_002.pdf b/tests/output/test_extract_colors/output_002.pdf index de6e737ce..68d66a5f4 100644 Binary files a/tests/output/test_extract_colors/output_002.pdf and b/tests/output/test_extract_colors/output_002.pdf differ diff --git a/tests/output/test_extract_courier_text/output_001.pdf b/tests/output/test_extract_courier_text/output_001.pdf index 2232e2177..8169b0f36 100644 Binary files a/tests/output/test_extract_courier_text/output_001.pdf and b/tests/output/test_extract_courier_text/output_001.pdf differ diff --git a/tests/output/test_extract_font_names/output_001.pdf b/tests/output/test_extract_font_names/output_001.pdf index 871a8ceb6..e1da85051 100644 Binary files a/tests/output/test_extract_font_names/output_001.pdf and b/tests/output/test_extract_font_names/output_001.pdf differ diff --git a/tests/output/test_extract_font_names/output_002.pdf b/tests/output/test_extract_font_names/output_002.pdf index 7fcce2556..2bca3fac1 100644 Binary files a/tests/output/test_extract_font_names/output_002.pdf and b/tests/output/test_extract_font_names/output_002.pdf differ diff --git a/tests/output/test_extract_keywords/output_001.pdf b/tests/output/test_extract_keywords/output_001.pdf index a74271143..e6de271c2 100644 Binary files a/tests/output/test_extract_keywords/output_001.pdf and b/tests/output/test_extract_keywords/output_001.pdf differ diff --git a/tests/output/test_extract_keywords/output_002.pdf b/tests/output/test_extract_keywords/output_002.pdf index 6f4fcd91a..53b1c7054 100644 Binary files a/tests/output/test_extract_keywords/output_002.pdf and b/tests/output/test_extract_keywords/output_002.pdf differ diff --git a/tests/output/test_extract_keywords/output_003.pdf b/tests/output/test_extract_keywords/output_003.pdf index 00bf75837..975b2bb30 100644 Binary files a/tests/output/test_extract_keywords/output_003.pdf and b/tests/output/test_extract_keywords/output_003.pdf differ diff --git a/tests/output/test_extract_red_text/output_001.pdf b/tests/output/test_extract_red_text/output_001.pdf index b51c54804..6665af96f 100644 Binary files a/tests/output/test_extract_red_text/output_001.pdf and b/tests/output/test_extract_red_text/output_001.pdf differ diff --git a/tests/output/test_extract_regex/output_001.pdf b/tests/output/test_extract_regex/output_001.pdf index 0997eeb80..ae1b3374e 100644 Binary files a/tests/output/test_extract_regex/output_001.pdf and b/tests/output/test_extract_regex/output_001.pdf differ diff --git a/tests/output/test_extract_regex/output_002.pdf b/tests/output/test_extract_regex/output_002.pdf index 93db9091b..101424845 100644 Binary files a/tests/output/test_extract_regex/output_002.pdf and b/tests/output/test_extract_regex/output_002.pdf differ diff --git a/tests/output/test_extract_text/output_001.pdf b/tests/output/test_extract_text/output_001.pdf index dc3d9eea3..bff77ad36 100644 Binary files a/tests/output/test_extract_text/output_001.pdf and b/tests/output/test_extract_text/output_001.pdf differ diff --git a/tests/output/test_extract_text/output_002.pdf b/tests/output/test_extract_text/output_002.pdf index fe3b0e876..10a7755e0 100644 Binary files a/tests/output/test_extract_text/output_002.pdf and b/tests/output/test_extract_text/output_002.pdf differ diff --git a/tests/output/test_extract_text_expect_ground_truth/output.pdf b/tests/output/test_extract_text_expect_ground_truth/output.pdf index b435f5ddd..1d4d799cf 100644 Binary files a/tests/output/test_extract_text_expect_ground_truth/output.pdf and b/tests/output/test_extract_text_expect_ground_truth/output.pdf differ diff --git a/tests/output/test_extract_text_from_self_made_invoice/output.pdf b/tests/output/test_extract_text_from_self_made_invoice/output.pdf index 0867ba4f3..68856dfe1 100644 Binary files a/tests/output/test_extract_text_from_self_made_invoice/output.pdf and b/tests/output/test_extract_text_from_self_made_invoice/output.pdf differ diff --git a/tests/output/test_fix_broken_xref/output_001.pdf b/tests/output/test_fix_broken_xref/output_001.pdf index 27c592a88..9d2b31810 100644 Binary files a/tests/output/test_fix_broken_xref/output_001.pdf and b/tests/output/test_fix_broken_xref/output_001.pdf differ diff --git a/tests/output/test_fix_broken_xref/output_002.pdf b/tests/output/test_fix_broken_xref/output_002.pdf index 98219b5c7..0f853c54a 100644 Binary files a/tests/output/test_fix_broken_xref/output_002.pdf and b/tests/output/test_fix_broken_xref/output_002.pdf differ diff --git a/tests/output/test_hello_world/output.pdf b/tests/output/test_hello_world/output.pdf index 804a0dbc4..3e7274e5c 100644 Binary files a/tests/output/test_hello_world/output.pdf and b/tests/output/test_hello_world/output.pdf differ diff --git a/tests/output/test_inline_object_io/output_001.pdf b/tests/output/test_inline_object_io/output_001.pdf index e51e75c5f..e16acf1bc 100644 Binary files a/tests/output/test_inline_object_io/output_001.pdf and b/tests/output/test_inline_object_io/output_001.pdf differ diff --git a/tests/output/test_margin_and_padding/output_001.pdf b/tests/output/test_margin_and_padding/output_001.pdf index f8976b329..517b5a800 100644 Binary files a/tests/output/test_margin_and_padding/output_001.pdf and b/tests/output/test_margin_and_padding/output_001.pdf differ diff --git a/tests/output/test_margin_and_padding/output_002.pdf b/tests/output/test_margin_and_padding/output_002.pdf index e520d3cfd..360a91f3a 100644 Binary files a/tests/output/test_margin_and_padding/output_002.pdf and b/tests/output/test_margin_and_padding/output_002.pdf differ diff --git a/tests/output/test_modify_image/output_001.pdf b/tests/output/test_modify_image/output_001.pdf index e0c1a3b0d..3ec6a3566 100644 Binary files a/tests/output/test_modify_image/output_001.pdf and b/tests/output/test_modify_image/output_001.pdf differ diff --git a/tests/output/test_modify_image/output_002.pdf b/tests/output/test_modify_image/output_002.pdf index 405f20f10..7c24ebbbf 100644 Binary files a/tests/output/test_modify_image/output_002.pdf and b/tests/output/test_modify_image/output_002.pdf differ diff --git a/tests/output/test_open_document/output.pdf b/tests/output/test_open_document/output.pdf index f785e6d87..3bdafc3f9 100644 Binary files a/tests/output/test_open_document/output.pdf and b/tests/output/test_open_document/output.pdf differ diff --git a/tests/output/test_open_encrypted_document/output.pdf b/tests/output/test_open_encrypted_document/output.pdf index 3b02348cb..7561487be 100644 Binary files a/tests/output/test_open_encrypted_document/output.pdf and b/tests/output/test_open_encrypted_document/output.pdf differ diff --git a/tests/output/test_optimize_images/output_001.pdf b/tests/output/test_optimize_images/output_001.pdf index ec52dc355..96eb8d172 100644 Binary files a/tests/output/test_optimize_images/output_001.pdf and b/tests/output/test_optimize_images/output_001.pdf differ diff --git a/tests/output/test_page_has_empty_resource_dictionary/output_001.pdf b/tests/output/test_page_has_empty_resource_dictionary/output_001.pdf index d0f4d3ad7..8fd00ac76 100644 Binary files a/tests/output/test_page_has_empty_resource_dictionary/output_001.pdf and b/tests/output/test_page_has_empty_resource_dictionary/output_001.pdf differ diff --git a/tests/output/test_redact_common_regular_expressions/output_001.pdf b/tests/output/test_redact_common_regular_expressions/output_001.pdf index e09b1a13c..14434b433 100644 Binary files a/tests/output/test_redact_common_regular_expressions/output_001.pdf and b/tests/output/test_redact_common_regular_expressions/output_001.pdf differ diff --git a/tests/output/test_redact_common_regular_expressions/output_002.pdf b/tests/output/test_redact_common_regular_expressions/output_002.pdf index 5d41a7555..f7baadcde 100644 Binary files a/tests/output/test_redact_common_regular_expressions/output_002.pdf and b/tests/output/test_redact_common_regular_expressions/output_002.pdf differ diff --git a/tests/output/test_redact_common_regular_expressions/output_003.pdf b/tests/output/test_redact_common_regular_expressions/output_003.pdf index d7e0c18f4..7ee86a66e 100644 Binary files a/tests/output/test_redact_common_regular_expressions/output_003.pdf and b/tests/output/test_redact_common_regular_expressions/output_003.pdf differ diff --git a/tests/output/test_remove_annotation/output_001.pdf b/tests/output/test_remove_annotation/output_001.pdf index 07c1eb572..22bad0198 100644 Binary files a/tests/output/test_remove_annotation/output_001.pdf and b/tests/output/test_remove_annotation/output_001.pdf differ diff --git a/tests/output/test_remove_annotation/output_002.pdf b/tests/output/test_remove_annotation/output_002.pdf index 9e5adfe81..ff78c9988 100644 Binary files a/tests/output/test_remove_annotation/output_002.pdf and b/tests/output/test_remove_annotation/output_002.pdf differ diff --git a/tests/output/test_remove_annotation/output_003.pdf b/tests/output/test_remove_annotation/output_003.pdf index dec05e87b..0331b0d49 100644 Binary files a/tests/output/test_remove_annotation/output_003.pdf and b/tests/output/test_remove_annotation/output_003.pdf differ diff --git a/tests/output/test_remove_page/output_001.pdf b/tests/output/test_remove_page/output_001.pdf index 0368c19e4..b7fb88e03 100644 Binary files a/tests/output/test_remove_page/output_001.pdf and b/tests/output/test_remove_page/output_001.pdf differ diff --git a/tests/output/test_remove_page/output_002.pdf b/tests/output/test_remove_page/output_002.pdf index 6e73d1d39..4173632b1 100644 Binary files a/tests/output/test_remove_page/output_002.pdf and b/tests/output/test_remove_page/output_002.pdf differ diff --git a/tests/output/test_remove_page/output_003.pdf b/tests/output/test_remove_page/output_003.pdf index 1ec350243..ed881486d 100644 Binary files a/tests/output/test_remove_page/output_003.pdf and b/tests/output/test_remove_page/output_003.pdf differ diff --git a/tests/output/test_remove_page/output_004.pdf b/tests/output/test_remove_page/output_004.pdf index 0e5979bab..7d4bd1d81 100644 Binary files a/tests/output/test_remove_page/output_004.pdf and b/tests/output/test_remove_page/output_004.pdf differ diff --git a/tests/output/test_rotate_page/output_001.pdf b/tests/output/test_rotate_page/output_001.pdf index 8661c771c..2fd76e01d 100644 Binary files a/tests/output/test_rotate_page/output_001.pdf and b/tests/output/test_rotate_page/output_001.pdf differ diff --git a/tests/output/test_rotate_page/output_002.pdf b/tests/output/test_rotate_page/output_002.pdf index cb169d4a2..c82eaa2d0 100644 Binary files a/tests/output/test_rotate_page/output_002.pdf and b/tests/output/test_rotate_page/output_002.pdf differ diff --git a/tests/output/test_rotate_page/output_003.pdf b/tests/output/test_rotate_page/output_003.pdf index 99bd436cf..25071423c 100644 Binary files a/tests/output/test_rotate_page/output_003.pdf and b/tests/output/test_rotate_page/output_003.pdf differ diff --git a/tests/output/test_simple_paragraph_extraction/output_000.pdf b/tests/output/test_simple_paragraph_extraction/output_000.pdf index 7562e9e3a..b933159ac 100644 Binary files a/tests/output/test_simple_paragraph_extraction/output_000.pdf and b/tests/output/test_simple_paragraph_extraction/output_000.pdf differ diff --git a/tests/output/test_simple_paragraph_extraction/output_001.pdf b/tests/output/test_simple_paragraph_extraction/output_001.pdf index dff26c8ae..12e043499 100644 Binary files a/tests/output/test_simple_paragraph_extraction/output_001.pdf and b/tests/output/test_simple_paragraph_extraction/output_001.pdf differ diff --git a/tests/output/test_split_complementary_color_scheme/output.pdf b/tests/output/test_split_complementary_color_scheme/output.pdf index 382886548..288ccad7f 100644 Binary files a/tests/output/test_split_complementary_color_scheme/output.pdf and b/tests/output/test_split_complementary_color_scheme/output.pdf differ diff --git a/tests/output/test_tetradic_rectangle_color_scheme/output.pdf b/tests/output/test_tetradic_rectangle_color_scheme/output.pdf index 6fcfb998e..c2df16e8d 100644 Binary files a/tests/output/test_tetradic_rectangle_color_scheme/output.pdf and b/tests/output/test_tetradic_rectangle_color_scheme/output.pdf differ diff --git a/tests/output/test_tetradic_square_color_scheme/output.pdf b/tests/output/test_tetradic_square_color_scheme/output.pdf index c02ab6b94..a104e8617 100644 Binary files a/tests/output/test_tetradic_square_color_scheme/output.pdf and b/tests/output/test_tetradic_square_color_scheme/output.pdf differ diff --git a/tests/output/test_triadic_color_scheme/output.pdf b/tests/output/test_triadic_color_scheme/output.pdf index cbeb8f728..f241c349a 100644 Binary files a/tests/output/test_triadic_color_scheme/output.pdf and b/tests/output/test_triadic_color_scheme/output.pdf differ diff --git a/tests/output/test_write_2_scatter_plots/output.pdf b/tests/output/test_write_2_scatter_plots/output.pdf index 764f3f4e1..b24e5687b 100644 Binary files a/tests/output/test_write_2_scatter_plots/output.pdf and b/tests/output/test_write_2_scatter_plots/output.pdf differ diff --git a/tests/output/test_write_3d_density_chart/output.pdf b/tests/output/test_write_3d_density_chart/output.pdf index 409dc8715..f908ba3b2 100644 Binary files a/tests/output/test_write_3d_density_chart/output.pdf and b/tests/output/test_write_3d_density_chart/output.pdf differ diff --git a/tests/output/test_write_3d_surface_plot/output.pdf b/tests/output/test_write_3d_surface_plot/output.pdf index 6777e31c2..14c85c043 100644 Binary files a/tests/output/test_write_3d_surface_plot/output.pdf and b/tests/output/test_write_3d_surface_plot/output.pdf differ diff --git a/tests/output/test_write_all_types_of_barcode/output.pdf b/tests/output/test_write_all_types_of_barcode/output.pdf index f015bb872..c1aa1db81 100644 Binary files a/tests/output/test_write_all_types_of_barcode/output.pdf and b/tests/output/test_write_all_types_of_barcode/output.pdf differ diff --git a/tests/output/test_write_barcode_with_rounded_borders/output_000.pdf b/tests/output/test_write_barcode_with_rounded_borders/output_000.pdf index 42be5c7eb..c88e2a8e4 100644 Binary files a/tests/output/test_write_barcode_with_rounded_borders/output_000.pdf and b/tests/output/test_write_barcode_with_rounded_borders/output_000.pdf differ diff --git a/tests/output/test_write_barcode_with_rounded_borders/output_001.pdf b/tests/output/test_write_barcode_with_rounded_borders/output_001.pdf index abafd0621..71a1a4cff 100644 Binary files a/tests/output/test_write_barcode_with_rounded_borders/output_001.pdf and b/tests/output/test_write_barcode_with_rounded_borders/output_001.pdf differ diff --git a/tests/output/test_write_barcode_with_rounded_borders/output_002.pdf b/tests/output/test_write_barcode_with_rounded_borders/output_002.pdf index 48b0bacb8..5ff2a0b30 100644 Binary files a/tests/output/test_write_barcode_with_rounded_borders/output_002.pdf and b/tests/output/test_write_barcode_with_rounded_borders/output_002.pdf differ diff --git a/tests/output/test_write_barcode_with_rounded_borders/output_003.pdf b/tests/output/test_write_barcode_with_rounded_borders/output_003.pdf index 37f4ae442..34b48bda2 100644 Binary files a/tests/output/test_write_barcode_with_rounded_borders/output_003.pdf and b/tests/output/test_write_barcode_with_rounded_borders/output_003.pdf differ diff --git a/tests/output/test_write_barcode_with_rounded_borders/output_004.pdf b/tests/output/test_write_barcode_with_rounded_borders/output_004.pdf index 967e3f2cd..30ed1f841 100644 Binary files a/tests/output/test_write_barcode_with_rounded_borders/output_004.pdf and b/tests/output/test_write_barcode_with_rounded_borders/output_004.pdf differ diff --git a/tests/output/test_write_barcode_with_rounded_borders/output_005.pdf b/tests/output/test_write_barcode_with_rounded_borders/output_005.pdf index 928fd0da4..62c9ca61f 100644 Binary files a/tests/output/test_write_barcode_with_rounded_borders/output_005.pdf and b/tests/output/test_write_barcode_with_rounded_borders/output_005.pdf differ diff --git a/tests/output/test_write_barcode_with_rounded_borders/output_006.pdf b/tests/output/test_write_barcode_with_rounded_borders/output_006.pdf index be45dae2f..82262036d 100644 Binary files a/tests/output/test_write_barcode_with_rounded_borders/output_006.pdf and b/tests/output/test_write_barcode_with_rounded_borders/output_006.pdf differ diff --git a/tests/output/test_write_barcode_with_rounded_borders/output_007.pdf b/tests/output/test_write_barcode_with_rounded_borders/output_007.pdf index a1f465cf6..a2fba2276 100644 Binary files a/tests/output/test_write_barcode_with_rounded_borders/output_007.pdf and b/tests/output/test_write_barcode_with_rounded_borders/output_007.pdf differ diff --git a/tests/output/test_write_barcode_with_rounded_borders/output_008.pdf b/tests/output/test_write_barcode_with_rounded_borders/output_008.pdf index 4248daeec..5e3db51fa 100644 Binary files a/tests/output/test_write_barcode_with_rounded_borders/output_008.pdf and b/tests/output/test_write_barcode_with_rounded_borders/output_008.pdf differ diff --git a/tests/output/test_write_battleship/output.pdf b/tests/output/test_write_battleship/output.pdf index 3c94ea13f..db078948a 100644 Binary files a/tests/output/test_write_battleship/output.pdf and b/tests/output/test_write_battleship/output.pdf differ diff --git a/tests/output/test_write_blobs/output.pdf b/tests/output/test_write_blobs/output.pdf index 8dea40e30..85064cabd 100644 Binary files a/tests/output/test_write_blobs/output.pdf and b/tests/output/test_write_blobs/output.pdf differ diff --git a/tests/output/test_write_check_box/output_001.pdf b/tests/output/test_write_check_box/output_001.pdf index c33e3c09a..2bcc348fe 100644 Binary files a/tests/output/test_write_check_box/output_001.pdf and b/tests/output/test_write_check_box/output_001.pdf differ diff --git a/tests/output/test_write_check_box/output_001_validation.json b/tests/output/test_write_check_box/output_001_validation.json index 94f2cce4d..36591fc5a 100644 --- a/tests/output/test_write_check_box/output_001_validation.json +++ b/tests/output/test_write_check_box/output_001_validation.json @@ -1,7 +1,7 @@ { "analysis-summary": { "can-be-optimized": false, - "date": "Sun May 22 22:23:49 2022", + "date": "Sat Jun 4 01:20:20 2022", "input": "/home/joris/Code/borb-dev/tests/output/test_write_check_box/output_001.pdf", "metadata": { "Author": "", diff --git a/tests/output/test_write_check_box/output_002.pdf b/tests/output/test_write_check_box/output_002.pdf index 09c74cd71..83c58e760 100644 Binary files a/tests/output/test_write_check_box/output_002.pdf and b/tests/output/test_write_check_box/output_002.pdf differ diff --git a/tests/output/test_write_check_box/output_002_validation.json b/tests/output/test_write_check_box/output_002_validation.json index 8ef4a3ebf..5d2d8250a 100644 --- a/tests/output/test_write_check_box/output_002_validation.json +++ b/tests/output/test_write_check_box/output_002_validation.json @@ -1,7 +1,7 @@ { "analysis-summary": { "can-be-optimized": false, - "date": "Sun May 22 22:23:49 2022", + "date": "Sat Jun 4 01:20:21 2022", "input": "/home/joris/Code/borb-dev/tests/output/test_write_check_box/output_002.pdf", "metadata": { "Author": "", diff --git a/tests/output/test_write_chunk_of_text/output.pdf b/tests/output/test_write_chunk_of_text/output.pdf index e31869480..f156767a4 100644 Binary files a/tests/output/test_write_chunk_of_text/output.pdf and b/tests/output/test_write_chunk_of_text/output.pdf differ diff --git a/tests/output/test_write_chunk_of_text_escaped_chars/output.pdf b/tests/output/test_write_chunk_of_text_escaped_chars/output.pdf index c56637ad8..f329d6f4a 100644 Binary files a/tests/output/test_write_chunk_of_text_escaped_chars/output.pdf and b/tests/output/test_write_chunk_of_text_escaped_chars/output.pdf differ diff --git a/tests/output/test_write_chunk_of_text_in_rainbow_colors/output.pdf b/tests/output/test_write_chunk_of_text_in_rainbow_colors/output.pdf index 17b9da9be..3e3b0c5e5 100644 Binary files a/tests/output/test_write_chunk_of_text_in_rainbow_colors/output.pdf and b/tests/output/test_write_chunk_of_text_in_rainbow_colors/output.pdf differ diff --git a/tests/output/test_write_chunks_of_text/output_001.pdf b/tests/output/test_write_chunks_of_text/output_001.pdf index 3f41672e7..d56fc1444 100644 Binary files a/tests/output/test_write_chunks_of_text/output_001.pdf and b/tests/output/test_write_chunks_of_text/output_001.pdf differ diff --git a/tests/output/test_write_chunks_of_text/output_002.pdf b/tests/output/test_write_chunks_of_text/output_002.pdf index ae769fd5b..51ffc1049 100644 Binary files a/tests/output/test_write_chunks_of_text/output_002.pdf and b/tests/output/test_write_chunks_of_text/output_002.pdf differ diff --git a/tests/output/test_write_chunks_of_text/output_003.pdf b/tests/output/test_write_chunks_of_text/output_003.pdf index c3c61a560..720f0f451 100644 Binary files a/tests/output/test_write_chunks_of_text/output_003.pdf and b/tests/output/test_write_chunks_of_text/output_003.pdf differ diff --git a/tests/output/test_write_chunks_of_text/output_004.pdf b/tests/output/test_write_chunks_of_text/output_004.pdf index cba26b7a4..63503a049 100644 Binary files a/tests/output/test_write_chunks_of_text/output_004.pdf and b/tests/output/test_write_chunks_of_text/output_004.pdf differ diff --git a/tests/output/test_write_chunks_of_text/output_005.pdf b/tests/output/test_write_chunks_of_text/output_005.pdf index ccb628539..812500e46 100644 Binary files a/tests/output/test_write_chunks_of_text/output_005.pdf and b/tests/output/test_write_chunks_of_text/output_005.pdf differ diff --git a/tests/output/test_write_chunks_of_text_preserves_bounding_boxes/output.pdf b/tests/output/test_write_chunks_of_text_preserves_bounding_boxes/output.pdf index aa3e92289..10a8a9ac4 100644 Binary files a/tests/output/test_write_chunks_of_text_preserves_bounding_boxes/output.pdf and b/tests/output/test_write_chunks_of_text_preserves_bounding_boxes/output.pdf differ diff --git a/tests/output/test_write_code_128_barcode/output.pdf b/tests/output/test_write_code_128_barcode/output.pdf index 678167a7e..0cd7657aa 100644 Binary files a/tests/output/test_write_code_128_barcode/output.pdf and b/tests/output/test_write_code_128_barcode/output.pdf differ diff --git a/tests/output/test_write_code_128_barcode_in_color/output.pdf b/tests/output/test_write_code_128_barcode_in_color/output.pdf index e05c5cd5b..23a80872d 100644 Binary files a/tests/output/test_write_code_128_barcode_in_color/output.pdf and b/tests/output/test_write_code_128_barcode_in_color/output.pdf differ diff --git a/tests/output/test_write_codeblock/output.pdf b/tests/output/test_write_codeblock/output.pdf index 653332e64..09c9f0acf 100644 Binary files a/tests/output/test_write_codeblock/output.pdf and b/tests/output/test_write_codeblock/output.pdf differ diff --git a/tests/output/test_write_document_with_lipsum/output_001.pdf b/tests/output/test_write_document_with_lipsum/output_001.pdf index 90fc044d5..6d3e9ac17 100644 Binary files a/tests/output/test_write_document_with_lipsum/output_001.pdf and b/tests/output/test_write_document_with_lipsum/output_001.pdf differ diff --git a/tests/output/test_write_document_with_lipsum/output_001.png b/tests/output/test_write_document_with_lipsum/output_001.png index 5edf3f248..bcd486259 100644 Binary files a/tests/output/test_write_document_with_lipsum/output_001.png and b/tests/output/test_write_document_with_lipsum/output_001.png differ diff --git a/tests/output/test_write_document_with_lipsum/output_002.pdf b/tests/output/test_write_document_with_lipsum/output_002.pdf index ea700d2aa..63b57ffbd 100644 Binary files a/tests/output/test_write_document_with_lipsum/output_002.pdf and b/tests/output/test_write_document_with_lipsum/output_002.pdf differ diff --git a/tests/output/test_write_document_with_lipsum/output_002.png b/tests/output/test_write_document_with_lipsum/output_002.png index 8d9b1aa49..61f031e42 100644 Binary files a/tests/output/test_write_document_with_lipsum/output_002.png and b/tests/output/test_write_document_with_lipsum/output_002.png differ diff --git a/tests/output/test_write_dragon_curve/output.pdf b/tests/output/test_write_dragon_curve/output.pdf index d4e516b36..9ca7029ae 100644 Binary files a/tests/output/test_write_dragon_curve/output.pdf and b/tests/output/test_write_dragon_curve/output.pdf differ diff --git a/tests/output/test_write_drop_down_list/output_001.pdf b/tests/output/test_write_drop_down_list/output_001.pdf index 91a219aaa..b9d2207fa 100644 Binary files a/tests/output/test_write_drop_down_list/output_001.pdf and b/tests/output/test_write_drop_down_list/output_001.pdf differ diff --git a/tests/output/test_write_drop_down_list/output_002.pdf b/tests/output/test_write_drop_down_list/output_002.pdf index 0b345fec7..109909d6b 100644 Binary files a/tests/output/test_write_drop_down_list/output_002.pdf and b/tests/output/test_write_drop_down_list/output_002.pdf differ diff --git a/tests/output/test_write_emoji/output.pdf b/tests/output/test_write_emoji/output.pdf index e10ce83b2..82d0b7b04 100644 Binary files a/tests/output/test_write_emoji/output.pdf and b/tests/output/test_write_emoji/output.pdf differ diff --git a/tests/output/test_write_empty_document/output.pdf b/tests/output/test_write_empty_document/output.pdf index f6452d93f..62fd01abd 100644 Binary files a/tests/output/test_write_empty_document/output.pdf and b/tests/output/test_write_empty_document/output.pdf differ diff --git a/tests/output/test_write_eurion/output_001.pdf b/tests/output/test_write_eurion/output_001.pdf index a0f182f96..db87d1ae8 100644 Binary files a/tests/output/test_write_eurion/output_001.pdf and b/tests/output/test_write_eurion/output_001.pdf differ diff --git a/tests/output/test_write_eurion/output_002.pdf b/tests/output/test_write_eurion/output_002.pdf index db82e3cde..e9f82c925 100644 Binary files a/tests/output/test_write_eurion/output_002.pdf and b/tests/output/test_write_eurion/output_002.pdf differ diff --git a/tests/output/test_write_fixed_column_width_table/output_001.pdf b/tests/output/test_write_fixed_column_width_table/output_001.pdf index e93495bfb..608ed7204 100644 Binary files a/tests/output/test_write_fixed_column_width_table/output_001.pdf and b/tests/output/test_write_fixed_column_width_table/output_001.pdf differ diff --git a/tests/output/test_write_fixed_column_width_table/output_002.pdf b/tests/output/test_write_fixed_column_width_table/output_002.pdf index dcf3bad2e..14335ced6 100644 Binary files a/tests/output/test_write_fixed_column_width_table/output_002.pdf and b/tests/output/test_write_fixed_column_width_table/output_002.pdf differ diff --git a/tests/output/test_write_fixed_column_width_table/output_003.pdf b/tests/output/test_write_fixed_column_width_table/output_003.pdf index acbc3584c..f0075bf75 100644 Binary files a/tests/output/test_write_fixed_column_width_table/output_003.pdf and b/tests/output/test_write_fixed_column_width_table/output_003.pdf differ diff --git a/tests/output/test_write_fixed_column_width_table/output_004.pdf b/tests/output/test_write_fixed_column_width_table/output_004.pdf index 2b31cd909..cb065674c 100644 Binary files a/tests/output/test_write_fixed_column_width_table/output_004.pdf and b/tests/output/test_write_fixed_column_width_table/output_004.pdf differ diff --git a/tests/output/test_write_fixed_column_width_table/output_005.pdf b/tests/output/test_write_fixed_column_width_table/output_005.pdf index 10ed09b37..ee5a129a7 100644 Binary files a/tests/output/test_write_fixed_column_width_table/output_005.pdf and b/tests/output/test_write_fixed_column_width_table/output_005.pdf differ diff --git a/tests/output/test_write_flexi_table/output_001.pdf b/tests/output/test_write_flexi_table/output_001.pdf index 988b8db2c..35d7e7916 100644 Binary files a/tests/output/test_write_flexi_table/output_001.pdf and b/tests/output/test_write_flexi_table/output_001.pdf differ diff --git a/tests/output/test_write_flexi_table/output_002.pdf b/tests/output/test_write_flexi_table/output_002.pdf index df1ac6407..fca891d6a 100644 Binary files a/tests/output/test_write_flexi_table/output_002.pdf and b/tests/output/test_write_flexi_table/output_002.pdf differ diff --git a/tests/output/test_write_flexi_table/output_003.pdf b/tests/output/test_write_flexi_table/output_003.pdf index 6e7d9ab84..2efaabbf6 100644 Binary files a/tests/output/test_write_flexi_table/output_003.pdf and b/tests/output/test_write_flexi_table/output_003.pdf differ diff --git a/tests/output/test_write_flexi_table/output_004.pdf b/tests/output/test_write_flexi_table/output_004.pdf index a7a31b6bf..a7d7b893e 100644 Binary files a/tests/output/test_write_flexi_table/output_004.pdf and b/tests/output/test_write_flexi_table/output_004.pdf differ diff --git a/tests/output/test_write_flexi_table/output_005.pdf b/tests/output/test_write_flexi_table/output_005.pdf index 07a34ca60..c7c497c3e 100644 Binary files a/tests/output/test_write_flexi_table/output_005.pdf and b/tests/output/test_write_flexi_table/output_005.pdf differ diff --git a/tests/output/test_write_flexi_table_with_preferred_width/output.pdf b/tests/output/test_write_flexi_table_with_preferred_width/output.pdf index 013cc384c..2d14a2f70 100644 Binary files a/tests/output/test_write_flexi_table_with_preferred_width/output.pdf and b/tests/output/test_write_flexi_table_with_preferred_width/output.pdf differ diff --git a/tests/output/test_write_flowchart_line_art/output.pdf b/tests/output/test_write_flowchart_line_art/output.pdf index ed4531114..d84e37865 100644 Binary files a/tests/output/test_write_flowchart_line_art/output.pdf and b/tests/output/test_write_flowchart_line_art/output.pdf differ diff --git a/tests/output/test_write_flyer/output.pdf b/tests/output/test_write_flyer/output.pdf index 996fb4baa..7ddd84fb4 100644 Binary files a/tests/output/test_write_flyer/output.pdf and b/tests/output/test_write_flyer/output.pdf differ diff --git a/tests/output/test_write_form_with_missing_xref/output_001.pdf b/tests/output/test_write_form_with_missing_xref/output_001.pdf index ffce3b55c..5b57ed2e2 100644 Binary files a/tests/output/test_write_form_with_missing_xref/output_001.pdf and b/tests/output/test_write_form_with_missing_xref/output_001.pdf differ diff --git a/tests/output/test_write_gradient_rectangular_maze/output_001.pdf b/tests/output/test_write_gradient_rectangular_maze/output_001.pdf index 9fafbb80b..96808f55b 100644 Binary files a/tests/output/test_write_gradient_rectangular_maze/output_001.pdf and b/tests/output/test_write_gradient_rectangular_maze/output_001.pdf differ diff --git a/tests/output/test_write_gradient_rectangular_maze/output_002.pdf b/tests/output/test_write_gradient_rectangular_maze/output_002.pdf index 98b613c79..03d79a0ef 100644 Binary files a/tests/output/test_write_gradient_rectangular_maze/output_002.pdf and b/tests/output/test_write_gradient_rectangular_maze/output_002.pdf differ diff --git a/tests/output/test_write_gradient_rectangular_maze/output_003.pdf b/tests/output/test_write_gradient_rectangular_maze/output_003.pdf index dae478f90..955a6417f 100644 Binary files a/tests/output/test_write_gradient_rectangular_maze/output_003.pdf and b/tests/output/test_write_gradient_rectangular_maze/output_003.pdf differ diff --git a/tests/output/test_write_grayscale_image/output.pdf b/tests/output/test_write_grayscale_image/output.pdf index e116ac355..d099d8323 100644 Binary files a/tests/output/test_write_grayscale_image/output.pdf and b/tests/output/test_write_grayscale_image/output.pdf differ diff --git a/tests/output/test_write_hello_world_with_monaco_font/output_001.pdf b/tests/output/test_write_hello_world_with_monaco_font/output_001.pdf index 74d7d5e13..49eed66b6 100644 Binary files a/tests/output/test_write_hello_world_with_monaco_font/output_001.pdf and b/tests/output/test_write_hello_world_with_monaco_font/output_001.pdf differ diff --git a/tests/output/test_write_hello_world_with_simhei_font/output_001.pdf b/tests/output/test_write_hello_world_with_simhei_font/output_001.pdf index 27f66b70b..99b496f9c 100644 Binary files a/tests/output/test_write_hello_world_with_simhei_font/output_001.pdf and b/tests/output/test_write_hello_world_with_simhei_font/output_001.pdf differ diff --git a/tests/output/test_write_hyphenated_paragraph/output_001.pdf b/tests/output/test_write_hyphenated_paragraph/output_001.pdf index fafc7aa29..f8bcfcfc3 100644 Binary files a/tests/output/test_write_hyphenated_paragraph/output_001.pdf and b/tests/output/test_write_hyphenated_paragraph/output_001.pdf differ diff --git a/tests/output/test_write_hyphenated_paragraph/output_002.pdf b/tests/output/test_write_hyphenated_paragraph/output_002.pdf index 32aec19e4..bdc569448 100644 Binary files a/tests/output/test_write_hyphenated_paragraph/output_002.pdf and b/tests/output/test_write_hyphenated_paragraph/output_002.pdf differ diff --git a/tests/output/test_write_image_aligned_center/output.pdf b/tests/output/test_write_image_aligned_center/output.pdf index 5de757bd1..54ffde781 100644 Binary files a/tests/output/test_write_image_aligned_center/output.pdf and b/tests/output/test_write_image_aligned_center/output.pdf differ diff --git a/tests/output/test_write_image_by_url/output.pdf b/tests/output/test_write_image_by_url/output.pdf index 949793d34..9d26254ad 100644 Binary files a/tests/output/test_write_image_by_url/output.pdf and b/tests/output/test_write_image_by_url/output.pdf differ diff --git a/tests/output/test_write_image_with_rounded_borders/output_000.pdf b/tests/output/test_write_image_with_rounded_borders/output_000.pdf index 0f91d23d8..fd2554ecb 100644 Binary files a/tests/output/test_write_image_with_rounded_borders/output_000.pdf and b/tests/output/test_write_image_with_rounded_borders/output_000.pdf differ diff --git a/tests/output/test_write_image_with_rounded_borders/output_001.pdf b/tests/output/test_write_image_with_rounded_borders/output_001.pdf index fa8678858..650d12715 100644 Binary files a/tests/output/test_write_image_with_rounded_borders/output_001.pdf and b/tests/output/test_write_image_with_rounded_borders/output_001.pdf differ diff --git a/tests/output/test_write_image_with_rounded_borders/output_002.pdf b/tests/output/test_write_image_with_rounded_borders/output_002.pdf index 7300d3b0a..dee0e2c29 100644 Binary files a/tests/output/test_write_image_with_rounded_borders/output_002.pdf and b/tests/output/test_write_image_with_rounded_borders/output_002.pdf differ diff --git a/tests/output/test_write_image_with_rounded_borders/output_003.pdf b/tests/output/test_write_image_with_rounded_borders/output_003.pdf index 9aa9b14f3..f0141b60a 100644 Binary files a/tests/output/test_write_image_with_rounded_borders/output_003.pdf and b/tests/output/test_write_image_with_rounded_borders/output_003.pdf differ diff --git a/tests/output/test_write_image_with_rounded_borders/output_004.pdf b/tests/output/test_write_image_with_rounded_borders/output_004.pdf index 81ff53fec..1b4abdddf 100644 Binary files a/tests/output/test_write_image_with_rounded_borders/output_004.pdf and b/tests/output/test_write_image_with_rounded_borders/output_004.pdf differ diff --git a/tests/output/test_write_image_with_rounded_borders/output_005.pdf b/tests/output/test_write_image_with_rounded_borders/output_005.pdf index a74cee438..9b89172e6 100644 Binary files a/tests/output/test_write_image_with_rounded_borders/output_005.pdf and b/tests/output/test_write_image_with_rounded_borders/output_005.pdf differ diff --git a/tests/output/test_write_image_with_rounded_borders/output_006.pdf b/tests/output/test_write_image_with_rounded_borders/output_006.pdf index 203a00b4d..7335644cd 100644 Binary files a/tests/output/test_write_image_with_rounded_borders/output_006.pdf and b/tests/output/test_write_image_with_rounded_borders/output_006.pdf differ diff --git a/tests/output/test_write_image_with_rounded_borders/output_007.pdf b/tests/output/test_write_image_with_rounded_borders/output_007.pdf index 6aca2c8aa..2eed1c600 100644 Binary files a/tests/output/test_write_image_with_rounded_borders/output_007.pdf and b/tests/output/test_write_image_with_rounded_borders/output_007.pdf differ diff --git a/tests/output/test_write_image_with_rounded_borders/output_008.pdf b/tests/output/test_write_image_with_rounded_borders/output_008.pdf index 25a7ead57..473aa42f0 100644 Binary files a/tests/output/test_write_image_with_rounded_borders/output_008.pdf and b/tests/output/test_write_image_with_rounded_borders/output_008.pdf differ diff --git a/tests/output/test_write_incomplete_table/output.pdf b/tests/output/test_write_incomplete_table/output.pdf index 7dc49f604..b012399e6 100644 Binary files a/tests/output/test_write_incomplete_table/output.pdf and b/tests/output/test_write_incomplete_table/output.pdf differ diff --git a/tests/output/test_write_line_of_text_justified_center/output.pdf b/tests/output/test_write_line_of_text_justified_center/output.pdf index 122c8e91c..ca2e52741 100644 Binary files a/tests/output/test_write_line_of_text_justified_center/output.pdf and b/tests/output/test_write_line_of_text_justified_center/output.pdf differ diff --git a/tests/output/test_write_line_of_text_justified_full/output.pdf b/tests/output/test_write_line_of_text_justified_full/output.pdf index 0fb059467..66915eac1 100644 Binary files a/tests/output/test_write_line_of_text_justified_full/output.pdf and b/tests/output/test_write_line_of_text_justified_full/output.pdf differ diff --git a/tests/output/test_write_line_of_text_justified_right/output_001.pdf b/tests/output/test_write_line_of_text_justified_right/output_001.pdf index b7bb2c873..84ea6170a 100644 Binary files a/tests/output/test_write_line_of_text_justified_right/output_001.pdf and b/tests/output/test_write_line_of_text_justified_right/output_001.pdf differ diff --git a/tests/output/test_write_line_of_text_justified_right/output_002.pdf b/tests/output/test_write_line_of_text_justified_right/output_002.pdf index 299694748..573a10267 100644 Binary files a/tests/output/test_write_line_of_text_justified_right/output_002.pdf and b/tests/output/test_write_line_of_text_justified_right/output_002.pdf differ diff --git a/tests/output/test_write_lissajours_line_art/output.pdf b/tests/output/test_write_lissajours_line_art/output.pdf index e7cd34320..0a26158c5 100644 Binary files a/tests/output/test_write_lissajours_line_art/output.pdf and b/tests/output/test_write_lissajours_line_art/output.pdf differ diff --git a/tests/output/test_write_long_unordered_list/output.pdf b/tests/output/test_write_long_unordered_list/output.pdf index 05650103c..20c13142a 100644 Binary files a/tests/output/test_write_long_unordered_list/output.pdf and b/tests/output/test_write_long_unordered_list/output.pdf differ diff --git a/tests/output/test_write_multiple_pages/output.pdf b/tests/output/test_write_multiple_pages/output.pdf index 284fb446d..2ec541471 100644 Binary files a/tests/output/test_write_multiple_pages/output.pdf and b/tests/output/test_write_multiple_pages/output.pdf differ diff --git a/tests/output/test_write_multiple_pages/output.png b/tests/output/test_write_multiple_pages/output.png index 984ea48fc..11c04c196 100644 Binary files a/tests/output/test_write_multiple_pages/output.png and b/tests/output/test_write_multiple_pages/output.png differ diff --git a/tests/output/test_write_nested_ordered_list/output.pdf b/tests/output/test_write_nested_ordered_list/output.pdf index d4cd49963..b8d50a94c 100644 Binary files a/tests/output/test_write_nested_ordered_list/output.pdf and b/tests/output/test_write_nested_ordered_list/output.pdf differ diff --git a/tests/output/test_write_nested_unordered_list/output.pdf b/tests/output/test_write_nested_unordered_list/output.pdf index 1f86bc015..a9eded06b 100644 Binary files a/tests/output/test_write_nested_unordered_list/output.pdf and b/tests/output/test_write_nested_unordered_list/output.pdf differ diff --git a/tests/output/test_write_ordered_list/output_001.pdf b/tests/output/test_write_ordered_list/output_001.pdf index bcf3a25cc..33841d892 100644 Binary files a/tests/output/test_write_ordered_list/output_001.pdf and b/tests/output/test_write_ordered_list/output_001.pdf differ diff --git a/tests/output/test_write_ordered_list/output_002.pdf b/tests/output/test_write_ordered_list/output_002.pdf index ca2574273..d7d78c0cf 100644 Binary files a/tests/output/test_write_ordered_list/output_002.pdf and b/tests/output/test_write_ordered_list/output_002.pdf differ diff --git a/tests/output/test_write_paragraph/output.pdf b/tests/output/test_write_paragraph/output.pdf index 646d8c0a5..d23fe4a0e 100644 Binary files a/tests/output/test_write_paragraph/output.pdf and b/tests/output/test_write_paragraph/output.pdf differ diff --git a/tests/output/test_write_paragraph_alignment/output.pdf b/tests/output/test_write_paragraph_alignment/output.pdf index e709e0a92..487fcbef5 100644 Binary files a/tests/output/test_write_paragraph_alignment/output.pdf and b/tests/output/test_write_paragraph_alignment/output.pdf differ diff --git a/tests/output/test_write_paragraph_border_left/output.pdf b/tests/output/test_write_paragraph_border_left/output.pdf index ea7abf452..a15d7a0bb 100644 Binary files a/tests/output/test_write_paragraph_border_left/output.pdf and b/tests/output/test_write_paragraph_border_left/output.pdf differ diff --git a/tests/output/test_write_paragraph_force_split/output.pdf b/tests/output/test_write_paragraph_force_split/output.pdf index 4c6727207..d4ee790a6 100644 Binary files a/tests/output/test_write_paragraph_force_split/output.pdf and b/tests/output/test_write_paragraph_force_split/output.pdf differ diff --git a/tests/output/test_write_paragraph_justified_center/output_001.pdf b/tests/output/test_write_paragraph_justified_center/output_001.pdf index fb747daf9..860d1b9eb 100644 Binary files a/tests/output/test_write_paragraph_justified_center/output_001.pdf and b/tests/output/test_write_paragraph_justified_center/output_001.pdf differ diff --git a/tests/output/test_write_paragraph_justified_center/output_002.pdf b/tests/output/test_write_paragraph_justified_center/output_002.pdf index 363fbfc5b..d4b5b59b1 100644 Binary files a/tests/output/test_write_paragraph_justified_center/output_002.pdf and b/tests/output/test_write_paragraph_justified_center/output_002.pdf differ diff --git a/tests/output/test_write_paragraph_justified_center_with_padding/output.pdf b/tests/output/test_write_paragraph_justified_center_with_padding/output.pdf index ea4ff4958..1fdd6ef0c 100644 Binary files a/tests/output/test_write_paragraph_justified_center_with_padding/output.pdf and b/tests/output/test_write_paragraph_justified_center_with_padding/output.pdf differ diff --git a/tests/output/test_write_paragraph_justified_center_with_padding_and_border/output.pdf b/tests/output/test_write_paragraph_justified_center_with_padding_and_border/output.pdf index 52e213ee6..d6df7d4f6 100644 Binary files a/tests/output/test_write_paragraph_justified_center_with_padding_and_border/output.pdf and b/tests/output/test_write_paragraph_justified_center_with_padding_and_border/output.pdf differ diff --git a/tests/output/test_write_paragraph_justified_center_with_padding_and_border_and_background/output.pdf b/tests/output/test_write_paragraph_justified_center_with_padding_and_border_and_background/output.pdf index e2f23a998..09b4f5e64 100644 Binary files a/tests/output/test_write_paragraph_justified_center_with_padding_and_border_and_background/output.pdf and b/tests/output/test_write_paragraph_justified_center_with_padding_and_border_and_background/output.pdf differ diff --git a/tests/output/test_write_paragraph_justified_full/output.pdf b/tests/output/test_write_paragraph_justified_full/output.pdf index 6c37f564f..bac932eeb 100644 Binary files a/tests/output/test_write_paragraph_justified_full/output.pdf and b/tests/output/test_write_paragraph_justified_full/output.pdf differ diff --git a/tests/output/test_write_paragraph_justified_right/output.pdf b/tests/output/test_write_paragraph_justified_right/output.pdf index fcb6221c1..2a2fe657c 100644 Binary files a/tests/output/test_write_paragraph_justified_right/output.pdf and b/tests/output/test_write_paragraph_justified_right/output.pdf differ diff --git a/tests/output/test_write_paragraph_preserve_space/output.pdf b/tests/output/test_write_paragraph_preserve_space/output.pdf index a74e21c6d..052a617a5 100644 Binary files a/tests/output/test_write_paragraph_preserve_space/output.pdf and b/tests/output/test_write_paragraph_preserve_space/output.pdf differ diff --git a/tests/output/test_write_paragraph_save_twice/output_001.pdf b/tests/output/test_write_paragraph_save_twice/output_001.pdf index b2fb93a1f..62e98e1c9 100644 Binary files a/tests/output/test_write_paragraph_save_twice/output_001.pdf and b/tests/output/test_write_paragraph_save_twice/output_001.pdf differ diff --git a/tests/output/test_write_paragraph_save_twice/output_002.pdf b/tests/output/test_write_paragraph_save_twice/output_002.pdf index 4cbc776e5..57ce6f747 100644 Binary files a/tests/output/test_write_paragraph_save_twice/output_002.pdf and b/tests/output/test_write_paragraph_save_twice/output_002.pdf differ diff --git a/tests/output/test_write_paragraph_with_accented_letters/output.pdf b/tests/output/test_write_paragraph_with_accented_letters/output.pdf index 03bf59f11..d405be6c2 100644 Binary files a/tests/output/test_write_paragraph_with_accented_letters/output.pdf and b/tests/output/test_write_paragraph_with_accented_letters/output.pdf differ diff --git a/tests/output/test_write_paragraph_with_rounded_borders/output_000.pdf b/tests/output/test_write_paragraph_with_rounded_borders/output_000.pdf index e34606766..a05c21398 100644 Binary files a/tests/output/test_write_paragraph_with_rounded_borders/output_000.pdf and b/tests/output/test_write_paragraph_with_rounded_borders/output_000.pdf differ diff --git a/tests/output/test_write_paragraph_with_rounded_borders/output_001.pdf b/tests/output/test_write_paragraph_with_rounded_borders/output_001.pdf index 9ec43401f..7d83e044e 100644 Binary files a/tests/output/test_write_paragraph_with_rounded_borders/output_001.pdf and b/tests/output/test_write_paragraph_with_rounded_borders/output_001.pdf differ diff --git a/tests/output/test_write_paragraph_with_rounded_borders/output_002.pdf b/tests/output/test_write_paragraph_with_rounded_borders/output_002.pdf index 64df9def9..259f378d6 100644 Binary files a/tests/output/test_write_paragraph_with_rounded_borders/output_002.pdf and b/tests/output/test_write_paragraph_with_rounded_borders/output_002.pdf differ diff --git a/tests/output/test_write_paragraph_with_rounded_borders/output_003.pdf b/tests/output/test_write_paragraph_with_rounded_borders/output_003.pdf index c20dd73c3..51015e8ff 100644 Binary files a/tests/output/test_write_paragraph_with_rounded_borders/output_003.pdf and b/tests/output/test_write_paragraph_with_rounded_borders/output_003.pdf differ diff --git a/tests/output/test_write_paragraph_with_rounded_borders/output_004.pdf b/tests/output/test_write_paragraph_with_rounded_borders/output_004.pdf index a7ecf8fc1..68d4bb9cf 100644 Binary files a/tests/output/test_write_paragraph_with_rounded_borders/output_004.pdf and b/tests/output/test_write_paragraph_with_rounded_borders/output_004.pdf differ diff --git a/tests/output/test_write_paragraph_with_rounded_borders/output_005.pdf b/tests/output/test_write_paragraph_with_rounded_borders/output_005.pdf index 5e71531c1..e28d24293 100644 Binary files a/tests/output/test_write_paragraph_with_rounded_borders/output_005.pdf and b/tests/output/test_write_paragraph_with_rounded_borders/output_005.pdf differ diff --git a/tests/output/test_write_paragraph_with_rounded_borders/output_006.pdf b/tests/output/test_write_paragraph_with_rounded_borders/output_006.pdf index de5993ce5..4e9c453a1 100644 Binary files a/tests/output/test_write_paragraph_with_rounded_borders/output_006.pdf and b/tests/output/test_write_paragraph_with_rounded_borders/output_006.pdf differ diff --git a/tests/output/test_write_paragraph_with_rounded_borders/output_007.pdf b/tests/output/test_write_paragraph_with_rounded_borders/output_007.pdf index cd796b8e0..096e7ba0d 100644 Binary files a/tests/output/test_write_paragraph_with_rounded_borders/output_007.pdf and b/tests/output/test_write_paragraph_with_rounded_borders/output_007.pdf differ diff --git a/tests/output/test_write_paragraph_with_rounded_borders/output_008.pdf b/tests/output/test_write_paragraph_with_rounded_borders/output_008.pdf index d8313ae8a..3902c2133 100644 Binary files a/tests/output/test_write_paragraph_with_rounded_borders/output_008.pdf and b/tests/output/test_write_paragraph_with_rounded_borders/output_008.pdf differ diff --git a/tests/output/test_write_paragraph_with_rounded_borders/output_009.pdf b/tests/output/test_write_paragraph_with_rounded_borders/output_009.pdf index 09a85c484..18c267add 100644 Binary files a/tests/output/test_write_paragraph_with_rounded_borders/output_009.pdf and b/tests/output/test_write_paragraph_with_rounded_borders/output_009.pdf differ diff --git a/tests/output/test_write_paragraph_with_rounded_borders/output_010.pdf b/tests/output/test_write_paragraph_with_rounded_borders/output_010.pdf index 0cd642336..15876bb2a 100644 Binary files a/tests/output/test_write_paragraph_with_rounded_borders/output_010.pdf and b/tests/output/test_write_paragraph_with_rounded_borders/output_010.pdf differ diff --git a/tests/output/test_write_paragraph_with_rounded_borders/output_011.pdf b/tests/output/test_write_paragraph_with_rounded_borders/output_011.pdf index d332f5d42..307382831 100644 Binary files a/tests/output/test_write_paragraph_with_rounded_borders/output_011.pdf and b/tests/output/test_write_paragraph_with_rounded_borders/output_011.pdf differ diff --git a/tests/output/test_write_paragraphs_using_multi_column_layout/output.pdf b/tests/output/test_write_paragraphs_using_multi_column_layout/output.pdf index a6c481e6f..cbee998c7 100644 Binary files a/tests/output/test_write_paragraphs_using_multi_column_layout/output.pdf and b/tests/output/test_write_paragraphs_using_multi_column_layout/output.pdf differ diff --git a/tests/output/test_write_paragraphs_using_multi_column_layout_with_varying_spacing/output_005.pdf b/tests/output/test_write_paragraphs_using_multi_column_layout_with_varying_spacing/output_005.pdf index 51e5b62d5..3b31a0d2c 100644 Binary files a/tests/output/test_write_paragraphs_using_multi_column_layout_with_varying_spacing/output_005.pdf and b/tests/output/test_write_paragraphs_using_multi_column_layout_with_varying_spacing/output_005.pdf differ diff --git a/tests/output/test_write_paragraphs_using_multi_column_layout_with_varying_spacing/output_010.pdf b/tests/output/test_write_paragraphs_using_multi_column_layout_with_varying_spacing/output_010.pdf index 60bf00daf..1da782a9a 100644 Binary files a/tests/output/test_write_paragraphs_using_multi_column_layout_with_varying_spacing/output_010.pdf and b/tests/output/test_write_paragraphs_using_multi_column_layout_with_varying_spacing/output_010.pdf differ diff --git a/tests/output/test_write_paragraphs_using_single_column_layout/output.pdf b/tests/output/test_write_paragraphs_using_single_column_layout/output.pdf index 3fa24f631..a0a094b71 100644 Binary files a/tests/output/test_write_paragraphs_using_single_column_layout/output.pdf and b/tests/output/test_write_paragraphs_using_single_column_layout/output.pdf differ diff --git a/tests/output/test_write_paragraphs_with_headings/output.pdf b/tests/output/test_write_paragraphs_with_headings/output.pdf index f4b5717fa..5c92c46a7 100644 Binary files a/tests/output/test_write_paragraphs_with_headings/output.pdf and b/tests/output/test_write_paragraphs_with_headings/output.pdf differ diff --git a/tests/output/test_write_paragraphs_with_headings/output.png b/tests/output/test_write_paragraphs_with_headings/output.png index 8e2e27c42..fad21cdaa 100644 Binary files a/tests/output/test_write_paragraphs_with_headings/output.png and b/tests/output/test_write_paragraphs_with_headings/output.png differ diff --git a/tests/output/test_write_pdf_a_1b/output_001.pdf b/tests/output/test_write_pdf_a_1b/output_001.pdf index 8a1afafc7..9e1c06240 100644 Binary files a/tests/output/test_write_pdf_a_1b/output_001.pdf and b/tests/output/test_write_pdf_a_1b/output_001.pdf differ diff --git a/tests/output/test_write_pdf_a_1b/output_001_validation.json b/tests/output/test_write_pdf_a_1b/output_001_validation.json index 5ac9bf0fb..6c7bc4b67 100644 --- a/tests/output/test_write_pdf_a_1b/output_001_validation.json +++ b/tests/output/test_write_pdf_a_1b/output_001_validation.json @@ -3,7 +3,7 @@ "can-be-optimized": true, "claimed-pdfa-type": "PDF/A-1b", "conforms-to-claimed-pdfa-type": false, - "date": "Sun May 22 22:31:51 2022", + "date": "Sat Jun 4 01:25:33 2022", "errors": [ "does-not-conform-to-claimed-pdfa-type" ], diff --git a/tests/output/test_write_pdf_a_1b/output_002.pdf b/tests/output/test_write_pdf_a_1b/output_002.pdf index 199a47cdb..7ae2a3cbf 100644 Binary files a/tests/output/test_write_pdf_a_1b/output_002.pdf and b/tests/output/test_write_pdf_a_1b/output_002.pdf differ diff --git a/tests/output/test_write_pdf_a_1b/output_002_validation.json b/tests/output/test_write_pdf_a_1b/output_002_validation.json index b8efce6aa..61101d2c0 100644 --- a/tests/output/test_write_pdf_a_1b/output_002_validation.json +++ b/tests/output/test_write_pdf_a_1b/output_002_validation.json @@ -3,7 +3,7 @@ "can-be-optimized": true, "claimed-pdfa-type": "PDF/A-1b", "conforms-to-claimed-pdfa-type": false, - "date": "Sun May 22 22:31:47 2022", + "date": "Sat Jun 4 01:25:30 2022", "errors": [ "does-not-conform-to-claimed-pdfa-type" ], diff --git a/tests/output/test_write_pil_image/output.pdf b/tests/output/test_write_pil_image/output.pdf index 03ce2950c..9eb951fc6 100644 Binary files a/tests/output/test_write_pil_image/output.pdf and b/tests/output/test_write_pil_image/output.pdf differ diff --git a/tests/output/test_write_png_image_by_url/output.pdf b/tests/output/test_write_png_image_by_url/output.pdf index 3642bbde8..51eda2617 100644 Binary files a/tests/output/test_write_png_image_by_url/output.pdf and b/tests/output/test_write_png_image_by_url/output.pdf differ diff --git a/tests/output/test_write_push_button/output_001.pdf b/tests/output/test_write_push_button/output_001.pdf index 52387fd5d..de9a3dca7 100644 Binary files a/tests/output/test_write_push_button/output_001.pdf and b/tests/output/test_write_push_button/output_001.pdf differ diff --git a/tests/output/test_write_push_button/output_002.pdf b/tests/output/test_write_push_button/output_002.pdf index fc82692c2..db51eb21a 100644 Binary files a/tests/output/test_write_push_button/output_002.pdf and b/tests/output/test_write_push_button/output_002.pdf differ diff --git a/tests/output/test_write_push_button/output_003.pdf b/tests/output/test_write_push_button/output_003.pdf index 89c22dfc2..d5ed520bb 100644 Binary files a/tests/output/test_write_push_button/output_003.pdf and b/tests/output/test_write_push_button/output_003.pdf differ diff --git a/tests/output/test_write_radar_plot/output.pdf b/tests/output/test_write_radar_plot/output.pdf index 3efb15b92..836723892 100644 Binary files a/tests/output/test_write_radar_plot/output.pdf and b/tests/output/test_write_radar_plot/output.pdf differ diff --git a/tests/output/test_write_rectangular_hitomezashi/output.pdf b/tests/output/test_write_rectangular_hitomezashi/output.pdf index 507fb41d9..a59996546 100644 Binary files a/tests/output/test_write_rectangular_hitomezashi/output.pdf and b/tests/output/test_write_rectangular_hitomezashi/output.pdf differ diff --git a/tests/output/test_write_rectangular_maze/output.pdf b/tests/output/test_write_rectangular_maze/output.pdf index c654ad517..2864ed883 100644 Binary files a/tests/output/test_write_rectangular_maze/output.pdf and b/tests/output/test_write_rectangular_maze/output.pdf differ diff --git a/tests/output/test_write_single_line_justified_full/output_001.pdf b/tests/output/test_write_single_line_justified_full/output_001.pdf index 6ea1cc349..d066a7f1f 100644 Binary files a/tests/output/test_write_single_line_justified_full/output_001.pdf and b/tests/output/test_write_single_line_justified_full/output_001.pdf differ diff --git a/tests/output/test_write_single_line_justified_full/output_002.pdf b/tests/output/test_write_single_line_justified_full/output_002.pdf index 7437b86e6..64964ae3e 100644 Binary files a/tests/output/test_write_single_line_justified_full/output_002.pdf and b/tests/output/test_write_single_line_justified_full/output_002.pdf differ diff --git a/tests/output/test_write_table_with_col_span/output.pdf b/tests/output/test_write_table_with_col_span/output.pdf index 779f93e5f..3bba2e8c4 100644 Binary files a/tests/output/test_write_table_with_col_span/output.pdf and b/tests/output/test_write_table_with_col_span/output.pdf differ diff --git a/tests/output/test_write_table_with_image/output.pdf b/tests/output/test_write_table_with_image/output.pdf index 8ce5975b7..79e316384 100644 Binary files a/tests/output/test_write_table_with_image/output.pdf and b/tests/output/test_write_table_with_image/output.pdf differ diff --git a/tests/output/test_write_table_with_non_black_paragraphs/output.pdf b/tests/output/test_write_table_with_non_black_paragraphs/output.pdf index a60a26c97..505ff6d69 100644 Binary files a/tests/output/test_write_table_with_non_black_paragraphs/output.pdf and b/tests/output/test_write_table_with_non_black_paragraphs/output.pdf differ diff --git a/tests/output/test_write_table_with_rainbow_background/output.pdf b/tests/output/test_write_table_with_rainbow_background/output.pdf index 7bfec105f..cbe89b349 100644 Binary files a/tests/output/test_write_table_with_rainbow_background/output.pdf and b/tests/output/test_write_table_with_rainbow_background/output.pdf differ diff --git a/tests/output/test_write_table_with_rounded_borders/output_000.pdf b/tests/output/test_write_table_with_rounded_borders/output_000.pdf index d7ec7fb82..e067f2a32 100644 Binary files a/tests/output/test_write_table_with_rounded_borders/output_000.pdf and b/tests/output/test_write_table_with_rounded_borders/output_000.pdf differ diff --git a/tests/output/test_write_table_with_rounded_borders/output_001.pdf b/tests/output/test_write_table_with_rounded_borders/output_001.pdf index 8eebece8a..1319ec038 100644 Binary files a/tests/output/test_write_table_with_rounded_borders/output_001.pdf and b/tests/output/test_write_table_with_rounded_borders/output_001.pdf differ diff --git a/tests/output/test_write_table_with_rounded_borders/output_002.pdf b/tests/output/test_write_table_with_rounded_borders/output_002.pdf index a878b24c4..5700e03c9 100644 Binary files a/tests/output/test_write_table_with_rounded_borders/output_002.pdf and b/tests/output/test_write_table_with_rounded_borders/output_002.pdf differ diff --git a/tests/output/test_write_table_with_rounded_borders/output_003.pdf b/tests/output/test_write_table_with_rounded_borders/output_003.pdf index 3aa7dc428..ca44e9872 100644 Binary files a/tests/output/test_write_table_with_rounded_borders/output_003.pdf and b/tests/output/test_write_table_with_rounded_borders/output_003.pdf differ diff --git a/tests/output/test_write_table_with_rounded_borders/output_004.pdf b/tests/output/test_write_table_with_rounded_borders/output_004.pdf index 26a74b340..10dad4d1b 100644 Binary files a/tests/output/test_write_table_with_rounded_borders/output_004.pdf and b/tests/output/test_write_table_with_rounded_borders/output_004.pdf differ diff --git a/tests/output/test_write_table_with_row_span/output.pdf b/tests/output/test_write_table_with_row_span/output.pdf index dff64922a..bec7e0008 100644 Binary files a/tests/output/test_write_table_with_row_span/output.pdf and b/tests/output/test_write_table_with_row_span/output.pdf differ diff --git a/tests/output/test_write_table_with_special_characters/output.pdf b/tests/output/test_write_table_with_special_characters/output.pdf index 422a2b695..7ff9621ba 100644 Binary files a/tests/output/test_write_table_with_special_characters/output.pdf and b/tests/output/test_write_table_with_special_characters/output.pdf differ diff --git a/tests/output/test_write_table_with_special_characters/output.png b/tests/output/test_write_table_with_special_characters/output.png index f2b99ad38..165a57d59 100644 Binary files a/tests/output/test_write_table_with_special_characters/output.png and b/tests/output/test_write_table_with_special_characters/output.png differ diff --git a/tests/output/test_write_tents_and_trees/output.pdf b/tests/output/test_write_tents_and_trees/output.pdf index 6e6a71850..2e42519fa 100644 Binary files a/tests/output/test_write_tents_and_trees/output.pdf and b/tests/output/test_write_tents_and_trees/output.pdf differ diff --git a/tests/output/test_write_text_area/output_001.pdf b/tests/output/test_write_text_area/output_001.pdf index 97f329508..9b692c507 100644 Binary files a/tests/output/test_write_text_area/output_001.pdf and b/tests/output/test_write_text_area/output_001.pdf differ diff --git a/tests/output/test_write_text_area/output_001.png b/tests/output/test_write_text_area/output_001.png index 3ce88a279..8f02761bf 100644 Binary files a/tests/output/test_write_text_area/output_001.png and b/tests/output/test_write_text_area/output_001.png differ diff --git a/tests/output/test_write_text_area/output_002.pdf b/tests/output/test_write_text_area/output_002.pdf index 630a8b5a7..5873d401d 100644 Binary files a/tests/output/test_write_text_area/output_002.pdf and b/tests/output/test_write_text_area/output_002.pdf differ diff --git a/tests/output/test_write_text_area/output_002.png b/tests/output/test_write_text_area/output_002.png index 7ecc0d1f4..601f34d8d 100644 Binary files a/tests/output/test_write_text_area/output_002.png and b/tests/output/test_write_text_area/output_002.png differ diff --git a/tests/output/test_write_text_field/output_001.pdf b/tests/output/test_write_text_field/output_001.pdf index 08281eb1c..2a6f59026 100644 Binary files a/tests/output/test_write_text_field/output_001.pdf and b/tests/output/test_write_text_field/output_001.pdf differ diff --git a/tests/output/test_write_text_field/output_001.png b/tests/output/test_write_text_field/output_001.png index 1dcbd8a66..4ba49795b 100644 Binary files a/tests/output/test_write_text_field/output_001.png and b/tests/output/test_write_text_field/output_001.png differ diff --git a/tests/output/test_write_text_field/output_002.pdf b/tests/output/test_write_text_field/output_002.pdf index 97bbe3b16..9b769484a 100644 Binary files a/tests/output/test_write_text_field/output_002.pdf and b/tests/output/test_write_text_field/output_002.pdf differ diff --git a/tests/output/test_write_unordered_list/output.pdf b/tests/output/test_write_unordered_list/output.pdf index 218413563..bed17a459 100644 Binary files a/tests/output/test_write_unordered_list/output.pdf and b/tests/output/test_write_unordered_list/output.pdf differ diff --git a/tests/output/test_write_unsplash_image/output.pdf b/tests/output/test_write_unsplash_image/output.pdf index 2a9c851d7..4b9167be8 100644 Binary files a/tests/output/test_write_unsplash_image/output.pdf and b/tests/output/test_write_unsplash_image/output.pdf differ diff --git a/tests/output/test_write_unsplash_image/output.png b/tests/output/test_write_unsplash_image/output.png index fcd3cac06..5765f37e8 100644 Binary files a/tests/output/test_write_unsplash_image/output.png and b/tests/output/test_write_unsplash_image/output.png differ diff --git a/tests/output/test_write_using_low_level_instructions/output.pdf b/tests/output/test_write_using_low_level_instructions/output.pdf index e9852d190..5efd59a39 100644 Binary files a/tests/output/test_write_using_low_level_instructions/output.pdf and b/tests/output/test_write_using_low_level_instructions/output.pdf differ diff --git a/tests/output/test_write_using_low_level_instructions/output.png b/tests/output/test_write_using_low_level_instructions/output.png index afa134f0f..326885511 100644 Binary files a/tests/output/test_write_using_low_level_instructions/output.png and b/tests/output/test_write_using_low_level_instructions/output.png differ diff --git a/tests/output/test_write_with_truetype_font/output_001.pdf b/tests/output/test_write_with_truetype_font/output_001.pdf index 2f000da54..ea37968ae 100644 Binary files a/tests/output/test_write_with_truetype_font/output_001.pdf and b/tests/output/test_write_with_truetype_font/output_001.pdf differ diff --git a/tests/output/test_write_with_truetype_font/output_002.pdf b/tests/output/test_write_with_truetype_font/output_002.pdf index ad8ad72db..0c4a9a7a8 100644 Binary files a/tests/output/test_write_with_truetype_font/output_002.pdf and b/tests/output/test_write_with_truetype_font/output_002.pdf differ diff --git a/tests/output/test_write_with_truetype_font/output_003.pdf b/tests/output/test_write_with_truetype_font/output_003.pdf index a3854815b..e80dc8d15 100644 Binary files a/tests/output/test_write_with_truetype_font/output_003.pdf and b/tests/output/test_write_with_truetype_font/output_003.pdf differ diff --git a/tests/output/test_write_with_truetype_font/output_004.pdf b/tests/output/test_write_with_truetype_font/output_004.pdf index cd8962242..9a052782b 100644 Binary files a/tests/output/test_write_with_truetype_font/output_004.pdf and b/tests/output/test_write_with_truetype_font/output_004.pdf differ diff --git a/tests/output/test_write_xl_image/output.pdf b/tests/output/test_write_xl_image/output.pdf index f4ec5636f..862a041d0 100644 Binary files a/tests/output/test_write_xl_image/output.pdf and b/tests/output/test_write_xl_image/output.pdf differ diff --git a/tests/pdf/document/test_document_file_size.py b/tests/pdf/document/test_document_file_size.py new file mode 100644 index 000000000..7ef2ac59f --- /dev/null +++ b/tests/pdf/document/test_document_file_size.py @@ -0,0 +1,82 @@ +import typing +import unittest +from decimal import Decimal +from pathlib import Path + +from borb.pdf.canvas.layout.page_layout.multi_column_layout import SingleColumnLayout +from borb.pdf.canvas.layout.text.paragraph import Paragraph +from borb.pdf.document.document import Document +from borb.pdf.page.page import Page +from borb.pdf.pdf import PDF +from tests.test_util import check_pdf_using_validator + +unittest.TestLoader.sortTestMethodsUsing = None + + +class TestDocumentFileSize(unittest.TestCase): + def __init__(self, methodName="runTest"): + super().__init__(methodName) + # find output dir + p: Path = Path(__file__).parent + while "output" not in [x.stem for x in p.iterdir() if x.is_dir()]: + p = p.parent + p = p / "output" + self.output_dir = Path(p, Path(__file__).stem.replace(".py", "")) + if not self.output_dir.exists(): + self.output_dir.mkdir() + + def test_write_hello_world(self): + + # create an empty Document + pdf = Document() + + # add an empty Page + page = Page() + pdf.append_page(page) + + # use a PageLayout (SingleColumnLayout in this case) + layout = SingleColumnLayout(page) + + # add a Paragraph object + layout.add(Paragraph("Hello World!")) + + # determine output location + out_file = self.output_dir / "output.pdf" + + # attempt to store PDF + with open(out_file, "wb") as out_file_handle: + PDF.dumps(out_file_handle, pdf) + check_pdf_using_validator(out_file) + + def test_check_file_size_001(self): + + # determine input location + out_file = self.output_dir / "output.pdf" + + # read + with open(out_file, "rb") as pdf_file_handle: + document = PDF.loads(pdf_file_handle) + + # check file_size + s: typing.Optional[Decimal] = document.get_document_info().get_file_size() + assert s is not None + assert 1000 <= s <= 1100 + + def test_check_file_size_002(self): + + # create an empty Document + pdf = Document() + + # add an empty Page + page = Page() + pdf.append_page(page) + + # use a PageLayout (SingleColumnLayout in this case) + layout = SingleColumnLayout(page) + + # add a Paragraph object + layout.add(Paragraph("Hello World!")) + + # check file_size + s: typing.Optional[Decimal] = pdf.get_document_info().get_file_size() + assert s is None