{"id":31959342,"url":"https://github.com/vdaburon/convert-html-to-pdf","last_synced_at":"2025-10-14T15:28:06.567Z","repository":{"id":316599385,"uuid":"1063846408","full_name":"vdaburon/convert-html-to-pdf","owner":"vdaburon","description":"Convert a simple HTML page to PDF document","archived":false,"fork":false,"pushed_at":"2025-09-25T13:50:25.000Z","size":66,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-25T15:38:20.561Z","etag":null,"topics":["convertor","html","html-converter","pdf","tool"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vdaburon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-25T07:40:41.000Z","updated_at":"2025-09-25T13:50:28.000Z","dependencies_parsed_at":"2025-09-25T15:38:32.684Z","dependency_job_id":null,"html_url":"https://github.com/vdaburon/convert-html-to-pdf","commit_stats":null,"previous_names":["vdaburon/convert-html-to-pdf"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/vdaburon/convert-html-to-pdf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdaburon%2Fconvert-html-to-pdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdaburon%2Fconvert-html-to-pdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdaburon%2Fconvert-html-to-pdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdaburon%2Fconvert-html-to-pdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vdaburon","download_url":"https://codeload.github.com/vdaburon/convert-html-to-pdf/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdaburon%2Fconvert-html-to-pdf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279019315,"owners_count":26086711,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["convertor","html","html-converter","pdf","tool"],"created_at":"2025-10-14T15:28:03.769Z","updated_at":"2025-10-14T15:28:06.562Z","avatar_url":"https://github.com/vdaburon.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# convert-html-to-pdf\nConvert a simple HTML page to PDF document\n\n[![Maven Central](https://img.shields.io/maven-central/v/io.github.vdaburon/convert-html-to-pdf)](https://central.sonatype.com/artifact/io.github.vdaburon/convert-html-to-pdf)\n![Free](https://img.shields.io/badge/free-open--source-green.svg)\u003cbr/\u003e\nProject at GitHub : https://github.com/vdaburon/convert-html-to-pdf\n\n##  Example\nConvert a HTML page to a PDF document, set the image width.\n\nParameters :\n- html_in the html page to read\n- pdf_out the pdf document to generate\n- (optional) image_width the image width in the html page\n\nLaunch of the conversion:\u003cbr/\u003e\n\u003ccode\u003ejava -jar convert-html-to-pdf-1.0-jar-with-dependencies.jar -html_in index.html -pdf_out report.pdf -image_width 960\u003c/code\u003e\n\nNotes: \n- The directory where the HTML file is set must be writable to create a temporary XHTML file inside\n- Need a JDK/JRE 1.8 or more\n\n![Diagram Convert HTML to PDF](doc/images/diagram_convert_html_to_pdf.png)\n\n\n## License\nSee the GNU Lesser General Public License (LGPL), version 3\u003cbr/\u003e\n[https://www.gnu.org/licenses/lgpl-3.0.html](https://www.gnu.org/licenses/lgpl-3.0.html)\n\nBecause library com.openhtmltopdf use this license\n\n## Ready to use\nIn the [Release of the project](https://github.com/vdaburon/convert-html-to-pdf/releases)  you will find the tool compiled in one (uber) jar file which is directly usable.\n\n## Help\n\u003cpre\u003e\nusage: io.github.vdaburon.converthtml2pdf.Html2PDFConvertor [-help] -html_in \u0026lt;html_in\u0026gt; [-image_width \u0026lt;image_width\u0026gt;]\n       -pdf_out \u0026lt;pdf_out\u0026gt;\nio.github.vdaburon.converthtml2pdf.Html2PDFConvertor\n -help                        Help and show parameters\n -html_in \u0026lt;html_in\u0026gt;           Html file to read (e.g: index.html)\n -image_width \u0026lt;image_width\u0026gt;   Optional, Image width in pixels referenced by the html page (e.g:960)\n -pdf_out \u0026lt;pdf_out\u0026gt;           PDF file generated (e.g: report.pdf)\nE.g : java -jar convert-html-to-pdf-\u0026lt;version\u0026gt;-jar-with-dependencies.jar -html_in index.html -pdf_out report.pdf\n-image_width 960\n\n\u003c/pre\u003e\n\n## Usage Maven\n\nThe maven groupId, artifactId and version, this plugin is in the **Maven Central Repository** [![Maven Central](https://img.shields.io/maven-central/v/io.github.vdaburon/convert-html-to-pdf)](https://central.sonatype.com/artifact/io.github.vdaburon/convert-html-to-pdf)\n\n\n\n```xml\n\u003cgroupId\u003eio.github.vdaburon\u003c/groupId\u003e\n\u003cartifactId\u003econvert-html-to-pdf\u003c/artifactId\u003e\n\u003cversion\u003e1.0\u003c/version\u003e\n```\nJust include the plugin in your `pom.xml` and execute `mvn verify` \u003cbr\u003e\nor individual launch `mvn -Dimage_width=960 -Dhtml_in=target/index.html -Dpdf_out=target/report.pdf exec:java@convert_html_to_pdf`\n\n```xml\n\u003cproject\u003e\n    \u003cproperties\u003e\n        \u003chtml_in\u003eindex.html\u003c/html_in\u003e\n        \u003cpdf_out\u003edocument.pdf\u003c/pdf_out\u003e\n        \u003cimage_width\u003e1024\u003c/image_width\u003e\n    \u003c/properties\u003e\n\n    \u003cdependencies\u003e\n        \u003cdependency\u003e\n            \u003cgroupId\u003eio.github.vdaburon\u003c/groupId\u003e\n            \u003cartifactId\u003econvert-html-to-pdf\u003c/artifactId\u003e\n            \u003cversion\u003e1.0\u003c/version\u003e\n        \u003c/dependency\u003e\n    \u003c/dependencies\u003e\n    \n    \u003cbuild\u003e\n        \u003cplugins\u003e\n            \u003cplugin\u003e\n                \u003cgroupId\u003eorg.codehaus.mojo\u003c/groupId\u003e\n                \u003cartifactId\u003eexec-maven-plugin\u003c/artifactId\u003e\n                \u003cversion\u003e1.2.1\u003c/version\u003e\n                \u003cexecutions\u003e\n                    \u003cexecution\u003e\n                        \u003c!-- individual launch : mvn exec:java@convert_html_to_pdf --\u003e\n                        \u003cid\u003econvert_html_to_pdf\u003c/id\u003e\n                        \u003cphase\u003everify\u003c/phase\u003e\n                        \u003cgoals\u003e\n                            \u003cgoal\u003ejava\u003c/goal\u003e\n                        \u003c/goals\u003e\n                        \u003cconfiguration\u003e\n                            \u003cmainClass\u003eio.github.vdaburon.converthtml2pdf.Html2PDFConvertor\u003c/mainClass\u003e\n                            \u003carguments\u003e\n                                \u003cargument\u003e-html_in\u003c/argument\u003e\n                                \u003cargument\u003e${html_in}\u003c/argument\u003e\n                                \u003cargument\u003e-pdf_out\u003c/argument\u003e\n                                \u003cargument\u003e${pdf_out}\u003c/argument\u003e\n                                \u003cargument\u003e-image_width\u003c/argument\u003e\n                                \u003cargument\u003e${image_width}\u003c/argument\u003e\n                            \u003c/arguments\u003e\n                        \u003c/configuration\u003e\n                    \u003c/execution\u003e\n                \u003c/executions\u003e\n            \u003c/plugin\u003e\n        \u003c/plugins\u003e\n    \u003c/build\u003e\n\u003c/project\u003e\n```\n\n## Link to others projects\nUsually this plugin is use with [jmeter-graph-tool-maven-plugin](https://github.com/vdaburon/jmeter-graph-tool-maven-plugin)\u003cbr\u003e\nand this plugin [create-html-for-files-in-directory](https://github.com/vdaburon/CreateHtmlForFilesInDirectory)\n1) The **jmeter-graph-tool-maven-plugin** create the report csv files and graphs\n2) The **csv-report-to-html** create the **html table report** from the csv file\n3) The **create-html-for-files-in-directory** create a page html this links to images and files in a directory to show and add links\n\n## Versions\n2025-09-25, Version 1.0\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvdaburon%2Fconvert-html-to-pdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvdaburon%2Fconvert-html-to-pdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvdaburon%2Fconvert-html-to-pdf/lists"}