当前位置:首页 » 操作系统 » linuxword转pdf

linuxword转pdf

发布时间: 2022-02-16 05:21:55

㈠ 如何转换 pdf 为 Word 在 linux 环境上

对于不允许做修改的PDF文件——就是加密加了权限的PDF,首先要去除密码或者去除数字证书,推荐用PDF Password Remove,然后再按照下面的方法【免费】进行转换为word文件:
方法一:用软件PDF To Word Converter,使用之后然后有两种结果
1、转化出来的就是想要的word,这种情况最理想了;
2、转化出来的word上都是图片,需要上网找“ABBYY finereader v9”一类的文字识别软件。ABBYY finereader v9是我见过的最强大的PDF(图片格式或者是扫描件)转word的软件。它是一款OCR软件,界面比较简洁明,9.0和以上版本有简体中文版的,支持100语言的识别,特别是混合多种语言识别效果也非常好:安装完毕之后,首先把图片上的文字识别出来,然后再对照图片把识别错误的地方改过来,这样就实现了,从JPEG文件到word的格式转换。
方法二:在线PDF转Word共有以下几个步骤:
• 点击浏览按钮选择需要转换的PDF文件。
• 输入需要转换的页码,以逗号分割开,如果转换所有的页面可以跳过这一步。
• 点击按钮上传文件,然后等着就可以了。
• 点击下载链接把做好的文件下载到本地就可以了;
方法三:用其他软件Wondershare PDFelement等处理。

㈡ linux下编辑word,然后将word转换为pdf的问题

这样折腾有什么意义呢?如果要出 PDF,还要在 Linux 下,不如直接用 TeX。

㈢ linux服务器怎样将word转pdf

unoconv -f pdf myDoc.doc

只是你需要安装了libreoffice。

㈣ 如何在linux下实现office文档转成pdf

首先下载安装unoconv采用下面任一种方法:
1)到 http://dag.wieers.com/home-made/unoconv/
下载,再安装.
2) yum install unoconv

然后就可以用命令
unoconv -f pdf
myDoc.doc
进行转换了.以上命令即会生成一个名为 myDoc.pdf 的 pdf
文件。

批量转换需要结合find命令或脚本使用,使用时需注意最好使用C/S模式以加快速度:
unoconv --listener
&
unoconv -f pdf some-document.odt
unoconv -f doc
other-document.odt
unoconv -f jpg some-image.png
unoconv -f xsl
some-spreadsheet.csv

多个PDF文件的合并:
gs -q -dNOPAUSE -dBATCH
-sDEVICE=pdfwrite -sOutputFile=out.pdf
*.pdf
就会生成一个名为out.pdf的文件.但要保证当前目录下没有out.pdf这个文件.

㈤ linux下的word转pdf功能已经有对外接口了么

使用虚拟打印机pdf factory即可实现,而且其他格式文件只要是能够打印,选择这个虚拟打印机,都可以做成PDF文件,很简单实用,一劳永逸。

㈥ 在linux环境下,java怎么实现从word格式转换为pdf格式

import com.jacob.activeX.ActiveXComponent;
import com.jacob.com.Dispatch;
import com.jacob.com.Variant;

/**
* @author XuMing Li
*
* @version 1.00, 2007-4-9
*
*/
public class D2P {
private ActiveXComponent wordCom = null;

private Object wordDoc = null;

private final Variant False = new Variant(false);

private final Variant True = new Variant(true);

/**
* 打开word文档
*
* @param filePath
* word文档
* @return 返回word文档对象
*/
public boolean openWord(String filePath) {
//建立ActiveX部件
wordCom = new ActiveXComponent( "Word.Application ");

try {
//返回wrdCom.Documents的Dispatch
Dispatch wrdDocs = wordCom.getProperty( "Documents ").toDispatch();
//调用wrdCom.Documents.Open方法打开指定的word文档,返回wordDoc
wordDoc = Dispatch.invoke(wrdDocs, "Open ", Dispatch.Method,
new Object[] { filePath }, new int[1]).toDispatch();
return true;
} catch (Exception ex) {
ex.printStackTrace();
}
return false;
}

/**
* 关闭word文档
*/
public void closeWord() {
//关闭word文件
wordCom.invoke( "Quit ", new Variant[] {});
}

/**
* * 将word文档打印为PS文件后,使用Distiller将PS文件转换为PDF文件 *
*
* @param sourceFilePath
* 源文件路径 *
* @param destinPSFilePath
* 首先生成的PS文件路径 *
* @param destinPDFFilePath
* 生成PDF文件路径
*/
public void docToPDF(String sourceFilePath, String destinPSFilePath,
String destinPDFFilePath) {
if (!openWord(sourceFilePath)) {
closeWord();
return;
}
//建立Adobe Distiller的com对象
ActiveXComponent distiller = new ActiveXComponent(
"PDFDistiller.PDFDistiller.1 ");
try {
//设置当前使用的打印机,我的Adobe Distiller打印机名字为 "Adobe PDF "
wordCom.setProperty( "ActivePrinter ", new Variant( "Adobe PDF "));
//设置printout的参数,将word文档打印为postscript文档。目前只使用了前5个参数,如果要使用更多的话可以参考MSDN的office开发相关api
//是否在后台运行
Variant Background = False;
//是否追加打印
Variant Append = False;
//打印所有文档
int wdPrintAllDocument = 0;
Variant Range = new Variant(wdPrintAllDocument);
//输出的postscript文件的路径
Variant OutputFileName = new Variant(destinPSFilePath);

Dispatch.callN((Dispatch) wordDoc, "PrintOut ", new Variant[] {
Background, Append, Range, OutputFileName });
System.out.println( "由word文档打印为ps文档成功! ");
//调用Distiller对象的FileToPDF方法所用的参数,详细内容参考Distiller Api手册
//作为输入的ps文档路径
Variant inputPostScriptFilePath = new Variant(destinPSFilePath);
//作为输出的pdf文档的路径
Variant outputPDFFilePath = new Variant(destinPDFFilePath);
//定义FileToPDF方法要使用adobe pdf设置文件的路径,在这里没有赋值表示并不使用pdf配置文件
Variant PDFOption = new Variant( " ");
//调用FileToPDF方法将ps文档转换为pdf文档
Dispatch.callN(distiller, "FileToPDF ", new Variant[] {
inputPostScriptFilePath, outputPDFFilePath, PDFOption });
System.out.println( "由ps文档转换为pdf文档成功! ");
} catch (Exception ex) {
ex.printStackTrace();
} finally {
closeWord();
}
}

public static void main(String[] argv) {
D2P d2p = new D2P();
// d2p.openWord( "c:/12.doc ");
// d2p.callWordMacro( "c:/12.docc ", "MyWordMacro ",
// new String[] { "这是调用word宏的测试程序 " });
d2p.docToPDF( "d:/12.doc ", "c:/1p.ps ", "c:/1p.pdf ");
}
}

㈦ linux下将怎么将office文件转换为pdf文件格式

Word07版本无需转换,只要直接另存为pdf格式就行了。二种方法,详细如下:
方法一、
点击【另存为】后,在保存类型中选 PDF(*.pdf) -- 确定即可
方法二、
1. word文件打开状态下,点击左上角的Office按钮(一个Office图标的大圆圈)
2. 另存为
3. 选PDF或XPS即可。

㈧ freemark在linux上生成word以后,怎么转pdf

freemark在linux上生成word以后转pdf直接另存为即可。

工具:word2013

步骤:

1、打开word2013,点击文件,选择另存为。选择其他格式。

注:word2010以下版本另存为没有pdf格式,需下载插件后,才能直接另存为pdf格式。2010以上的版本才可以直接另存为。

㈨ wps支持linux命令行下word转pdf吗

通过浏览器进入到wps官网,然后点击右上角的"linux",进入到wps支持Linux的项目下。在该界面点击"立即下载",进入到Linux版本的wps安装程序下载页面。根据个人Linux版本的位数选择对应的rpm包,将该安装包下载到本地。进入到安装包存放的目录,使用命令"yum localinstall wps-offcie-10.1.0.6634-1.i686.rpm",该命令在安装包的同时也会将相应的依赖关系软件安装,这样就不会包依赖关系错误。安装完成后,通过命令"wps"可以直接打开wps,由于是首次使用所以需要同意它的用户协议,也可以通过桌面的WPS图标点击打开。
然后你问题的重点来了,你用什么转件转换格式?如果你使用unoconv
到github克隆unoconv 项目,并安装
输入命令:git clone
进入unoconv目录,并安装
make install
成功安装unoconv后。先创建一个aa.docx测试文件
首先:我们来先转docx文件到pdf,输入命令:unoconv -f pdf aa.docx
得到结果:aa.pdf
看明白没有,你试试看吧 看看《Linux就该这么学》 里面有个专栏是 Linux命令大全(手册

热点内容
海康威视存储卡质量如何 发布:2024-09-19 08:55:35 浏览:938
python3默认安装路径 发布:2024-09-19 08:50:22 浏览:514
环卫视频拍摄脚本 发布:2024-09-19 08:35:44 浏览:416
sqlserveronlinux 发布:2024-09-19 08:16:54 浏览:255
编程常数 发布:2024-09-19 08:06:36 浏览:951
甘肃高性能边缘计算服务器云空间 发布:2024-09-19 08:06:26 浏览:161
win7家庭版ftp 发布:2024-09-19 07:59:06 浏览:716
数据库的优化都有哪些方法 发布:2024-09-19 07:44:43 浏览:268
知乎华为编译器有用吗 发布:2024-09-19 07:32:20 浏览:617
访问虚拟机磁盘 发布:2024-09-19 07:28:13 浏览:669