{"id":22246344,"url":"https://github.com/thgossler/replacepdfhyperlinks","last_synced_at":"2025-03-25T11:24:17.541Z","repository":{"id":180461206,"uuid":"580638377","full_name":"thgossler/ReplacePdfHyperlinks","owner":"thgossler","description":"A CLI tool for Windows and Linux to search and replace hyperlinks in PDF documents with regular expressions.","archived":false,"fork":false,"pushed_at":"2024-04-09T10:19:03.000Z","size":125,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-30T10:29:37.073Z","etag":null,"topics":["cli","hyperlinks","pdf","regular-expression","replace"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thgossler.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-21T03:59:15.000Z","updated_at":"2022-12-21T15:34:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"937741b6-64fa-4e10-8c24-4446859c7453","html_url":"https://github.com/thgossler/ReplacePdfHyperlinks","commit_stats":null,"previous_names":["thgossler/replacepdfhyperlinks"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thgossler%2FReplacePdfHyperlinks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thgossler%2FReplacePdfHyperlinks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thgossler%2FReplacePdfHyperlinks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thgossler%2FReplacePdfHyperlinks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thgossler","download_url":"https://codeload.github.com/thgossler/ReplacePdfHyperlinks/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245450964,"owners_count":20617436,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","hyperlinks","pdf","regular-expression","replace"],"created_at":"2024-12-03T05:27:17.607Z","updated_at":"2025-03-25T11:24:17.503Z","avatar_url":"https://github.com/thgossler.png","language":"C#","funding_links":["https://github.com/sponsors/thgossler"],"categories":[],"sub_categories":[],"readme":"﻿\u003cdiv align=\"center\"\u003e\n\n[![Contributors][contributors-shield]][contributors-url]\n[![Forks][forks-shield]][forks-url]\n[![Stargazers][stars-shield]][stars-url]\n[![Issues][issues-shield]][issues-url]\n[![AGPL License][license-shield]][license-url]\n\n\u003c/div\u003e\n\n\u003c!-- PROJECT LOGO --\u003e\n\u003cbr /\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ch1 align=\"center\"\u003eReplacePdfHyperlinks\u003c/h1\u003e\n\n  \u003cp align=\"center\"\u003e\n    Simple .NET 7 command line (CLI) tool to search and replace URLs in a PDF document with regular expressions.\n    \u003cbr /\u003e\n    \u003ca href=\"https://github.com/thgossler/ReplacePdfHyperlinks/issues\"\u003eReport Bug\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/thgossler/ReplacePdfHyperlinks/issues\"\u003eRequest Feature\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/thgossler/ReplacePdfHyperlinks#contributing\"\u003eContribute\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/sponsors/thgossler\"\u003eSponsor project\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n\n## About The Project\n\nThis is a simple .NET command line (CLI) tool to search and replace hyperlinks in a PDF document with regular expressions. It is for example used to change all hyperlinks from localhost to the actual domain name in an auto-generated PDF from a Docusaurus static web site. It was developed because there seemed to be no other free tool that can do this. The tool uses the iText7 library for PDF processing which is licensed under AGPL for non-commercial use. Hence, this tool is also published under the AGPL license.\n\n[![ReplacePdfHyperlinks screen shot][product-screenshot]]([https://github.com/thgossler/ReplacePdfHyperlinks/])\n\n\u003e _**Note:** This tool was written by me in my spare time and will be developed only sporadically._\n\n\n### Built With\n\n* [.NET 8 (C#)](https://dotnet.microsoft.com/en-us/)\n* [System.CommandLine](https://github.com/dotnet/command-line-api)\n* [iText7 for .NET](https://github.com/itext/itext7-dotnet)\n\n\n## Getting Started\n\n### Prerequisites\n\n* Latest .NET SDK\n  ```sh\n  winget install -e --id Microsoft.dotnet\n  ```\n\n\n### Installation as Tool for Use\n\n1. Download the self-contained single-file executables from the [releases](https://github.com/thgossler/ReplacePdfHyperlinks/releases) section\n\n2. Copy it to a location where you can easily call it and rename it as desired (e.g. to `ReplacePdfHyperlinks`)\n\n3. Open a command prompt or PowerShell and type `ReplacePdfHyperlinks --help`\n\n\n### Installation from Source for Development\n\n1. Clone the repo\n   ```sh\n   git clone https://github.com/thgossler/ReplacePdfHyperlinks.git\n   ```\n2. Build\n   ```sh\n   dotnet build\n   ```\n3. Run without arguments to get help\n   ```sh\n   dotnet run\n   ```\n\nAlternatively, you can open the folder in [VS Code](https://code.visualstudio.com/) or the solution (.sln file) in the [Microsoft Visual Studio IDE](https://visualstudio.microsoft.com/vs/) and press F5.\n\n\n## Contributing\n\nContributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\nIf you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag \"enhancement\".\nDon't forget to give the project a star :wink: Thanks!\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n\n## License\n\nDistributed under the AGPL License. See [`LICENSE`](https://github.com/thgossler/ReplacePdfHyperlinks/blob/main/LICENSE) for more information.\n\n\n\n\u003c!-- MARKDOWN LINKS \u0026 IMAGES (https://www.markdownguide.org/basic-syntax/#reference-style-links) --\u003e\n[contributors-shield]: https://img.shields.io/github/contributors/thgossler/ReplacePdfHyperlinks.svg\n[contributors-url]: https://github.com/thgossler/ReplacePdfHyperlinks/graphs/contributors\n[forks-shield]: https://img.shields.io/github/forks/thgossler/ReplacePdfHyperlinks.svg\n[forks-url]: https://github.com/thgossler/ReplacePdfHyperlinks/network/members\n[stars-shield]: https://img.shields.io/github/stars/thgossler/ReplacePdfHyperlinks.svg\n[stars-url]: https://github.com/thgossler/ReplacePdfHyperlinks/stargazers\n[issues-shield]: https://img.shields.io/github/issues/thgossler/ReplacePdfHyperlinks.svg\n[issues-url]: https://github.com/thgossler/ReplacePdfHyperlinks/issues\n[license-shield]: https://img.shields.io/github/license/thgossler/ReplacePdfHyperlinks.svg\n[license-url]: https://github.com/thgossler/ReplacePdfHyperlinks/blob/main/LICENSE.txt\n[product-screenshot]: images/screenshot.png\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthgossler%2Freplacepdfhyperlinks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthgossler%2Freplacepdfhyperlinks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthgossler%2Freplacepdfhyperlinks/lists"}