3

Is there a way to convert a xls file into a pdf?

I want to make a dynamical report directly to pdf file, but didn't find a way to make dynamic columns on iReport, so I've made a method on Java that exports to xls dynamically.

So I was wondering if is there a way to convert this file to pdf, but it need to be on a method from my code. Or if you have a better idea, it can be used too.

Maybe there's a way to make this pdf file from my code as I did with xls. Please help me out.

Thanks.

1

4 Answers 4

1

Try using iText http://itextpdf.com/ - I've used it to create PDFs with columnar structure.

1
  • 1
    I've used DynamicJasper to create like this, it was easier than learning how to use iText. I found some of DynamicJasper codes in my code to help me out.
    – Gondim
    Jan 11, 2011 at 12:58
1

In addition to using iText directly, there are a couple report engines that sit on top of it:

1
  • Instead of converting it, I created it with DynamicJasper
    – Gondim
    Dec 22, 2010 at 2:49
0

This is a commercial solution:

http://www.dancrintea.ro/xls-to-pdf/

If you want open source try jakarta POI.

0
0

Try using the Muhimbi PDF Converter Services. It comes with a Java compatible Web Services based interface and sample code. It does other things as well.

I worked on this application, so the usual disclaimer applies.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.