alanhay / html-exporter

Java Library to convert HTML/CSS to MS Excel and ODS Spreadhseets.
Apache License 2.0
35 stars 38 forks source link

Maven dependency #3

Closed shubbush closed 2 years ago

shubbush commented 7 years ago

Hello, Alan.

I found your project and think it's great. I want to use it in my own, but I have a problem with importing your library from repository.

I added repository and dependency in my pom.xml as you wrote at readme, but maven can't find it. I tried different versions like 0.3, 0.3.2, 0.3.4 and it didn't make any success.

Thank you.

alanhay commented 7 years ago

Looks like the permissions on the S3 bucket. I'd need to have a look.

You should be able to use by cloning an running mvn clean install on:

  1. https://github.com/raisercostin/osbcp-css-parser.git

then

  1. https://github.com/alanhay/html-exporter.git

This should build and allow allow you to use it from your local repository for now.

The CSS parser referred to above is a fork of the project I was using when I developed it. This project was never 'mavenized'. This fork is mavenized so should be hopefully be fine assuming no breaking code changes.

Let me know how it goes and I will try and help further when I have a bit more time,

shubbush commented 7 years ago

Thanks for response.

I've found one more workaround, I downloaded a jar using this link http://alanhay-maven-repository.s3-eu-west-1.amazonaws.com/release/uk/co/certait/html-exporter/0.3/html-exporter-0.3.jar, so I don't think it's problem with bucket permission.

inetftp commented 6 years ago

Dear Alanhay,

I have used your lib files in my project and it is great. I have tried to convert PDF to Excel.After seeing your project i tried to convert PDF to HTML then HTML to Excel. I successfully convert it to PDF to HTML.

I have html file with tables that is stored in alocal directory. Just tried to use your DemoTwo.java in my project and got many error. Whether we can use html file in our directory instead of URL. new ExcelExporter().exportHtml(local_directory_path.html,new File("text.xls") ); //can we call local just like this if we can please send the code.to

golimarrrr commented 4 years ago

This worked for me with a local HTML file:

html = new String(Files.readAllBytes(new File("06fusionjs.html").toPath())); new ExcelExporter().exportHtml(html, new File("./report.xlsx"));