PDF补丁丁——PDF工具箱,可以编辑书签、剪裁旋转页面、解除限制、提取或合并文档,探查文档结构,提取图片、转成图片等等
This report summarizes scanner evidence for wmjordan/PDFPatcher, a C# project with 12,759 GitHub stars. SynthScan examined 106,290 lines of code across 402 source files, recording 92 pattern matches distributed across 4 syntactic categories. The legacy adjusted pattern signal is 1.0 (Low 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.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 91 finding(s).
Are imports declared and package/API names verified? 1 finding(s).
Are wrappers, guards, and repeated structures necessary? 0 finding(s).
Which changes need focused human review? 92 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 92 distinct pattern matches across 4 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 |
|---|---|---|---|---|
| LOW | App/MainForm.Designer.cs | 581 | // _ToolTip | COMMENT |
| LOW | App/Configuration.Designer.cs | 1 | //------------------------------------------------------------------------------ | COMMENT |
| LOW | App/Options/AutoBookmarkOptions.cs | 101 | internal string FirstPageTitle { get; set; } | COMMENT |
| LOW | App/Processor/PdfHelper.cs | 21 | COMMENT | |
| LOW | App/Processor/OutlineManager.MuPDF.cs | 81 | // } | COMMENT |
| LOW | App/Processor/OutlineManager.MuPDF.cs | 101 | // count += n; | COMMENT |
| LOW | App/Processor/OutlineManager.MuPDF.cs | 121 | // outline.Set(PdfNames.F, bits); | COMMENT |
| LOW | App/Processor/OutlineManager.MuPDF.cs | 141 | // target.AddToBody(top, topRef); | COMMENT |
| LOW | App/Processor/OutlineManager.MuPDF.cs | 161 | COMMENT | |
| LOW | App/Processor/OcrProcessor.cs | 241 | return; | COMMENT |
| LOW | App/Processor/OcrProcessor.cs | 261 | // TextLine ml = null; // 最小距离的 TextLine | COMMENT |
| LOW | App/Processor/OcrProcessor.cs | 281 | // || ((cd.Location == DistanceInfo.Placement.Up || cd.Location == DistanceInfo.Placem | COMMENT |
| LOW | App/Processor/OcrProcessor.cs | 301 | // ) { | COMMENT |
| LOW | App/Processor/OcrProcessor.cs | 321 | // var rr = new List<TextInfo> (); | COMMENT |
| LOW | App/Processor/OcrProcessor.cs | 341 | // if (size >= _fontSizeThreshold) { | COMMENT |
| LOW | App/Processor/OcrProcessor.cs | 361 | // letterCount = 0; | COMMENT |
| LOW | App/Processor/OcrProcessor.cs | 381 | // right = r.Right; | COMMENT |
| LOW | App/Processor/Worker.cs | 441 | //if (pdfSettings.PageSettings.Count > 0) { | COMMENT |
| LOW | App/Processor/DocInfoImporter.cs | 801 | //prop.ArrayList.Clear (); | COMMENT |
| LOW | App/Processor/PdfDocumentCreator.cs | 461 | // continue; | COMMENT |
| LOW | App/Processor/PdfContentStreamParser.cs | 81 | //PdfDictionary xobjects = this.resources.GetAsDict (PdfName.XOBJECT); | COMMENT |
| LOW | App/Processor/ContentProcessors/IPageProcessor.cs | 21 | /// <returns>更改文档内容后返回 true。</returns> | COMMENT |
| LOW | App/Processor/Imaging/ImageDeskew.cs | 161 | //// Copyright © Andrew Kirillov, 2005-2010 | COMMENT |
| LOW | App/Processor/Imaging/ImageDeskew.cs | 181 | // /// <a href="http://en.wikipedia.org/wiki/Polar_coordinate_system">polar coordinates</a>. | COMMENT |
| LOW | App/Processor/Imaging/ImageDeskew.cs | 201 | // /// | COMMENT |
| LOW | App/Processor/Imaging/ImageDeskew.cs | 221 | // /// int h2 = image.Height / 2; | COMMENT |
| LOW | App/Processor/Imaging/ImageDeskew.cs | 241 | // /// y0 = h2; | COMMENT |
| LOW | App/Processor/Imaging/ImageDeskew.cs | 261 | // /// <list type="bullet"> | COMMENT |
| LOW | App/Processor/Imaging/ImageDeskew.cs | 281 | // public readonly double Theta; | COMMENT |
| LOW | App/Processor/Imaging/ImageDeskew.cs | 301 | // /// | COMMENT |
| LOW | App/Processor/Imaging/ImageDeskew.cs | 321 | // /// <summary> | COMMENT |
| LOW | App/Processor/Imaging/ImageDeskew.cs | 341 | // /// <param name="value">Object to compare with.</param> | COMMENT |
| LOW | App/Processor/Imaging/ImageDeskew.cs | 361 | // /// | COMMENT |
| LOW | App/Processor/Imaging/ImageDeskew.cs | 381 | // /// // create rotation filter | COMMENT |
| LOW | App/Processor/Imaging/ImageDeskew.cs | 401 | // private double thetaStep; | COMMENT |
| LOW | App/Processor/Imaging/ImageDeskew.cs | 421 | // /// line slope precisely.</para> | COMMENT |
| LOW | App/Processor/Imaging/ImageDeskew.cs | 441 | // /// [-25, 25] degrees detection range.</para> | COMMENT |
| LOW | App/Processor/Imaging/ImageDeskew.cs | 461 | // /// Use <see cref="MaxSkewToDetect"/> property instead.</note></para></remarks> | COMMENT |
| LOW | App/Processor/Imaging/ImageDeskew.cs | 481 | COMMENT | |
| LOW | App/Processor/Imaging/ImageDeskew.cs | 501 | // MaxSkewToDetect = 30; | COMMENT |
| LOW | App/Processor/Imaging/ImageDeskew.cs | 521 | // /// </summary> | COMMENT |
| LOW | App/Processor/Imaging/ImageDeskew.cs | 541 | // int halfWidth = width / 2; | COMMENT |
| LOW | App/Processor/Imaging/ImageDeskew.cs | 561 | // //using (Bitmap bmp = image.ToBitmap ()) { | COMMENT |
| LOW | App/Processor/Imaging/ImageDeskew.cs | 581 | COMMENT | |
| LOW | App/Processor/Imaging/ImageDeskew.cs | 601 | // // and pixel below is more white | COMMENT |
| LOW | App/Processor/Imaging/ImageDeskew.cs | 621 | // maxMapIntensity = houghMap[i, j]; | COMMENT |
| LOW | App/Processor/Imaging/ImageDeskew.cs | 641 | COMMENT | |
| LOW | App/Processor/Imaging/ImageDeskew.cs | 661 | COMMENT | |
| LOW | App/Processor/Imaging/ImageDeskew.cs | 681 | COMMENT | |
| LOW | App/Processor/Imaging/ImageDeskew.cs | 701 | // // compare the neighboor with current value | COMMENT |
| LOW | App/Processor/Imaging/ImageDeskew.cs | 721 | // private void InitHoughMap () { | COMMENT |
| LOW | App/Processor/Imaging/ImageDeskew.cs | 761 | // double skewangle = sk.GetSkewAngle (); | COMMENT |
| LOW | App/Processor/Imaging/BitmapHelper.cs | 81 | /// <returns>如为索引调色板图像,则返回 true,否则返回 false。</returns> | COMMENT |
| LOW | App/Processor/Imaging/JpgHelper.cs | 81 | /// </summary> | COMMENT |
| LOW | App/Processor/Imaging/JpgHelper.cs | 361 | COMMENT | |
| LOW | App/Processor/Imaging/TiffHelper.cs | 61 | COMMENT | |
| LOW | App/Common/CommandRegistry.cs | 21 | { | COMMENT |
| LOW | App/Common/ImageBox/ImageBoxEx.cs | 421 | /// <summary> | COMMENT |
| LOW | App/Properties/Resources.Designer.cs | 1 | //------------------------------------------------------------------------------ | COMMENT |
| LOW | App/Properties/Resources.Designer.cs | 61 | } | COMMENT |
| 27 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | App/Configuration.Designer.cs | 3 | // This code was generated by a tool. | COMMENT |
| HIGH | App/Properties/Resources.Designer.cs | 3 | // This code was generated by a tool. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | App/Functions/DocumentInspector/ImageViewerForm.cs | 28 | var isCmyk = iTextSharp.text.pdf.PdfName.DEVICECMYK.Equals(image.ColorSpace); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | App/Lib/MuPDFLib.xml | 2847 | Don't forget to call fz_close_device before dropping the device, | CODE |
| LOW | App/Lib/MuPDFLib.xml | 6952 | Free an output stream. Don't forget to close it first! | CODE |