{"id":14988244,"url":"https://github.com/apache/pdfbox-jbig2","last_synced_at":"2025-06-16T08:32:06.688Z","repository":{"id":43771833,"uuid":"107089740","full_name":"apache/pdfbox-jbig2","owner":"apache","description":"Mirror of Apache PDFBox","archived":false,"fork":false,"pushed_at":"2025-06-12T09:42:27.000Z","size":2209,"stargazers_count":28,"open_issues_count":0,"forks_count":14,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-06-16T00:57:30.163Z","etag":null,"topics":["content","java","library","pdfbox"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apache.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,"zenodo":null}},"created_at":"2017-10-16T07:00:09.000Z","updated_at":"2025-06-12T09:42:31.000Z","dependencies_parsed_at":"2023-12-22T12:52:13.301Z","dependency_job_id":"f500aeb8-c316-4542-93ca-21dcca1cf091","html_url":"https://github.com/apache/pdfbox-jbig2","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/apache/pdfbox-jbig2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fpdfbox-jbig2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fpdfbox-jbig2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fpdfbox-jbig2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fpdfbox-jbig2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apache","download_url":"https://codeload.github.com/apache/pdfbox-jbig2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fpdfbox-jbig2/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260126380,"owners_count":22962636,"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":["content","java","library","pdfbox"],"created_at":"2024-09-24T14:16:21.202Z","updated_at":"2025-06-16T08:32:06.655Z","avatar_url":"https://github.com/apache.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!---\n  Licensed to the Apache Software Foundation (ASF) under one or more\n  contributor license agreements.  See the NOTICE file distributed with\n  this work for additional information regarding copyright ownership.\n  The ASF licenses this file to You under the Apache License, Version 2.0\n  (the \"License\"); you may not use this file except in compliance with\n  the License.  You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n  Unless required by applicable law or agreed to in writing, software\n  distributed under the License is distributed on an \"AS IS\" BASIS,\n  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n  See the License for the specific language governing permissions and\n  limitations under the License.\n---\u003e\n\n# Welcome to the Java ImageIO plugin for the JBIG2 image format!\nThe Java ImageIO plugin for JBIG2 enables access to images encoded using the JBIG2 image compression standard.\nThis component is part of the [Apache PDFBox® project](https://pdfbox.apache.org/) \n\n## Status\n[![Build Status](https://travis-ci.com/apache/pdfbox-jbig2.svg?branch=master)](https://travis-ci.com/apache/pdfbox-jbig2)\n\n## Features\nThe key features of the plugin are:\n\n- Read-only (decode) support for images encoded using the JBIG2 standard, aka *ITU T.88* and *ISO/IEC 14492*.\n- Full support for all features defined in the standard, including arithmetic coding, Huffman coding and MQ coding.\n- Pure Java code. No funny native or JNI stuff required.\n- Secure.\n- Production quality. Robust and well-tested.\n- Reasonable performance.\n- Standard ImageIO API.\n- Support for shared data segments as used by PDF via custom DecodeParams.\n\n## License\nThis ImageIO plugin is licensed under the [Apache Software License 2.0](https://www.apache.org/licenses/LICENSE-2.0). Alternatively see [here](LICENSE.txt).\n\n## Release Notes\nPlease take a look at the [release notes](release-notes.md).\n\n## Support\nSupport is available through the [Apache PDFBox community](https://pdfbox.apache.org/support.html)\n\n## Usage\n### Introduction\nPlease choose the appropriate section below, depending on whether you need to embed the ImageIO decoder inside your application (which would, for example, be the case if you want to support shared data segments) or you just want to add JBIG2 support to an existing ImageIO-enabled application.\n\n### Use within existing Image I/O-based applications\nUsing the JBIG2 plugin with an existing application that already supports Java ImageIO is - at least in theory - very simple: just plunk the plugin jar down into your classpath and you're ready to go. What, exactly, you have to do to achieve this, depends on the application in question. Unfortunately, there is no general way to add the plugin to an application. Some general recommendations:\n\n- If you implemented the application yourself: hey, don't look at us. You'll know best what to do. If you build your application using Maven, just pull in the plugin as a dependency. See below.\n- Consult the application's manual (well, duh!).\n- Maybe the application installation has a folder called 'plugins' or something like that. Try putting the jar into it. With some luck, the application will pick it up.\n- Is the application started using a Unix shell script or Windows batch file? Try to identify where the classpath is assembled and add the plugin jar to it.\n- As a last resort, you could try to add the plugin jar to the [lib/ext directory of your JRE installation](http://download.oracle.com/javase/1.4.2/docs/guide/extensions/spec.html). But please be advised that this is not considered to be good style.\n\n### Use dependency management\nThe JBIG2 ImageIO-Plugin is available from [Maven Central](https://search.maven.org/). \n\n#### Maven\nTo use the plugin within a Maven POM-based project, simply include a dependency to the following artifact in the appropriate ```pom.xml```:\n\n    \u003cdependency\u003e\n      \u003cgroupId\u003eorg.apache.pdfbox\u003c/groupId\u003e\n      \u003cartifactId\u003ejbig2-imageio\u003c/artifactId\u003e\n      \u003cversion\u003e3.0.4\u003c/version\u003e\n    \u003c/dependency\u003e\n\n### How to deal with embedded JBIG2 data\nSeveral formats allow to embed JBIG2-compressed data in its own structure. PDF, for example, supports JBIG2-compressed data and adds the ability to embed shared data segments. Therefore the `JBIG2ImageReader` can handle `JBIG2Globals`  which are stored separately and can be passed into the reader if neccessary via `setGlobals()`-method.\n\nThe reader recognizes if the input data is headless and so embedded. This is assumed if the file header is missing.\n\nYou can also specify that the coming input data is embedded by using the special constructor in `JBIG2ImageReader`.\n\n### What if the plugin is on classpath but not seen?\nImageIO is able to scan the classpath for readers and writers. Call `ImageIO.scanForPlugins()` if the reader is not seen. (Note: Thanks to George Sexton for this tip in context of using ImageIO within Apache Tomcat)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapache%2Fpdfbox-jbig2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapache%2Fpdfbox-jbig2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapache%2Fpdfbox-jbig2/lists"}