使用Java(或不使用)将.xls转换为.pdf [英] Converting .xls to .pdf using Java(or not)

查看:494
本文介绍了使用Java(或不使用)将.xls转换为.pdf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法将 xls 文件转换为 pdf

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

我想制作一个动态报告直接到 pdf 文件,但没有找到在iReport上制作动态列的方法,所以我在Java上创建了一个动态导出到 xls 的方法。

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.

所以我想知道是否有办法将此文件转换为 pdf ,但需要使用我的代码中的方法。或者如果你有更好的想法,也可以使用它。

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.

也许有办法从我的代码中生成这个 pdf 文件做了 xls 。请帮帮我。

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

谢谢。

推荐答案

尝试使用iText http://itextpdf.com/ - 我用它来创建具有柱状结构的PDF。

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

这篇关于使用Java(或不使用)将.xls转换为.pdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆