Small python-gtk application, which helps the user to merge or split PDF documents and rotate, crop and rearrange their pages using an interactive and intuitive graphical interface.
This report summarizes scanner evidence for pdfarranger/pdfarranger, a Python project with 5,971 GitHub stars. SynthScan examined 12,655 lines of code across 35 source files, recording 139 pattern matches distributed across 11 syntactic categories. The legacy adjusted pattern signal is 17.6 (Elevated pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 104 finding(s).
Are imports declared and package/API names verified? 5 finding(s).
Are wrappers, guards, and repeated structures necessary? 78 finding(s).
Which changes need focused human review? 139 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 139 distinct pattern matches across 11 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tests/test_exporter_outlines.py | 230 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_exporter_outlines.py | 232 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_exporter_outlines.py | 321 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_exporter_outlines.py | 323 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_exporter_outlines.py | 391 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_exporter_outlines.py | 393 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_exporter_outlines.py | 486 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_exporter_outlines.py | 488 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_exporter_outlines.py | 816 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_exporter_outlines.py | 818 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_exporter_outlines.py | 859 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_exporter_outlines.py | 861 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_exporter_outlines.py | 24 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_exporter_outlines.py | 26 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_exporter_outlines.py | 119 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_exporter_outlines.py | 121 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_exporter_outlines.py | 511 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_exporter_outlines.py | 513 | # --------------------------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/test_exporter_outlines.py | 236 | def test_nested_children_preserved(self): | CODE |
| LOW⚡ | tests/test_exporter_outlines.py | 327 | def test_named_dest_bookmark_remapped(self): | CODE |
| LOW⚡ | tests/test_exporter_outlines.py | 397 | def test_bookmarks_from_both_files_appear(self): | CODE |
| LOW⚡ | tests/test_exporter_outlines.py | 492 | def test_bookmark_targets_first_copy_of_duplicated_page(self): | CODE |
| LOW⚡ | tests/test_exporter_outlines.py | 566 | def test_write_named_dests_no_op_on_empty_list(self): | CODE |
| LOW⚡ | tests/test_exporter_outlines.py | 571 | def test_write_named_dests_creates_name_tree_when_absent(self): | CODE |
| LOW⚡ | tests/test_exporter_outlines.py | 580 | def test_write_named_dests_merges_into_existing_name_tree(self): | CODE |
| LOW⚡ | tests/test_exporter_outlines.py | 824 | def test_styles_and_closed_state_preserved(self): | CODE |
| LOW⚡ | tests/test_exporter_outlines.py | 864 | def test_null_coordinates_in_xyz_destination(): | CODE |
| LOW | tests/test_exporter_outlines.py | 147 | def test_no_outline_produces_no_outline(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 163 | def test_bookmark_to_excluded_page_is_dropped(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 179 | def test_bookmark_targets_remapped_to_new_positions(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 194 | def test_all_bookmarks_excluded_leaves_empty_outline(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 255 | def test_parent_dropped_but_valid_children_promoted(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 282 | def test_parent_and_all_children_excluded_produces_nothing(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 295 | def test_parent_without_destination_is_kept_if_child_survives(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 345 | def test_named_dest_to_excluded_page_is_dropped(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 359 | def test_named_dest_target_follows_reordering(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 374 | def test_unknown_named_dest_is_dropped(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 418 | def test_bookmarks_point_to_correct_output_pages_after_merge(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 440 | def test_file_with_no_outline_is_skipped_gracefully(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 457 | def test_named_dest_collision_across_files_both_survive(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 529 | def test_none_pdf_in_input_list_is_skipped(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 543 | def test_warning_emitted_on_corrupt_outline(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 616 | def test_invalid_destinations_dropped(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 646 | def test_missing_objgen_dropped(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 690 | def test_pdf_error_warning_during_copy(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 710 | def test_various_fit_types_scaling(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 738 | def test_invalid_destination_structures(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 761 | def test_named_dest_with_d_attribute(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 785 | def test_destination_coordinate_scaling(self): | CODE |
| LOW | tests/test_exporter_outlines.py | 934 | def test_rebuild_outlines_preserves_nested_hierarchy(sample_input_pdf): | CODE |
| LOW | tests/test_exporter_outlines.py | 977 | def test_vacon_low_level_structure_regression(tmp_path): | CODE |
| LOW | pdfarranger/exporter.py | 205 | def _apply_geom_transform_job(pdf_output:pikepdf.Pdf, new_page:pikepdf.Page, page:Page) -> None: | CODE |
| LOW | pdfarranger/exporter.py | 220 | def _remove_unreferenced_resources(pdfdoc): | CODE |
| LOW | pdfarranger/exporter.py | 568 | def get_in_memory_poppler_doc(pages, pdfqueue): | CODE |
| LOW | pdfarranger/pageutils.py | 228 | def select_paper_and_orientation(self): | CODE |
| LOW | pdfarranger/pageutils.py | 314 | def set_spinb_changed_callback(self, callback): | CODE |
| LOW | pdfarranger/pageutils.py | 581 | def set_spinb_changed_callback(self, callback): | CODE |
| LOW | pdfarranger/pdfarranger.py | 974 | def set_text_renderer_cell_height(iconview): | CODE |
| LOW | pdfarranger/pdfarranger.py | 1163 | def hide_horizontal_scrollbar(self): | CODE |
| LOW | pdfarranger/pdfarranger.py | 1630 | def choose_export_selection_pdf_name(self, _action, mode, _unknown): | CODE |
| LOW | pdfarranger/pdfarranger.py | 1862 | def convert_page_data_to_layerpage_lists(self, data, laypos): | CODE |
| LOW | pdfarranger/pdfarranger.py | 2149 | def on_action_explode_into_images(self, _action, _param, _unknown): | CODE |
| LOW | pdfarranger/pdfarranger.py | 2617 | def window_focus_in_out_event(self, _widget=None, _event=None): | CODE |
| LOW | pdfarranger/pdfarranger.py | 3083 | def apply_hide_margins_on_pages(self, pages): | CODE |
| LOW | pdfarranger/pdfarranger.py | 3106 | def apply_hide_margins_on_layerpages(self, layerpages, hide): | CODE |
| LOW | pdfarranger/pdfarranger.py | 3374 | def set_password_from_input_files(self): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | pdfarranger/metadata.py | 90 | except KeyError: | CODE |
| HIGH | pdfarranger/exporter.py | 42 | except locale.Error: | CODE |
| HIGH | pdfarranger/pdfarranger.py | 64 | except locale.Error: | CODE |
| HIGH | pdfarranger/pdfarranger.py | 24 | except AttributeError: | CODE |
| HIGH | pdfarranger/pdfarranger.py | 393 | except AttributeError: | CODE |
| HIGH | pdfarranger/pdfarranger.py | 380 | except FileNotFoundError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | tests/test_exporter_outlines.py | 866 | XYZ destinations with null coordinates (e.g. [page /XYZ null null null]) | STRING |
| HIGH | pdfarranger/pdfarranger.py | 1008 | self.status_bar2.push(ctxt_id, _('Rendering…')) | CODE |
| HIGH | pdfarranger/pdfarranger.py | 1618 | self.status_bar2.push(ctxt_id, message) | CODE |
| HIGH | pdfarranger/pdfarranger.py | 3321 | self.status_bar.push(ctxt_id, msg) | CODE |
| HIGH | pdfarranger/exporter_outlines.py | 125 | items.append(val) # None (PDF null) is fine here | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_exporter.py | 53 | CODE | |
| LOW | pdfarranger/config.py | 115 | CODE | |
| LOW | pdfarranger/metadata.py | 95 | CODE | |
| LOW | pdfarranger/splitter.py | 106 | CODE | |
| LOW | pdfarranger/core.py | 769 | CODE | |
| LOW | pdfarranger/core.py | 836 | CODE | |
| LOW | pdfarranger/pageutils.py | 813 | CODE | |
| LOW | pdfarranger/pdfarranger.py | 369 | CODE | |
| LOW | pdfarranger/pdfarranger.py | 570 | CODE | |
| LOW | pdfarranger/pdfarranger.py | 710 | CODE | |
| LOW | pdfarranger/pdfarranger.py | 921 | CODE | |
| LOW | pdfarranger/pdfarranger.py | 1262 | CODE | |
| LOW | pdfarranger/pdfarranger.py | 1299 | CODE | |
| LOW | pdfarranger/pdfarranger.py | 1372 | CODE | |
| LOW | pdfarranger/pdfarranger.py | 1488 | CODE | |
| LOW | pdfarranger/pdfarranger.py | 1807 | CODE | |
| LOW | pdfarranger/pdfarranger.py | 1962 | CODE | |
| LOW | pdfarranger/pdfarranger.py | 2090 | CODE | |
| LOW | pdfarranger/pdfarranger.py | 2173 | CODE | |
| LOW | pdfarranger/pdfarranger.py | 2259 | CODE | |
| LOW | pdfarranger/pdfarranger.py | 2335 | CODE | |
| LOW | pdfarranger/pdfarranger.py | 2485 | CODE | |
| LOW | pdfarranger/pdfarranger.py | 2657 | CODE | |
| LOW | pdfarranger/pdfarranger.py | 2967 | CODE | |
| LOW | pdfarranger/iconview.py | 173 | CODE | |
| LOW | pdfarranger/iconview.py | 226 | CODE | |
| LOW | pdfarranger/iconview.py | 328 | CODE | |
| LOW | pdfarranger/iconview.py | 367 | CODE | |
| LOW | pdfarranger/exporter_outlines.py | 266 | CODE | |
| LOW | pdfarranger/search.py | 77 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/test_exporter_outlines.py | 299 | # Create a parent with no destination or action (this hits line 148) | COMMENT |
| MEDIUM | tests/test_exporter_outlines.py | 939 | # Create an output PDF context | COMMENT |
| MEDIUM | pdfarranger/core.py | 403 | # Create a new cropped page | COMMENT |
| MEDIUM | pdfarranger/pageutils.py | 382 | # Create the temporary document without crops. They will be applied later | COMMENT |
| MEDIUM | pdfarranger/pdfarranger.py | 269 | # Create the temporary directory | COMMENT |
| MEDIUM | pdfarranger/pdfarranger.py | 785 | # Create a scrolled window to hold the thumbnails-container | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | po/updatepo.sh | 1 | #!/bin/bash | COMMENT |
| LOW | po/genpot.sh | 1 | #!/bin/sh | COMMENT |
| LOW | pdfarranger/image_exporter.py | 1 | # Copyright (C) 2025 pdfarranger contributors | COMMENT |
| LOW | pdfarranger/config.py | 1 | # Copyright (C) 2020 pdfarranger contributors | COMMENT |
| LOW | pdfarranger/metadata.py | 1 | # Copyright (C) 2020 Jerome Robert | COMMENT |
| LOW | pdfarranger/exporter.py | 1 | # Copyright (C) 2008-2017 Konstantinos Poulios, 2018-2019 Jerome Robert | COMMENT |
| LOW | pdfarranger/splitter.py | 1 | # Copyright (C) 2020 pdfarranger contributors | COMMENT |
| LOW | pdfarranger/core.py | 1 | # Copyright (C) 2020 pdfarranger contributors | COMMENT |
| LOW | pdfarranger/pageutils.py | 1 | # Copyright (C) 2020 pdfarranger contributors | COMMENT |
| LOW | pdfarranger/pdfarranger.py | 1 | # Copyright (C) 2008-2017 Konstantinos Poulios, 2018-2019 Jerome Robert | COMMENT |
| LOW | pdfarranger/pdfarranger.py | 581 | # | 2 | .-------. | 2 | | COMMENT |
| LOW | pdfarranger/iconview.py | 1 | # Copyright (C) 2008-2017 Konstantinos Poulios, 2018-2019 Jerome Robert | COMMENT |
| LOW | pdfarranger/exporter_outlines.py | 1 | # pdfarranger is free software; you can redistribute it and/or modify | COMMENT |
| LOW | pdfarranger/undo.py | 1 | # Copyright (C) 2018-2019 Jerome Robert | COMMENT |
| LOW | pdfarranger/search.py | 1 | # Copyright (C) 2025 pdfarranger contributors | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test.py | 72 | except Exception: | CODE |
| LOW | tests/test.py | 501 | except Exception: | CODE |
| MEDIUM | tests/test.py | 67 | def check_img2pdf(version): | CODE |
| LOW | pdfarranger/exporter.py | 250 | except Exception as e: | CODE |
| LOW | pdfarranger/pdfarranger.py | 931 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_exporter_outlines.py | 839 | # Set color to red [1.0, 0.0, 0.0] and font to bold-italic (3) | COMMENT |
| LOW | pdfarranger/pdfarranger.py | 3007 | # Check if the element is in the range of all pages | COMMENT |
| LOW | pdfarranger/pdfarranger.py | 1403 | chooser.set_current_name(f) # Set name to new file | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pdfarranger/core.py | 17 | __all__ = [ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | pdfarranger/iconview.py | 252 | """Scroll in order to keep cursor visible in window.""" | STRING |