{"id":20347795,"url":"https://github.com/itext/pdfdeserializer","last_synced_at":"2025-04-12T01:03:16.839Z","repository":{"id":73126068,"uuid":"593610410","full_name":"itext/pdfdeserializer","owner":"itext","description":"A tool that deserializes String representations of PDF Objects into Java/iText objects","archived":false,"fork":false,"pushed_at":"2023-02-16T09:49:34.000Z","size":83,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-12T01:03:04.544Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/itext.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2023-01-26T12:48:26.000Z","updated_at":"2024-07-06T05:04:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"22a14eb8-c882-4728-bd97-9edff28af87d","html_url":"https://github.com/itext/pdfdeserializer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itext%2Fpdfdeserializer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itext%2Fpdfdeserializer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itext%2Fpdfdeserializer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itext%2Fpdfdeserializer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itext","download_url":"https://codeload.github.com/itext/pdfdeserializer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248501866,"owners_count":21114683,"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":[],"created_at":"2024-11-14T22:18:08.289Z","updated_at":"2025-04-12T01:03:16.832Z","avatar_url":"https://github.com/itext.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pdfDeserializer\n\n## Summary\n\npdfDeserializer is a tool that deserializes your PDF syntax into iText objects. It takes a String representation of any of the standard PDF objects:\n\n| Token | Object |\n|:-:|:-:|\n| \u003c\u003c ... \u003e\u003e | Dictionary |\n| [ ... ] | Array |\n| /Name | Name |\n| ( abc ) | String (Literal) |\n| \u003c 616263 \u003e | String (Hexadecimal) |\n| 1.0 | Number |\n| 1 0 R | Indirect Reference |\n\nAnd it will turn that into a usable com.itextpdf.kernel.pdf.PdfObject instance (of the appropriate subclass of course).\n\n\n\nFor example:\n```\n\u003c\u003c/Type/Example/Reason (Because)\u003e\u003e\n```\n\nWould become:\n| Dictionary: | |\n| :-- | :-- |\n| Name{ Type } | Name{ Example } |\n| Name{ Reason } | String{ Because }|\n\n## Building\n\nThis project is built using maven. After cloning, run the following command:\n\n```bash\nmvn package\n```\n\nAfter a successful build, your target folder should contain a `pdfDeserializer-x.y.z.jar` which you can then use in your projects!\n\nYou can also use `mvn install` so that the artifact is automatically installed into your local maven repository!\n\n\n## Usage\n\nAdd the pdfDeserializer dependency to your project and you can start using the tool as a high level tool:\n\n```java\nString s = \"\u003c\u003c/Hello /World\u003e\u003e\";\nDeserializer deserializer = new Deserializer();\nPdfObject deserializedDictionary = deserializer.deserialize(ByteUtils.getIsoBytes(s), new DeserializationContext());\n```\n\n\n## Disclaimer\n\nThis is an experimental tool, not an iText product. It is provided to the\ncommunity under the terms of the AGPL (see [LICENSE](LICENSE.md)) on an as-is\nbasis.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitext%2Fpdfdeserializer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitext%2Fpdfdeserializer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitext%2Fpdfdeserializer/lists"}